summaryrefslogtreecommitdiff
path: root/numpy/core/SConstruct
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-21 05:35:20 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-21 05:35:20 +0000
commit41ca4b191c3d0cbcd48f3f3cd5456c2982339a3a (patch)
tree1051324b3d83a8307996445c550669ac519a65f3 /numpy/core/SConstruct
parent7a18c98fcb9466893febf93f0555b18e69d4f8bf (diff)
downloadnumpy-41ca4b191c3d0cbcd48f3f3cd5456c2982339a3a.tar.gz
Fixes for config and numpyconfig header generation:
- Replace NPY_NOSMP by NPY_NO_SMP in numpyconfig.h, and remove the NPY_NO_SMP define in config.h, because it is not needed.
Diffstat (limited to 'numpy/core/SConstruct')
-rw-r--r--numpy/core/SConstruct8
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/core/SConstruct b/numpy/core/SConstruct
index 1b9509eff..1be5bf6c9 100644
--- a/numpy/core/SConstruct
+++ b/numpy/core/SConstruct
@@ -63,9 +63,11 @@ if is_npy_no_signal():
#---------------------
# Checking SMP option
#---------------------
-st = define_no_smp()
-numpyconfig_sym.append(('NPY_NOSMP', st))
-config.Define('NPY_NOSMP', st, "define to 1 to disable SMP support ")
+if define_no_smp():
+ nosmp = 1
+else:
+ nosmp = 0
+numpyconfig_sym.append(('NPY_NO_SMP', nosmp))
#----------------------
# Checking the mathlib