mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow to run mach with Python3 (>=3.5)
This commit is contained in:
parent
01c1a6c4c9
commit
67c2c115c0
2 changed files with 7 additions and 6 deletions
4
mach
4
mach
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue