Re: [StGIT] Failure to install on RHELWS4
- From
Miklos Vajna <vmiklos@frugalware.org>
- Date
- Jul 11, 2008, 20:07 UTC
- Message-ID
- <20080711200735.GK10347@genesis.frugalware.org>
- In-Reply-To
- <200807112126.39729.trast@student.ethz.ch>
On Fri, Jul 11, 2008 at 09:26:29PM +0200, Thomas Rast <trast@student.ethz.ch> wrote:
Show 9 quoted lines
> > pyver = '.'.join(str(n) for n in sys.version_info) > > ^ > [...] > > Python version is 2.3.4 > > That is indeed too old. Generator expressions like the above were > introduced in 2.4: > > http://www.python.org/dev/peps/pep-0289/
So obviously it's a bad idea to use generators for such a version check.
Also, setup.py would try to import stgit.run before the version check.
I'm sending two patches, which restore the wished "Python version 2.4 or newer required. Found 2.2.1.final.0" error message.
(Tested with Python 2.2.1.)