From 69af3d08e8a8cbaf35277c4b718237bf3f1a89c1 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Tue, 15 Mar 2011 13:23:26 -0400 Subject: ENH: add fft/random support. --- numpy/random/bscript | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 numpy/random/bscript (limited to 'numpy/random/bscript') diff --git a/numpy/random/bscript b/numpy/random/bscript new file mode 100644 index 000000000..3c0d2990b --- /dev/null +++ b/numpy/random/bscript @@ -0,0 +1,32 @@ +import os + +from bento.commands.hooks \ + import \ + pre_build + +@pre_build() +def build(context): + bld = context.waf_context + old_path = bld.path + bld.path = old_path.find_dir(context.local_node.path_from(context.top_node)) + assert bld.path.__class__ == old_path.__class__ + + + if os.name == 'nt': + raise NotImplementedError("Check for wincrypt stuff") + raise NotImplementedError("Check for mingw time workaround stuff") + + includes = [ + os.path.join(bld.srcnode.path_from(bld.path), "numpy/core"), + os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/include"), + os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/include/numpy"), + os.path.join(bld.srcnode.path_from(bld.path), "numpy/core/src/private")] + + def builder(bld, extension): + bld(features="c cshlib pyext", + target=extension.name, + source=extension.sources, + includes=includes) + context.register_builder("mtrand", builder) + + bld.path = old_path -- cgit v1.2.1