diff options
author | David Cournapeau <cournape@gmail.com> | 2009-07-07 08:22:07 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-07-07 08:22:07 +0000 |
commit | 82772033cb9449f0efaa8fb2cb9f8af5a97073f8 (patch) | |
tree | 4c852f35cf7a94aebf4bcdf1f8fe74b1917a0fd8 /numpy | |
parent | 65a78ef1a76fd9cceb64ddfd57a8edb5e16bf2c6 (diff) | |
download | numpy-82772033cb9449f0efaa8fb2cb9f8af5a97073f8.tar.gz |
Fix in-place numscons build.
The generated numpyconfig.h header is 'installed' in the build directory
now, so that one can build C extensions against a numpy built in-place.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 6997b8f68..8474992ca 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -272,7 +272,10 @@ for key, value in numpyconfig_sym: env['SUBST_DICT'] = config_dict include_dir = 'include/numpy' -env.SubstInFile(pjoin(include_dir, 'numpyconfig.h'), pjoin(include_dir, 'numpyconfig.h.in')) +target = env.SubstInFile(pjoin(include_dir, 'numpyconfig.h'), + pjoin(include_dir, 'numpyconfig.h.in')) +# "Install" the header in the build directory, so that in-place build works +env.Install(pjoin('$distutils_installdir', include_dir), target) env['CONFIG_H_GEN'] = numpyconfig_sym |