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.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Karl Hasselström <kha@treskal.com>
def __check_python_version():
"""Check the minimum Python version
"""
def __check_python_version():
"""Check the minimum Python version
"""
- pyver = '.'.join(str(n) for n in sys.version_info)
+ pyver = '.'.join(map(lambda x: str(x), sys.version_info))
if not __check_min_version(python_min_ver, pyver):
print >> sys.stderr, 'Python version %s or newer required. Found %s' \
% (python_min_ver, pyver)
if not __check_min_version(python_min_ver, pyver):
print >> sys.stderr, 'Python version %s or newer required. Found %s' \
% (python_min_ver, pyver)