Mesa (master): scons: Require python 2.7

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 16 20:58:04 UTC 2018


Module: Mesa
Branch: master
Commit: 64e463813079bf73a5373fe39af7bdbd90992a00
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=64e463813079bf73a5373fe39af7bdbd90992a00

Author: Dylan Baker <dylan at pnwbakers.com>
Date:   Tue Aug 14 10:24:29 2018 -0700

scons: Require python 2.7

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 at intel.com>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 SConstruct       | 1 +
 scons/gallium.py | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/SConstruct b/SConstruct
index 6e034fb968..51dc301a9a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -31,6 +31,7 @@ import common
 # Minimal scons version
 
 EnsureSConsVersion(2, 4)
+EnsurePythonVersion(2, 7)
 
 
 #######################################################################
diff --git a/scons/gallium.py b/scons/gallium.py
index 92a762a0c1..659da72c1c 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -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']




More information about the mesa-commit mailing list