[Numpy-svn] r4617 - branches/cleanconfig_rtm/numpy/core
numpy-svn at scipy.org
numpy-svn at scipy.org
Tue Dec 18 05:06:01 EST 2007
Author: cdavid
Date: 2007-12-18 04:05:38 -0600 (Tue, 18 Dec 2007)
New Revision: 4617
Modified:
branches/cleanconfig_rtm/numpy/core/setup.py
Log:
Fix escaping problem when generating numpyconfig.h on win32
Modified: branches/cleanconfig_rtm/numpy/core/setup.py
===================================================================
--- branches/cleanconfig_rtm/numpy/core/setup.py 2007-12-18 09:57:21 UTC (rev 4616)
+++ branches/cleanconfig_rtm/numpy/core/setup.py 2007-12-18 10:05:38 UTC (rev 4617)
@@ -390,6 +390,8 @@
def generate_numpyconfig_code(target):
"""Return the source code as a string of the code to generate the
numpyconfig header file."""
+ if sys.platform == 'win32':
+ target = target.replace('\\','\\\\')
# Config symbols to prepend
prepends = [('NPY_SIZEOF_SHORT', 'SIZEOF_SHORT'),
('NPY_SIZEOF_INT', 'SIZEOF_INT'),
More information about the Numpy-svn
mailing list