diff options
author | David Cournapeau <cournape@gmail.com> | 2011-03-15 13:23:26 -0400 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2011-08-29 00:32:23 +0200 |
commit | 69af3d08e8a8cbaf35277c4b718237bf3f1a89c1 (patch) | |
tree | 5e858a243b2c4c0b47f300d0b1b611f3a6c6ef27 /numpy/fft/bscript | |
parent | b6aeed33b7d24449d51fdece5a142b939d2743ed (diff) | |
download | numpy-69af3d08e8a8cbaf35277c4b718237bf3f1a89c1.tar.gz |
ENH: add fft/random support.
Diffstat (limited to 'numpy/fft/bscript')
-rw-r--r-- | numpy/fft/bscript | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/numpy/fft/bscript b/numpy/fft/bscript new file mode 100644 index 000000000..a0d969e02 --- /dev/null +++ b/numpy/fft/bscript @@ -0,0 +1,28 @@ +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__ + + # FIXME: there has to be a better way to refer to numpy/core include + 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 build(bld, extension): + bld(features="c cshlib pyext", + target=extension.name, + source=extension.sources, + includes=includes) + context.register_builder("fftpack_lite", build) + + bld.path = old_path |