diff options
author | David Cournapeau <cournape@gmail.com> | 2009-07-07 09:06:56 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-07-07 09:06:56 +0000 |
commit | 392f28f11ff48e7da9fe05c3413dcf7ebc856d4b (patch) | |
tree | adbb12fe9c1d398852195ac993414def75887223 | |
parent | f67b0fbc9a65f344605b3aab8cc1d74bd920f8a3 (diff) | |
download | numpy-392f28f11ff48e7da9fe05c3413dcf7ebc856d4b.tar.gz |
'Install' generated headers for in-place build support.
-rw-r--r-- | numpy/core/SConscript | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 2a527ab8a..caa8ebd37 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -262,6 +262,10 @@ write_info(env) # Build #========== +# List of headers which need to be "installed " into the build directory for +# proper in-place build support +generated_headers = [] + #--------------------------------------- # Generate the public configuration file #--------------------------------------- @@ -274,8 +278,7 @@ env['SUBST_DICT'] = config_dict include_dir = 'include/numpy' 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) +generated_headers.append(target[0]) env['CONFIG_H_GEN'] = numpyconfig_sym @@ -403,3 +406,8 @@ if build_blasdot: dotblas_o = env.PythonObject('_dotblas', source = dotblas_src) env.Depends(dotblas_o, pjoin("blasdot", "cblas.h")) dotblas = env.DistutilsPythonExtension('_dotblas', dotblas_o) + +# "Install" the header in the build directory, so that in-place build works +for h in generated_headers: + print h + env.Install(pjoin('$distutils_installdir', include_dir), h) |