mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Check python version in setup.py only for install
This allow us to use this on build service like travis.
This commit is contained in:
parent
34f5a6f82c
commit
c5290cfec6
2
setup.py
2
setup.py
@ -20,7 +20,7 @@ from setuptools import setup, find_packages
|
||||
from setuptools.command.test import test as TestCommand
|
||||
|
||||
# we only support Python 3 version >= 3.4
|
||||
if sys.version_info < (3, 4):
|
||||
if len(sys.argv) >= 2 and sys.argv[1] == "install" and sys.version_info < (3, 4):
|
||||
raise SystemExit("Python 3.4 or higher is required")
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user