[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python 2.4 detection

From: Michael Welsh Duggan
Subject: Re: Python 2.4 detection
Date: Tue, 08 Aug 2006 21:34:12 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Mats Bengtsson <address@hidden> writes:

> Han-Wen Nienhuys wrote:
>> this will certainly not work. lots of programs print arbitrary non
>> program-name junk with --version. (try gcc --version)
>> how about grepping for ' [0-9]+\.[0-9]'. Can you test whether you
>> can build with that fix?
> It solves the problem for me, at least.

This will work (and does work) with python, and most programs.  But
not all.  Two examples that fail with this are perl and mount.
However, since either your patch or my patch solve my immediate
problem, I will not quibble.

address@hidden:/bin$ perl --version

This is perl, v5.8.8 built for i486-linux-gnu-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

address@hidden:/bin$ mount --version
mount: mount-2.12r

Michael Welsh Duggan

reply via email to

[Prev in Thread] Current Thread [Next in Thread]