fix version detection
This commit is contained in:
@ -39,10 +39,10 @@ def check_python():
|
|||||||
if info[0] == 2 and not info[1] >= 6:
|
if info[0] == 2 and not info[1] >= 6:
|
||||||
print('Python 2.6+ required')
|
print('Python 2.6+ required')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
if info[0] == 3 and not info[1] >= 3:
|
elif info[0] == 3 and not info[1] >= 3:
|
||||||
print('Python 3.3+ required')
|
print('Python 3.3+ required')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
elif info[0] not in [2, 3]:
|
||||||
print('Python version not supported')
|
print('Python version not supported')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user