From: Ian Campbell Subject: Re: prefix and python site-packages Date: Wed, 23 Apr 2014 10:06:20 +0100 Message-ID: <1398243980.4880.115.camel@kazak.uk.xensource.com> References: <20140423082131.GA20022@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140423082131.GA20022@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2014-04-23 at 10:21 +0200, Olaf Hering wrote: > 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? Is this https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=693721 ? I suppose not quite. I think if you are installing to a non-standard prefix then you might expect to need to take manual action, like editing /etc/python*/sitecustomize.py or setting $PYTHONPATH (this is analogous to editing /etc/ld.so.conf or setting $LD_LIBRARY_PATH I think). I don't suppose python has an analogue of -rpath? Ian.