From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: Re: prefix and python site-packages Date: Wed, 23 Apr 2014 12:05:51 +0200 Message-ID: <20140423100550.GA5825@aepfle.de> References: <20140423082131.GA20022@aepfle.de> <1398243980.4880.115.camel@kazak.uk.xensource.com> <20140423093304.GA422@aepfle.de> <1398246891.18537.4.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1398246891.18537.4.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, Apr 23, Ian Campbell wrote: > On Wed, 2014-04-23 at 11:33 +0200, Olaf Hering wrote: > > On Wed, Apr 23, Ian Campbell wrote: > > > > > I don't suppose python has an analogue of -rpath? > > > > Looks like sys.path.insert() is the python way of rpath. > > Would it be acceptable to tweak pygrub at install time and insert > > something like the hack I had posted earlier? > > Does Python distutils (used by tools/pygrub/setup.py) not have any > support for doing this sort of thing automatically? I have to check. But how would pygrub, or any other helloworld.py, know that it was installed into --prefix= and its libs/modules are also in --prefix=? I think something has to be hardcoded, unless PYTHONPATH or simimar is used to point to a specific --prefix=. > > From what I have seen > > pygrub is the only remaining binary using the xen.lowlevel stuff. > > It only uses it to decide if the hypervisor supports 64 bit PV guests. > Since the we no longer have a 32-bit hypervisor perhaps we can just nuke > that check and sidestep the whole problem? It also uses fsimage and grub.*, which is also installed below --prefix= Olaf