scons: Require python 2.7
authorDylan Baker <dylan@pnwbakers.com>
Tue, 14 Aug 2018 17:24:29 +0000 (10:24 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 16 Aug 2018 20:52:56 +0000 (13:52 -0700)
less than 2.7 is not supported.

v2: - Remove check for python >= 2.0, since we've already enforced 2.7

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
SConstruct
scons/gallium.py

index 6e034fb968f5c641de0174f971e3bd1f8172189b..51dc301a9a86dc474854510990c3389cd9f249d9 100644 (file)
@@ -31,6 +31,7 @@ import common
 # Minimal scons version
 
 EnsureSConsVersion(2, 4)
+EnsurePythonVersion(2, 7)
 
 
 #######################################################################
index 92a762a0c1e5170aceecf5c6d4fc92978fa23bf5..659da72c1c30b48df0a784ecdfdcdca14bf31c6b 100755 (executable)
@@ -221,10 +221,6 @@ def generate(env):
     env['suncc'] = env['platform'] == 'sunos' and os.path.basename(env['CC']) == 'cc'
     env['icc'] = 'icc' == os.path.basename(env['CC'])
 
-    if env['msvc'] and env['toolchain'] == 'default' and env['machine'] == 'x86_64':
-        # MSVC x64 support is broken in earlier versions of scons
-        env.EnsurePythonVersion(2, 0)
-
     # shortcuts
     machine = env['machine']
     platform = env['platform']