[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] prefix and python site-packages



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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.