[Numpy-svn] r4697 - branches/build_with_scons/numpy/fft

numpy-svn@scip... numpy-svn@scip...
Sun Jan 6 20:42:23 CST 2008


Author: cdavid
Date: 2008-01-06 20:42:16 -0600 (Sun, 06 Jan 2008)
New Revision: 4697

Added:
   branches/build_with_scons/numpy/fft/SConstruct
   branches/build_with_scons/numpy/fft/setupscons.py
Log:
numpy.fft builds with scons

Added: branches/build_with_scons/numpy/fft/SConstruct
===================================================================
--- branches/build_with_scons/numpy/fft/SConstruct	2008-01-07 02:40:39 UTC (rev 4696)
+++ branches/build_with_scons/numpy/fft/SConstruct	2008-01-07 02:42:16 UTC (rev 4697)
@@ -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'])

Added: branches/build_with_scons/numpy/fft/setupscons.py
===================================================================
--- branches/build_with_scons/numpy/fft/setupscons.py	2008-01-07 02:40:39 UTC (rev 4696)
+++ branches/build_with_scons/numpy/fft/setupscons.py	2008-01-07 02:42:16 UTC (rev 4697)
@@ -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)



More information about the Numpy-svn mailing list