[Numpy-svn] r4728 - branches/cleanconfig_rtm/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Fri Jan 18 04:59:45 EST 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