[Numpy-svn] r4728 - branches/cleanconfig_rtm/numpy/core

numpy-svn@scip... numpy-svn@scip...
Fri Jan 18 03:59:45 CST 2008


Author: cdavid
Date: 2008-01-18 03:59:41 -0600 (Fri, 18 Jan 2008)
New Revision: 4728

Modified:
   branches/cleanconfig_rtm/numpy/core/setup.py
Log:
Correct logic to write NPY_NO_SMP symbol in config file

Modified: branches/cleanconfig_rtm/numpy/core/setup.py
===================================================================
--- branches/cleanconfig_rtm/numpy/core/setup.py	2008-01-18 09:51:21 UTC (rev 4727)
+++ branches/cleanconfig_rtm/numpy/core/setup.py	2008-01-18 09:59:41 UTC (rev 4728)
@@ -428,9 +428,9 @@
     # Define NPY_NOSMP to 1 if explicitely requested, or if we cannot
     # support thread support reliably
     if is_npy_no_smp():
-        testcode.append(r'#define NPY_NO_SMP 1')
+        testcode.append(r'    fprintf(f, "#define NPY_NO_SMP 1\n");')
     else:
-        testcode.write(r'#define NPY_NO_SMP 0')
+        testcode.append(r'    fprintf(f, "#define NPY_NO_SMP 0\n");')
 
     tmpcode = r"""
     #ifdef PY_LONG_LONG



More information about the Numpy-svn mailing list