diff options
author | David Cournapeau <cournape@gmail.com> | 2007-12-18 10:05:38 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2007-12-18 10:05:38 +0000 |
commit | b8964ed9b2ee180111d9b72052a0e19cb536a89f (patch) | |
tree | 54ec0da5248d8e758d944780d485da05b4b22878 /numpy/core/setup.py | |
parent | 359978d8be718aac42bc0369e67fbe8a0a26eac3 (diff) | |
download | numpy-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.py | 2 |
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'), |