diff options
author | David Cournapeau <cournape@gmail.com> | 2011-04-06 09:18:04 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2011-08-29 00:32:25 +0200 |
commit | a52f88fc04fd7f7548dce3f8489a42f628e54cbd (patch) | |
tree | de569f6156e9bedb25303f79e202c3cb8640b685 /bscript | |
parent | c615391e5304245bffeb969fb28ce32bc6e47c99 (diff) | |
download | numpy-a52f88fc04fd7f7548dce3f8489a42f628e54cbd.tar.gz |
STY: better name for top hooks.
Diffstat (limited to 'bscript')
-rw-r--r-- | bscript | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -6,9 +6,7 @@ import shutil import __builtin__ __builtin__.__NUMPY_SETUP__ = True -from bento.commands.hooks \ - import \ - pre_configure, post_build +from bento.commands import hooks from bento.commands.extras.waf \ import \ ConfigureWafContext, BuildWafContext @@ -45,8 +43,8 @@ def check_blas_lapack(conf): #conf.env.HAS_LAPACK = True #conf.env.LIB_LAPACK = ["lapack", "f77blas", "cblas", "atlas"] -@pre_configure() -def configure(context): +@hooks.pre_configure() +def pre_configure(context): conf = context.waf_context conf.load("compiler_c") @@ -80,8 +78,8 @@ def process_write_config(self): tsk.set_outputs(self.path.find_or_declare(self.target)) return tsk -@post_build() -def pbuild(context): +@hooks.pre_build() +def pre_build(context): bld = context.waf_context bld(features="gen_pymodule", @@ -98,8 +96,10 @@ git_revision = "" version = "" """, always=True) - bld.compile() +@hooks.post_build() +def post_build(context): + bld = context.waf_context # Poor man's and temporary replacement for in-place build if "-i" in sys.argv: for g in bld.groups: |