diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-01-26 16:54:21 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-01-27 13:48:19 -0500 |
commit | 577791587acf06dfd5e3d9c268df61371a9206ef (patch) | |
tree | 299f7f239efc2df27cf9a0ddba68ed18de78ab3e /SConstruct | |
parent | 422cbb6cea5fa5be6829044215ae46dc10be5f70 (diff) | |
download | mongo-577791587acf06dfd5e3d9c268df61371a9206ef.tar.gz |
Add 64-bit check for python
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 5f759b538ac..7d961126c34 100644 --- a/SConstruct +++ b/SConstruct @@ -1,6 +1,7 @@ # -*- mode: python; -*- import re import os +import sys import textwrap import distutils.sysconfig @@ -242,6 +243,12 @@ wtbin = env.Program("wt", [ # Python SWIG wrapper for WiredTiger if GetOption("lang-python"): + # Check that this version of python is 64-bit + # + if sys.maxsize < 2**32: + print "The Python Interpreter must be 64-bit in order to build the python bindings" + Exit(1) + pythonEnv = env.Clone() pythonEnv.Append(SWIGFLAGS=[ "-python", |