File: bscript

package info (click to toggle)
python-scipy 0.14.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 52,228 kB
  • ctags: 63,719
  • sloc: python: 112,726; fortran: 88,685; cpp: 86,979; ansic: 85,860; makefile: 530; sh: 236
file content (24 lines) | stat: -rw-r--r-- 975 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from bento.commands import hooks

@hooks.pre_build
def pre_build(context):
    context.waf_context.env.INCLUDES.append(".")

    context.tweak_extension("orthogonal_eval", use="NPYMATH")
    context.tweak_extension("lambertw", use="NPYMATH")
    context.tweak_extension("_logit", use="NPYMATH")

    context.tweak_extension("specfun", features="c fc pyext cshlib bento f2py",
                             use="sc_specfun NPYMATH CLIB")

    context.tweak_extension("_cephes",
                          use="sc_amos sc_toms sc_c_misc sc_cephes sc_mach " \
                              "sc_cdf sc_specfun NPYMATH CLIB")

    context.tweak_extension("_ufuncs_cxx", features="cxx cxxshlib pyext bento",
                            use="NPYMATH")

    context.waf_context.env.INCLUDES.append("c_misc")
    context.tweak_extension("_ufuncs",
                            use="sc_amos sc_c_misc sc_cephes sc_mach sc_cdf "\
                                "sc_specfun NPYMATH CLIB")