File: bscript

package info (click to toggle)
python-scipy 0.10.1%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 42,232 kB
  • sloc: cpp: 224,773; ansic: 103,496; python: 85,210; fortran: 79,130; makefile: 272; sh: 43
file content (13 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
from bento.commands import hooks

@hooks.pre_build
def pre_build(context):
    bld = context.waf_context

    def builder(extension):
        bld(features="cxx cxxshlib pyext bento",
            source=extension.sources,
            defines=('__STDC_FORMAT_MACROS',),
            target=extension.name)
    for e in ["_csr", "_csc", "_coo", "_bsr", "_dia", "_csgraph"]:
        context.register_builder(e, builder)