diff mbox

[01/11] Fix installation of python libs

Message ID 1490381976-22981-2-git-send-email-geza.gemes@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Gémes Géza March 24, 2017, 6:59 p.m. UTC
Change deb package build in order to move the site-packages
folder to dist-packages in this way having the libs inluded
in the default PYTHONPATH

Signed-off-by: Géza Gémes <geza.gemes@gmail.com>
---
 scripts/mkdeb | 3 +++
 1 file changed, 3 insertions(+)

Comments

Stefano Stabellini March 25, 2017, 12:12 a.m. UTC | #1
On Fri, 24 Mar 2017, Géza Gémes wrote:
> Change deb package build in order to move the site-packages
> folder to dist-packages in this way having the libs inluded
> in the default PYTHONPATH
> 
> Signed-off-by: Géza Gémes <geza.gemes@gmail.com>
> ---
>  scripts/mkdeb | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/scripts/mkdeb b/scripts/mkdeb
> index 3796300..fcaf757 100755
> --- a/scripts/mkdeb
> +++ b/scripts/mkdeb
> @@ -46,6 +46,9 @@ then
>      rm -rf deb/usr/lib64
>  fi
>  
> +# Make sure that python libs will be in the path
> +mv deb/usr/lib/python2.7/site-packages deb/usr/lib/python2.7/dist-packages

I think we need to do the following, just in case dist-packages is
already present (we don't want to end up with
deb/usr/lib/python2.7/dist-packages/site-packages):

mkdir -p deb/usr/lib/python2.7/dist-packages
mv deb/usr/lib/python2.7/site-packages/* deb/usr/lib/python2.7/dist-packages


>  # Fill in the debian boilerplate
>  mkdir -p deb/DEBIAN
>  cat >deb/DEBIAN/control <<EOF
> -- 
> 2.7.4
>
diff mbox

Patch

diff --git a/scripts/mkdeb b/scripts/mkdeb
index 3796300..fcaf757 100755
--- a/scripts/mkdeb
+++ b/scripts/mkdeb
@@ -46,6 +46,9 @@  then
     rm -rf deb/usr/lib64
 fi
 
+# Make sure that python libs will be in the path
+mv deb/usr/lib/python2.7/site-packages deb/usr/lib/python2.7/dist-packages
+
 # Fill in the debian boilerplate
 mkdir -p deb/DEBIAN
 cat >deb/DEBIAN/control <<EOF