From 5213393c1ebebe62b0bc6d69a2a4712dad83c746 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 24 Jun 2013 15:22:55 +0000 Subject: [PATCH] [SCons] Fix 'HAS_NO_PYTHON' to account for the Python 3 package --- SConstruct | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 058a9eea3..308681408 100644 --- a/SConstruct +++ b/SConstruct @@ -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':