summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2007-12-18 10:05:38 +0000
committerDavid Cournapeau <cournape@gmail.com>2007-12-18 10:05:38 +0000
commitb8964ed9b2ee180111d9b72052a0e19cb536a89f (patch)
tree54ec0da5248d8e758d944780d485da05b4b22878 /numpy/core/setup.py
parent359978d8be718aac42bc0369e67fbe8a0a26eac3 (diff)
downloadnumpy-b8964ed9b2ee180111d9b72052a0e19cb536a89f.tar.gz
Fix escaping problem when generating numpyconfig.h on win32
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 9c4725e41..d51c3110b 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -390,6 +390,8 @@ int main(int argc, char **argv)
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'),