from bento.commands import hooks

@hooks.pre_build
def pre_build(context):
    context.tweak_extension("_quadpack",
                            use="quadpack mach BLAS LAPACK CLIB",
                            includes='../_lib/src')
    context.tweak_extension("_odepack",
                            use="odepack mach BLAS LAPACK CLIB")
    context.tweak_extension("vode",
                            features="c cshlib pyext bento f2py",
                            use="odepack mach BLAS LAPACK CLIB")
    context.tweak_extension("lsoda",
                            features="c cshlib pyext bento f2py",
                            use="odepack mach BLAS LAPACK CLIB")
    context.tweak_extension("_dop",
                            features="c fc cshlib pyext bento f2py",
                            use="dop BLAS CLIB")
    context.tweak_extension("_test_odeint_banded",
                            features="c fc cshlib pyext bento f2py f2py_fortran",
                            use="odepack mach BLAS LAPACK CLIB")
