Skip to contentSkip to conversation

Fix installation of python libs

PATCH New Géza Gémes 1 participant 2 messages Mar 18, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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

---
 scripts/mkdeb | 9 +++++++++
 1 file changed, 9 insertions(+)
scripts/mkdeb +9 -0
index 3796300..23bcc2a 100755
@@ -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