From: Ian Campbell Subject: Re: prefix and python site-packages Date: Wed, 23 Apr 2014 10:54:51 +0100 Message-ID: <1398246891.18537.4.camel@kazak.uk.xensource.com> References: <20140423082131.GA20022@aepfle.de> <1398243980.4880.115.camel@kazak.uk.xensource.com> <20140423093304.GA422@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140423093304.GA422@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 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? > 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? Ian.