summaryrefslogtreecommitdiff
path: root/numpy/fft
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2008-01-07 02:42:16 +0000
committerDavid Cournapeau <cournape@gmail.com>2008-01-07 02:42:16 +0000
commit022f76e7e3d66af6dbbd058f70095956407486b5 (patch)
treee7015089b5e69814ef6953108634b8d5922198a2 /numpy/fft
parentd3a2b3467bbf3c001713978bb2c3f7e2808399a8 (diff)
downloadpython-numpy-022f76e7e3d66af6dbbd058f70095956407486b5.tar.gz
python-numpy-022f76e7e3d66af6dbbd058f70095956407486b5.tar.bz2
python-numpy-022f76e7e3d66af6dbbd058f70095956407486b5.zip
numpy.fft builds with scons
Diffstat (limited to 'numpy/fft')
-rw-r--r--numpy/fft/SConstruct13
-rw-r--r--numpy/fft/setupscons.py15
2 files changed, 28 insertions, 0 deletions
diff --git a/numpy/fft/SConstruct b/numpy/fft/SConstruct
new file mode 100644
index 000000000..2a53f6477
--- /dev/null
+++ b/numpy/fft/SConstruct
@@ -0,0 +1,13 @@
+# Last Change: Thu Oct 18 09:00 PM 2007 J
+# vim:syntax=python
+import __builtin__
+__builtin__.__NUMPY_SETUP__ = True
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numscons import GetNumpyEnvironment, scons_get_paths
+
+env = GetNumpyEnvironment(ARGUMENTS)
+env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
+
+fftpack_lite = env.NumpyPythonExtension('fftpack_lite',
+ source = ['fftpack_litemodule.c',
+ 'fftpack.c'])
diff --git a/numpy/fft/setupscons.py b/numpy/fft/setupscons.py
new file mode 100644
index 000000000..2fe9509e8
--- /dev/null
+++ b/numpy/fft/setupscons.py
@@ -0,0 +1,15 @@
+def configuration(parent_package = '', top_path = None):
+ from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
+ config = Configuration('fft', parent_package, top_path)
+
+ config.add_data_dir('tests')
+
+ config.add_sconscript('SConstruct',
+ source_files = ['fftpack_litemodule.c', 'fftpack.c',
+ 'fftpack.h'])
+
+ return config
+
+if __name__ == '__main__':
+ from numpy.distutils.core import setup
+ setup(configuration=configuration)