From: Karl Hasselström Date: Sat, 12 Jul 2008 05:19:37 GMT Subject: Re: [PATCH] setup.py: fix error message when running with python-2.3 Message-ID: <20080712051937.GA17996@diana.vm.bytemark.co.uk> In-Reply-To: <1215806972-18713-1-git-send-email-vmiklos@frugalware.org> On 2008-07-11 22:09:31 +0200, Miklos Vajna wrote: > When setup.py tries to check the python version, the check actually > won't give a usable error message but it'll raise a SyntaxError. Fix > this by not using generator expressions. > - pyver = '.'.join(str(n) for n in sys.version_info) > + pyver = '.'.join(map(lambda x: str(x), sys.version_info)) Thanks. And by not using a list comprehension, you stay compatible with pre-2.0 versions as well (though I guess we'd need to test that, since there may be other 2.0 things we rely on in this code path). -- Karl Hasselström, kha@treskal.com www.treskal.com/kalle