Check python version only for setup.py install

This commit is contained in:
Julien Duponchelle
2017-03-21 10:10:14 +01:00
parent 03221e8ab7
commit 873fd409bd

View File

@@ -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")