Skip to content

Commit

Permalink
ENH: adding odr and weave to bento build.
Browse files Browse the repository at this point in the history
  • Loading branch information
cournape committed Apr 20, 2012
1 parent ba32d23 commit bb358ee
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
15 changes: 10 additions & 5 deletions bento.info
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,24 @@ DataFiles: tests
TargetDir: $sitedir/scipy
SourceDir: scipy
Files:
constants/tests/*.py,
cluster/tests/*.py,
cluster/tests/*.txt,
constants/tests/*.py,
fftpack/tests/*.py,
fftpack/tests/*.npz,
integrate/tests/*.py,
interpolate/tests/*.py,
io/arff/tests/*.py,
io/arff/tests/data/*.arff,
io/harwell_boeing/tests/*.py,
io/matlab/tests/*.py,
io/matlab/tests/data/*.txt,
io/matlab/tests/data/*.mat,
io/tests/*.py,
io/tests/data/*.nc,
io/tests/data/*.wav,
io/tests/data/*.sav,
io/matlab/tests/data/*.txt,
io/matlab/tests/data/*.mat,
io/arff/tests/data/*.arff,
odr/tests/*.py,
lib/blas/tests/*.py,
lib/lapack/tests/*.py,
linalg/tests/*.py,
Expand All @@ -71,7 +73,10 @@ DataFiles: tests
spatial/tests/*.txt,
special/tests/*.py,
special/tests/data/*.npz,
stats/tests/*.py
stats/tests/*.py,
weave/tests/*.py,
weave/scxx/*.h,
weave/scxx/*.cpp

Recurse: scipy

Expand Down
5 changes: 4 additions & 1 deletion scipy/bento.info
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Recurse:
io,
lib,
linalg,
odr,
optimize,
signal,
sparse,
Expand All @@ -24,9 +25,11 @@ Library:
lib,
linalg,
misc,
odr,
optimize,
signal,
sparse,
spatial,
special,
stats
stats,
weave
7 changes: 7 additions & 0 deletions scipy/odr/bento.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HookFile: bscript

Library:
CompiledLibrary: odrpack:
Sources: odrpack/d_odr.f, odrpack/d_mprec.f, odrpack/dlunoc.f, odrpack/d_lpk.f
Extension: __odrpack
Sources: __odrpack.c
9 changes: 9 additions & 0 deletions scipy/odr/bscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from bento.commands import hooks

@hooks.pre_build
def pre_build(context):
def builder(extension):
return context.default_builder(extension,
features="c fc pyext bento cshlib",
use="odrpack FBLAS CLIB")
context.register_builder("__odrpack", builder)

0 comments on commit bb358ee

Please sign in to comment.