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/
Home Products Support Community News


Re: [Xen-devel] [PATCH] tools: simplify install of python "binaries"

To: Christoph Egger <Christoph.Egger@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] tools: simplify install of python "binaries"
From: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Date: Wed, 15 Jul 2009 17:09:12 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 15 Jul 2009 09:09:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200907151709.58431.Christoph.Egger@xxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Newsgroups: chiark.mail.xen.devel
References: <200907151709.58431.Christoph.Egger@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Christoph Egger writes ("[Xen-devel] [PATCH] tools: simplify install of python 
> Attached patch simplifies install of python "binaries".
> Get rid of get-path.

I don't think this is correct.

The purpose of the code you are removing here is to find out what the
compile-time python version is, and then hardcode that into the #!
line of the installed python scripts.

So if you compile with PYTHON=python2.4 or with PYTHON unset on a
system where `python' from the path is 2.4, you generate in
dist/install/ (a) python modules in .../site-packages/python2.4 and
(b) scripts starting #!/usr/bin/python2.4

If you don't do this then the script starts #!/usr/bin/python and if
by then python 2.5 is installed, it won't find the modules.

Nacked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>


Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>