[SCons] Fix 'HAS_NO_PYTHON' to account for the Python 3 package

This commit is contained in:
Ray Speth 2013-06-24 15:22:55 +00:00
parent 73c43a3a26
commit 5213393c1e

View file

@ -1095,7 +1095,10 @@ cdefine('NEEDS_GENERIC_TEMPL_STATIC_DECL', 'OS', 'Solaris')
cdefine('HAS_NUMPY', 'python_array', 'numpy')
cdefine('HAS_NUMARRAY', 'python_array', 'numarray')
cdefine('HAS_NUMERIC', 'python_array', 'numeric')
cdefine('HAS_NO_PYTHON', 'python_package', 'none')
if env['python_package'] == 'none' and env['python3_package'] == 'n':
configh['HAS_NO_PYTHON'] = 1
else:
configh['HAS_NO_PYTHON'] = None
cdefine('HAS_SUNDIALS', 'use_sundials', 'y')
if env['use_sundials'] == 'y':