From: Ian Jackson Subject: Re: [PATCH] tools: simplify install of python "binaries" Date: Wed, 15 Jul 2009 17:09:12 +0100 Message-ID: <19037.65320.557142.65524@mariner.uk.xensource.com> References: <200907151709.58431.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200907151709.58431.Christoph.Egger@amd.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: Christoph Egger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Christoph Egger writes ("[Xen-devel] [PATCH] tools: simplify install of python "binaries""): > 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.