diff options
author | David Cournapeau <cournape@gmail.com> | 2008-06-21 11:08:37 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-06-21 11:08:37 +0000 |
commit | 03fbbffca884c70d56e08d5551b001dd6b9565c6 (patch) | |
tree | 791b539a31d52a56de50c44a112ecd4501473051 | |
parent | d2d7e7f47eec9ab9575b231f2a3805b788b778ae (diff) | |
download | numpy-03fbbffca884c70d56e08d5551b001dd6b9565c6.tar.gz |
Temporary workaround for a numscons bug.
-rw-r--r-- | numpy/core/SConscript | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index a2cbf6609..c3a81399e 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -263,5 +263,12 @@ scalarmathmodule = env.DistutilsPythonExtension('scalarmath', #---------------------- if build_blasdot: dotblas_src = [pjoin('blasdot', i) for i in ['_dotblas.c']] - dotblas = env.DistutilsPythonExtension('_dotblas', source = dotblas_src) - env.Depends(dotblas, pjoin("blasdot", "cblas.h")) + # because _dotblas does #include CBLAS_HEADER instead of #include + # "cblas.h", scons does not detect the dependency + # XXX: PythonExtension builder does not take the Depends on extension into + # account for some reason, so we first build the object, with forced + # dependency, and then builds the extension. This is more likely a bug in + # our PythonExtension builder, but I cannot see how to solve it. + dotblas_o = env.PythonObject('_dotblas', source = dotblas_src) + env.Depends(dotblas_o, pjoin("blasdot", "cblas.h")) + dotblas = env.DistutilsPythonExtension('_dotblas', dotblas_o) |