summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-07-07 08:22:07 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-07-07 08:22:07 +0000
commit82772033cb9449f0efaa8fb2cb9f8af5a97073f8 (patch)
tree4c852f35cf7a94aebf4bcdf1f8fe74b1917a0fd8 /numpy
parent65a78ef1a76fd9cceb64ddfd57a8edb5e16bf2c6 (diff)
downloadnumpy-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/SConscript5
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