1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
from bento.commands import hooks
@hooks.pre_build
def pre_build(context):
default_builder = context.default_builder
def builder_factory(use):
use = "%s FBLAS CLIB" % use
return lambda e: default_builder(e, use=use)
context.register_builder("_fitpack", builder_factory("fitpack"))
context.register_builder("interpnd", builder_factory("fitpack"))
context.register_builder("dfitpack",
lambda e: default_builder(e,
use="fitpack FBLAS CLIB",
features="c cshlib pyext bento f2py"))
context.register_builder("_interpolate",
lambda e: default_builder(e,
use="FBLAS CLIB",
features="cxx cxxshlib pyext bento"))
|