from numpy.distutils.system_info import get_info
config = Configuration("integrate", parent_package, top_path)
blas_opt = get_info("blas_opt",notfound_action=2)
lapack_opt = get_info("lapack_opt",notfound_action=2)
mach_src = [join("mach","*.f")]
quadpack_src = [join("quadpack","*.f")]
odepack_src = [join("odepack","*.f")]
dop_src = [join("dop","*.f")]
quadpack_test_src = [join("tests","_test_multivariate.c")]
config.add_library("mach", sources=mach_src,
config_fc={"noopt":(__file__,1)})
config.add_library("quadpack", sources=quadpack_src)
config.add_library("odepack", sources=odepack_src)
config.add_library("dop", sources=dop_src)
// Extensions
// quadpack:
config.add_extension("_quadpack",
sources=["_quadpackmodule.c"],
libraries=(["quadpack", "mach"] +
lapack_opt["libraries"]),
depends=(["quadpack.h","__quadpack.h"]
+ quadpack_src + mach_src))
// odepack
libs = ["odepack","mach"]
// Remove libraries key from blas_opt
if "libraries" in blas_opt: // key doesn"t exist on OS X ...
libs.extend(blas_opt["libraries"])
libs.extend(lapack_opt["libraries"])
newblas = {}
for key in blas_opt:
if key == "libraries":
After Change
lapack_opt = dict(get_info("lapack_opt",notfound_action=2))
// Pop off the libraries list so it can be combined with
// additional required libraries
lapack_libs = lapack_opt.pop("libraries", [])
mach_src = [join("mach","*.f")]
quadpack_src = [join("quadpack","*.f")]
odepack_src = [join("odepack","*.f")]