summaryrefslogtreecommitdiff
path: root/numpy/lib
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2012-05-31 19:26:13 +0900
committerDavid Cournapeau <cournape@gmail.com>2012-06-01 03:11:14 +0900
commit7ec6cf4216abbe3539ce0cca3d53a436c1e6deb5 (patch)
tree06417f89ba3dbf0b04ec03e5d8f89428a3e7a2c1 /numpy/lib
parent87295b3e2202da7a9bfe44062c0c715b5bc08d6f (diff)
downloadnumpy-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/bscript19
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"])