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/lib | |
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/lib')
-rw-r--r-- | numpy/lib/bscript | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/numpy/lib/bscript b/numpy/lib/bscript index 8d47e1f34..a9200d043 100644 --- a/numpy/lib/bscript +++ b/numpy/lib/bscript @@ -1,14 +1,7 @@ -import os +from bento.commands import hooks -from bento.commands.hooks \ - import \ - pre_build - -@pre_build -def pbuild(context): - bld = context.waf_context - def builder_compiled_base(extension): - includes = ["../core/include", "../core/include/numpy", "../core", - "../core/src/private"] - return context.default_builder(extension, includes=includes) - context.register_builder("_compiled_base", builder_compiled_base) +@hooks.pre_build +def build(context): + context.tweak_extension("_compiled_base", + includes=["../core/include", "../core/include/numpy", "../core", + "../core/src/private"]) |