summaryrefslogtreecommitdiff
path: root/numpy/random/bscript
blob: 85f191f2dc07ee839a1a6431c83fe3f801194dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os

from bento.commands.hooks \
    import \
        pre_build

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

    if os.name == 'nt':
        raise NotImplementedError("Check for wincrypt stuff")
        raise NotImplementedError("Check for mingw time workaround stuff")

    def builder(extension):
        includes = ["../core/include", "../core/include/numpy", "../core",
                    "../core/src/private"]
        bld(features="c cshlib pyext bento",
            target=extension.name,
            source=extension.sources,
            includes=includes)
    context.register_builder("mtrand", builder)