Skip to content

Commit

Permalink
BENTO: update arpack, isolve and blas.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Aug 30, 2011
1 parent 1ac9633 commit bfbb88a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion scipy/linalg/bento.info
Expand Up @@ -3,7 +3,7 @@ HookFile: bscript
Library:
Extension: fblas
Sources:
generic_fblas.pyf,
fblas.pyf.src,
src/fblaswrap.f
Extension: cblas
Sources:
Expand Down
9 changes: 4 additions & 5 deletions scipy/linalg/bscript
Expand Up @@ -12,11 +12,10 @@ def pre_build(context):
if sys.platform == "darwin":
source.pop(source.index("src/fblaswrap.f"))
source.append("src/fblaswrap_veclib_c.c")
t = bld(features="c pyext bento cloadable f2py",
source=source,
target=extension.name,
use="FBLAS")
t.mappings[".pyf"] = f2py.interface_gen_callback
bld(features="c fc pyext bento cloadable f2py",
source=source,
target=extension.name,
use="FBLAS")
context.register_builder("fblas", builder)

def builder(extension):
Expand Down
6 changes: 4 additions & 2 deletions scipy/sparse/linalg/eigen/arpack/bscript
Expand Up @@ -18,9 +18,11 @@ def pre_build(context):
sources.append("ARPACK/FWRAPPERS/veclib_cabi_c.c")
else:
sources.append("ARPACK/FWRAPPERS/dummy.f")
bld(features="c fc cstlib",
bld(features="c fc cstlib pyext bento",
source=sources,
target=extension.name)
target=extension.name,
# Hack to make use of claoadable flags for static archive
use="cloadable")
context.register_compiled_library_builder("arpack", builder)

def builder(extension):
Expand Down
12 changes: 11 additions & 1 deletion scipy/sparse/linalg/isolve/bscript
Expand Up @@ -7,8 +7,18 @@ def pre_build(context):
bld = context.waf_context

def builder(extension):
if sys.platform == "darwin":
use_c_calling = True
else:
use_c_calling = False
sources = extension.sources[:]
if use_c_calling:
sources.append("iterative/FWRAPPERS/veclib_cabi_f.f")
sources.append("iterative/FWRAPPERS/veclib_cabi_c.c")
else:
sources.append("iterative/FWRAPPERS/dummy.f")
bld(features="c pyext fc bento cloadable f2py",
source=extension.sources,
source=sources,
target=extension.name,
use="FLAPACK")
context.register_builder("_iterative", builder)

0 comments on commit bfbb88a

Please sign in to comment.