Allow to run mach with Python3 (>=3.5)

This commit is contained in:
marmeladema 2019-10-22 23:01:35 +01:00
parent 01c1a6c4c9
commit 67c2c115c0
2 changed files with 7 additions and 6 deletions

4
mach
View file

@ -18,8 +18,8 @@ import sys
# Check for the current python version as some users (especially on archlinux)
# may not have python 2 installed and their /bin/python binary symlinked to
# python 3.
if sys.version_info >= (3, 0):
print("mach does not support python 3, please install python 2")
if sys.version_info >= (3, 0) and sys.version_info < (3, 5):
print("mach does not support python 3 (< 3.5), please install python 2 or python 3 (>= 3.5)")
sys.exit(1)