From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel P. Berrange" Subject: Re: [PATCH] add check for python-devel to tools build Date: Tue, 21 Nov 2006 16:48:18 +0000 Message-ID: <20061121164818.GG1951@redhat.com> References: <45633B55.76E4.0078.0@novell.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <45633B55.76E4.0078.0@novell.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: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Nov 21, 2006 at 04:45:57PM +0000, Jan Beulich wrote: > Again, this must be given exec permission after applying. > > Signed-off-by: Jan Beulich > > Index: 2006-11-17/tools/check/check_python_devel > =================================================================== > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 > +++ 2006-11-17/tools/check/check_python_devel 2006-11-21 12:03:08.000000000 +0100 > @@ -0,0 +1,13 @@ > +#!/bin/bash > +# CHECK-BUILD > + > +function error { > + echo > + echo " *** Check for python development environment FAILED" > + exit 1 > +} > + > +lib=lib > +test "$(uname -m)" != x86_64 || lib=lib64 > +set -e > +[ -e /usr/$lib/python/config/Makefile ] || error Urm, python is in /usr/$lib/python2.4 on my systems (or python2.5, etc) Is there some way you can run the 'python' binary and ask it what its install prefix is, rather than hardcoding it? Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|