All of lore.kernel.org
 help / color / mirror / Atom feed
* [raisin][PATCH] Fix installation of python libs
@ 2017-03-18 20:02 Géza Gémes
  2017-03-18 20:02 ` [PATCH] " Géza Gémes
  0 siblings, 1 reply; 2+ messages in thread
From: Géza Gémes @ 2017-03-18 20:02 UTC (permalink / raw)
  To: xen-devel; +Cc: sstabellini, george.dunlap, Géza Gémes

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(+)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Fix installation of python libs
  2017-03-18 20:02 [raisin][PATCH] Fix installation of python libs Géza Gémes
@ 2017-03-18 20:02 ` Géza Gémes
  0 siblings, 0 replies; 2+ messages in thread
From: Géza Gémes @ 2017-03-18 20:02 UTC (permalink / raw)
  To: xen-devel; +Cc: sstabellini, george.dunlap, Géza Gémes

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 <geza.gemes@gmail.com>
---
 scripts/mkdeb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/mkdeb b/scripts/mkdeb
index 3796300..23bcc2a 100755
--- a/scripts/mkdeb
+++ b/scripts/mkdeb
@@ -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
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-18 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18 20:02 [raisin][PATCH] Fix installation of python libs Géza Gémes
2017-03-18 20:02 ` [PATCH] " Géza Gémes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.