fix detection of python version and output
This commit is contained in:
parent
5ab97c1f13
commit
01b52ef5f9
1 changed files with 2 additions and 3 deletions
5
setup.py
5
setup.py
|
|
@ -131,9 +131,8 @@ def install_weboob():
|
|||
else:
|
||||
requirements.append('PIL')
|
||||
|
||||
if sys.version_info.major == "2" and sys.version_info[1] < 6: # older than 2.6
|
||||
print(sys.version_info)
|
||||
print('Python older than 2.6 is not supported. %s'%sys.version_info, file=sys.stderr)
|
||||
if sys.version_info < (2,6):
|
||||
print('Python older than 2.6 is not supported.', file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
if not options.deps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue