From 7ec6cf4216abbe3539ce0cca3d53a436c1e6deb5 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Thu, 31 May 2012 19:26:13 +0900 Subject: REF: simplify extension customization. We are using the new tweak_* bento API wherever possible. --- numpy/lib/bscript | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'numpy/lib') 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"]) -- cgit v1.2.1