diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-06-23 16:27:31 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-06-23 16:27:31 (GMT) |
commit | 640695cfb274dfba41a0c6cc74c95f2a00327f90 (patch) | |
tree | 6245fc31e2f6f3dc0a9d3f8f1302d44fe679d69f /src/script | |
parent | bacf54039eceff118f7d05522331851ba41d1e25 (diff) | |
download | SCons-640695cfb274dfba41a0c6cc74c95f2a00327f90.zip SCons-640695cfb274dfba41a0c6cc74c95f2a00327f90.tar.gz SCons-640695cfb274dfba41a0c6cc74c95f2a00327f90.tar.bz2 |
py2/3 fix version checking for valid versions of python to 2.7.x >=3.5.0: src/script/scons.py
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/scons.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script/scons.py b/src/script/scons.py index 1cf9469..bdf0cea 100644 --- a/src/script/scons.py +++ b/src/script/scons.py @@ -58,11 +58,11 @@ import sys # engine modules if they're in either directory. -## if sys.version_info >= (3,0,0): -## msg = "scons: *** SCons version %s does not run under Python version %s.\n\ -## Python 3 is not yet supported.\n" -## sys.stderr.write(msg % (__version__, sys.version.split()[0])) -## sys.exit(1) +if (3,0,0) < sys.version_info < (3,5,0) or sys.version_info < (2,7,0): + msg = "scons: *** SCons version %s does not run under Python version %s.\n\ +Python < 3.5 is not yet supported.\n" + sys.stderr.write(msg % (__version__, sys.version.split()[0])) + sys.exit(1) script_dir = sys.path[0] |