summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-06-12 13:51:45 -0400
committerMathew Robinson <chasinglogic@gmail.com>2019-06-12 13:52:09 -0400
commit6a8f5d33543088dbf39b26275fb2a90cbd466cf5 (patch)
treea86834ab843c2d9848825541bca2133a4789a2b0
parent92667e651ee64dadc32c4677beec54d0cfdbaeae (diff)
downloadmongo-6a8f5d33543088dbf39b26275fb2a90cbd466cf5.tar.gz
SERVER-41424 scons should fail early if invoked with wrong Python interpreter
-rwxr-xr-xbuildscripts/scons.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/scons.py b/buildscripts/scons.py
index 8c7b9448c51..5ce17b8fd2b 100755
--- a/buildscripts/scons.py
+++ b/buildscripts/scons.py
@@ -6,6 +6,11 @@ from __future__ import print_function
import os
import sys
+if sys.version_info != (2, 7):
+ print("This version of MongoDB can only be built with Python 2.7"
+ " you appear to be using version: %s" % sys.version)
+ sys.exit(1)
+
SCONS_VERSION = os.environ.get('SCONS_VERSION', "2.5.0")
MONGODB_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))