From d75b394f63be1ffa9e9499e710d77643f1ef1b2f Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 3 Jan 2013 19:08:42 +0000 Subject: [PATCH] [SCons] Fixed a bug when building without numpy --- SConstruct | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 025066620..b211dea82 100644 --- a/SConstruct +++ b/SConstruct @@ -726,6 +726,7 @@ int main(int argc, char** argv) { env = conf.Finish() +env['python_array_include'] = '' if env['python_package'] in ('full','default'): # Test to see if we can import the specified array module warnNoPython = False @@ -737,7 +738,6 @@ if env['python_package'] in ('full','default'): env['python_array_include'] = np.get_include() except AttributeError: print """WARNING: Couldn't find include directory for Python array package""" - env['python_array_include'] = '' print """INFO: Building the full Python package using %s.""" % env['python_array'] env['python_package'] = 'full' @@ -753,7 +753,6 @@ if env['python_package'] in ('full','default'): env['python_package'] = 'minimal' else: warnNoPython = False - env['python_array_include'] = '' # Matlab Toolbox settings