diff options
author | David Cournapeau <cournape@gmail.com> | 2012-05-31 18:25:20 +0900 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2012-06-01 03:11:14 +0900 |
commit | 87295b3e2202da7a9bfe44062c0c715b5bc08d6f (patch) | |
tree | 805f41094b84071d26294ce346ed592083c8cc12 /bscript | |
parent | fc466d4410ac05d2a80d29541579e8d1145d40f8 (diff) | |
download | numpy-87295b3e2202da7a9bfe44062c0c715b5bc08d6f.tar.gz |
REF: use simpler API in top bscript.
We use the new register_outputs_simple + remove some redundant code.
Diffstat (limited to 'bscript')
-rw-r--r-- | bscript | 17 |
1 files changed, 4 insertions, 13 deletions
@@ -105,29 +105,20 @@ def make_git_commit_info(ctx): commit_template = ctx.make_source_node(op.join("numpy", "version.py.in")) return set_revision(commit_template, ctx.pkg.version) -@hooks.pre_configure -def pre_configure(context): +@hooks.post_configure +def post_configure(context): conf = context.waf_context - - conf.load("compiler_c") - conf.load("custom_python", tooldir=[waf_backend.WAF_TOOLDIR]) - - conf.check_python_version((2, 4, 0)) - conf.check_python_headers() - if conf.env["CC_NAME"] == "gcc": conf.env.CFLAGS_PYEXT.append("-Wfatal-errors") check_blas_lapack(conf) @hooks.pre_build def pre_build(context): - context.register_category("git_info") commit_output = make_git_commit_info(context) - context.register_outputs("git_info", "git_commit_info", [commit_output]) + context.register_outputs_simple([commit_output]) # FIXME: we write a dummy show for now - the original show function is not # super useful anyway. - context.register_category("gen_config") config_node = context.make_build_node("numpy/__config__.py") config_node.safe_write("def show(): pass") - context.register_outputs("gen_config", "top_config", [config_node]) + context.register_outputs_simple([config_node]) |