Skip to content

Commit

Permalink
REF: use new hook signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Aug 28, 2011
1 parent dab6ffc commit 0d8b636
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bscript
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def remove_flag_prevalue(name, flag):
else:
break

@hooks.pre_configure()
@hooks.pre_configure
def pre_configure(context):
conf = context.waf_context

Expand Down Expand Up @@ -127,7 +127,7 @@ def process_write_config(self):
tsk.set_outputs(output)
return tsk

@hooks.pre_build()
@hooks.pre_build
def pre_build(context):
bld = context.waf_context

Expand Down
4 changes: 2 additions & 2 deletions numpy/core/bscript
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def check_complex(conf):
for t in C99_COMPLEX_TYPES:
NUMPYCONFIG_SYM.append(('DEFINE_NPY_HAVE_%s' % numpy.build_utils.waf.sanitize_string(t), ''))

@pre_configure()
@pre_configure
def configure(context):
conf = context.waf_context

Expand Down Expand Up @@ -377,7 +377,7 @@ def process_umath_generator(self):
return tsk

from os.path import join as pjoin
@pre_build()
@pre_build
def pbuild(context):
bld = context.waf_context

Expand Down
2 changes: 1 addition & 1 deletion numpy/fft/bscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from bento.commands.hooks \
import \
pre_build

@pre_build()
@pre_build
def build(context):
bld = context.waf_context

Expand Down
2 changes: 1 addition & 1 deletion numpy/lib/bscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from bento.commands.hooks \
import \
pre_build

@pre_build()
@pre_build
def pbuild(context):
bld = context.waf_context
def builder_compiled_base(extension):
Expand Down
2 changes: 1 addition & 1 deletion numpy/linalg/bscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from bento.commands.hooks \
import \
pre_build

@pre_build()
@pre_build
def pbuild(context):
bld = context.waf_context

Expand Down
2 changes: 1 addition & 1 deletion numpy/random/bscript
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from bento.commands.hooks \
import \
pre_build

@pre_build()
@pre_build
def build(context):
bld = context.waf_context

Expand Down

0 comments on commit 0d8b636

Please sign in to comment.