From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: Why do we use /usr/lib/python to install python libraries? Date: Wed, 14 Jun 2006 06:45:12 -0500 Message-ID: <448FF6C8.9030902@us.ibm.com> References: <4488CA32.3060806@us.ibm.com> <20060614073239.GB5840@leeni.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060614073239.GB5840@leeni.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: xen-devel List-Id: xen-devel@lists.xenproject.org Ewan Mellor wrote: > On Thu, Jun 08, 2006 at 08:09:06PM -0500, Anthony Liguori wrote: > > >> This seems exceptionally evil and is definitely a PITA. What was the >> original problem that led us to do this? I'd like to take a stab at >> correcting it so we can have a more sane installation. >> > > If you're going to fix this, then great. Perhaps you could make it: > I would love to, if patches are willing to be taken. > a) use the proper Python distutils if installed; > I think we already are aren't we? I thought the crux of the problem was that people are relying on having a deterministic install path so that it can be deployed on many machines (regardless of Python version). We would have to break this "feature". I'm happy to do that of course :-) Regards, Anthony Liguori > b) fall back to using /usr/lib{,64}/python if distutils is not installed > (though I can't imagine that there are many systems that are shipping with > Python but without distutils, and you do need Python to run Xend, after > all); > > c) make sure that we actually do install into /usr/lib64 on appropriate > systems. This is a current bug, though I've no idea when it got > introduced. We need to install into /usr/lib64 because xc.so and xs.so are > compiled native code. > > Thanks Anthony, > > Ewan. >