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] Python version

To: Sean Atkinson <sean@xxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Python version
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 18 Mar 2004 15:00:08 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 18 Mar 2004 15:10:54 +0000
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 18 Mar 2004 15:53:23 +0100." <1079621603.1568.145.camel@xxxxxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> I'm having trouble using xc_com_create.py.  It reports that it's missing
> tempfile.mkdtemp() in xend_control_message from line 195 of
> xenctl/utils.py.  The xen.bkbits.net indicates this change was added to
> version 1.19 on 14 March.
> 
> The reason it's missing is it was only introduced to Python 2.3, and
> both Red Hat Linux 9 and Fedora are using 2.2 (2.2.2-26 and 2.2.3-7
> respectively).  Although I can install the 2.3 RPM from python.org along
> side Red Hat's, /usr/bin/python is still 2.2 and changing that would
> break all sorts, as discussed in this FAQ:
> 
> http://www.python.org/2.3.3/rpms.html#FAQ
> 
> Changing "python" to "python2.3" in the scripts doesn't import Xc.so
> since it's installed in 2.2 site packages.  We could change every python
> script to specify python2.3 instead of the default system version and
> fix the site packages too, but forcing a particular version seems bad.
> 
> What distributions are these scripts tested to work on?  Is there any
> magic I should be using to make things work on Red Hat?

Whoops! I use Python 2.3 for most testing, so these backward
incompatibilities tend to creep in.  Python earlier than 2.2 we don't
care about, but 2.2 is used by a lot of distros.  Since we certainly
want to support Python 2.2 we'll need an alternative to tempfile. I'll
look into this.

 -- Keir


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel