summaryrefslogtreecommitdiff
path: root/numpy/random/bscript
blob: 05c54562d912fc4548c4f8fd9c726432f55a33de (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(bld, extension):
        includes = ["../core/include", "../core/include/numpy", "../core",
                    "../core/src/private"]
        bld(features="c cshlib pyext",
            target=extension.name,
            source=extension.sources,
            includes=includes)
    context.register_builder("mtrand", builder)