From: Olaf Hering <olaf@aepfle.de>
To: ian.campbell@citrix.com, ian.jackson@eu.citrix.com
Cc: xen-devel@lists.xen.org
Subject: prefix and python site-packages
Date: Wed, 23 Apr 2014 10:21:31 +0200 [thread overview]
Message-ID: <20140423082131.GA20022@aepfle.de> (raw)
configure --prefix=/some/where puts pygrub and xen/lowlevel/xc.so below
/some/where. But pygrub fails because it can not find the python
site-packages. Is there a clean way to automate something like this?
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index 7759b1a..4134082 100644
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -14,6 +14,7 @@
#
import os, sys, string, struct, tempfile, re, traceback
+sys.path.insert(0, "/some/where/lib64/python2.6/site-packages")
import errno
import copy
import logging
Olaf
next reply other threads:[~2014-04-23 8:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 8:21 Olaf Hering [this message]
2014-04-23 9:06 ` prefix and python site-packages Ian Campbell
2014-04-23 9:33 ` Olaf Hering
2014-04-23 9:54 ` Ian Campbell
2014-04-23 10:05 ` Olaf Hering
2014-04-23 10:08 ` Ian Campbell
2014-04-24 10:55 ` Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140423082131.GA20022@aepfle.de \
--to=olaf@aepfle.de \
--cc=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.