diff options
author | David Cournapeau <cournape@gmail.com> | 2012-05-31 19:26:13 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2012-06-01 03:11:14 +0900 |
commit | 7ec6cf4216abbe3539ce0cca3d53a436c1e6deb5 (patch) | |
tree | 06417f89ba3dbf0b04ec03e5d8f89428a3e7a2c1 /numpy/fft/bscript | |
parent | 87295b3e2202da7a9bfe44062c0c715b5bc08d6f (diff) | |
download | numpy-7ec6cf4216abbe3539ce0cca3d53a436c1e6deb5.tar.gz |
REF: simplify extension customization.
We are using the new tweak_* bento API wherever possible.
Diffstat (limited to 'numpy/fft/bscript')
-rw-r--r-- | numpy/fft/bscript | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/numpy/fft/bscript b/numpy/fft/bscript index 165ff145d..ac1506496 100644 --- a/numpy/fft/bscript +++ b/numpy/fft/bscript @@ -1,15 +1,7 @@ -import os +from bento.commands import hooks -from bento.commands.hooks \ - import \ - pre_build - -@pre_build +@hooks.pre_build def build(context): - bld = context.waf_context - - def build(extension): - includes = ["../core/include", "../core/include/numpy", "../core", - "../core/src/private"] - return context.default_builder(extension, includes=includes) - context.register_builder("fftpack_lite", build) + context.tweak_extension("fftpack_lite", + includes=["../core/include", "../core/include/numpy", + "../core", "../core/src/private"]) |