WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py

To: Alastair Tse <atse@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: [Xen-changelog] [xen-unstable] [XENAPI] Make xapi.py work with modules in /usr/lib/python.
From: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Date: Sat, 11 Nov 2006 09:21:45 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, John Levon <levon@xxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 10 Nov 2006 23:22:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1163181427.4710.6.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E1GiYKg-0005B8-04@xxxxxxxxxxxxxxxxxxxxx> <20061110165132.GB4988@xxxxxxxxxxxx> <20061110174421.GD30635@xxxxxxxxxxxxxxxxxxxx> <1163181427.4710.6.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
On Fri, Nov 10, 2006 at 05:57:07PM +0000, Alastair Tse wrote:
> On Fri, 2006-11-10 at 17:44 +0000, John Levon wrote:
> > On Fri, Nov 10, 2006 at 06:51:32PM +0200, Muli Ben-Yehuda wrote:
> 
> > > > +import sys
> > > > +sys.path.append('/usr/lib/python')
> > > > +
> > > 
> > > Hmm, what's the intention behind this change? won't it break horribly
> > > if the Xen tools are actually installed elsewhere but there's an old
> > > version in /usr/lib/python?
> > 
> > This seems dubious to me too. This seems like a problematic python
> > installation that needs this change, and troublesome for other
> > installations as Muli points out...
> 
> xapi.py isn't installed on any system and only exists in the Xend dev
> tree for me to test the Xen API support in Xend.
> 
> The default installation root is /usr/lib/python for the vanilla xen
> python tools.

Right, but with XEN_PYTHON_NATIVE_INSTALL=y we end up using the right
python directories (I hope).

> Yes, I agree it is a concern that Xend/Xm puts everything
> in /usr/lib/python, but that is a whole separate thread. I have a patch
> locally that fixes this behaviour along with install.sh fixes it, if
> that is what people are concerned about.

That will be great - I routinely install newer pythons on old distros.

Cheers,
Muli

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel