summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-08 15:56:46 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-08 15:56:46 +0000
commit775bac006ca28cb30bf7c733283c3453aa42a414 (patch)
tree5753d6f3b666bb6a1b54fcda7313d31594d36711
parent75ba2835b0a692556c468770785e0e9f66c75feb (diff)
downloadnumpy-775bac006ca28cb30bf7c733283c3453aa42a414.tar.gz
Trivial cleaning of numpy.core SConstruct
-rw-r--r--numpy/core/SConstruct9
1 files changed, 3 insertions, 6 deletions
diff --git a/numpy/core/SConstruct b/numpy/core/SConstruct
index 8b8272024..6a537a777 100644
--- a/numpy/core/SConstruct
+++ b/numpy/core/SConstruct
@@ -63,12 +63,9 @@ if is_npy_no_signal():
#---------------------
# Checking SMP option
#---------------------
-if define_no_smp():
- numpyconfig_sym.append(('NPY_NOSMP', '1'))
- config.Define('NPY_NOSMP', 1, "define to 1 to disable SMP support ")
-else:
- numpyconfig_sym.append(('NPY_NOSMP', '0'))
- config.Define('NPY_NOSMP', 0, "define to 1 to disable SMP support ")
+st = define_no_smp():
+numpyconfig_sym.append(('NPY_NOSMP', st))
+config.Define('NPY_NOSMP', st, "define to 1 to disable SMP support ")
#----------------------
# Checking the mathlib