[Numpy-svn] r4254 - branches/cleanconfig/numpy/core

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Oct 19 00:03:21 EDT 2007


Author: cdavid
Date: 2007-10-18 23:03:12 -0500 (Thu, 18 Oct 2007)
New Revision: 4254

Modified:
   branches/cleanconfig/numpy/core/setup.py
Log:
Fix escape pb on win32 in numpyconfig.h generation

Modified: branches/cleanconfig/numpy/core/setup.py
===================================================================
--- branches/cleanconfig/numpy/core/setup.py	2007-10-19 03:47:00 UTC (rev 4253)
+++ branches/cleanconfig/numpy/core/setup.py	2007-10-19 04:03:12 UTC (rev 4254)
@@ -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