]> xenbits.xensource.com Git - raisin.git/commitdiff
Fix installation of python libs
authorGéza Gémes <geza.gemes@gmail.com>
Sat, 25 Mar 2017 19:28:53 +0000 (20:28 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 27 Mar 2017 18:44:25 +0000 (11:44 -0700)
Change deb package build in order to move content of 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>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
scripts/mkdeb

index 37963007bc45457f69bf8d8af4fc60723cb861b5..d7ddace45e8cb48c39ac8887c77513be1edb8778 100755 (executable)
@@ -46,6 +46,10 @@ then
     rm -rf deb/usr/lib64
 fi
 
+# Make sure that python libs will be in the path
+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