Fix installation of python libs
PATCH 1/1 Fix installation of python libs
Change installation on ubuntu to symlink the content of site-packages to dist-packages, so that the libs will be part of the default PYTHONPATH. This fixes pygrub installed by raisin.
Géza Gémes (1):
Fix installation of python libs
scripts/mkdeb | 9 +++++++++ 1 file changed, 9 insertions(+)
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
PATCH 1/1 Fix installation of python libs
Change deb package build in order to symlink the files installed to site-packages to dist-packages to have them inluded in the default PYTHONPATH
Signed-off-by Géza Gémes <[email protected]>
--- scripts/mkdeb | 9 +++++++++ 1 file changed, 9 insertions(+)
scripts/mkdeb +9 -0
@@ -46,6 +46,15 @@ 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/ +cd deb/usr/lib/python2.7/dist-packages/ +for file in `ls ../site-packages` +do + ln -s ../site-packages/$file . +done +cd - + # Fill in the debian boilerplate mkdir -p deb/DEBIAN cat >deb/DEBIAN/control <<EOF
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel