[Scipy-svn] r3581 - branches/scipy.scons/scipy/signal

scipy-svn@scip... scipy-svn@scip...
Sat Nov 24 04:46:38 CST 2007


Author: cdavid
Date: 2007-11-24 04:46:29 -0600 (Sat, 24 Nov 2007)
New Revision: 3581

Added:
   branches/scipy.scons/scipy/signal/SConstruct
   branches/scipy.scons/scipy/signal/setupscons.py
Log:
signal now builds with scons

Copied: branches/scipy.scons/scipy/signal/SConstruct (from rev 3567, branches/scipy.scons/scipy/cluster/SConstruct)
===================================================================
--- branches/scipy.scons/scipy/cluster/SConstruct	2007-11-22 12:38:12 UTC (rev 3567)
+++ branches/scipy.scons/scipy/signal/SConstruct	2007-11-24 10:46:29 UTC (rev 3581)
@@ -0,0 +1,19 @@
+# Last Change: Sat Nov 24 07:00 PM 2007 J
+# vim:syntax=python
+from os.path import join
+
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numpy.distutils.scons import GetNumpyEnvironment
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+env.AppendUnique(CPPPATH = get_numpy_include_dirs())
+env.NumpyPythonExtension('sigtools', 
+                         source = ['sigtoolsmodule.c',\
+                                   'firfilter.c', \
+                                   'medianfilter.c'])
+
+env.NumpyPythonExtension('spline', 
+                         source = ['splinemodule.c', 'S_bspline_util.c', 
+                                   'D_bspline_util.c', 'C_bspline_util.c', 
+                                   'Z_bspline_util.c','bspline_util.c'])

Copied: branches/scipy.scons/scipy/signal/setupscons.py (from rev 3567, branches/scipy.scons/scipy/signal/setup.py)
===================================================================
--- branches/scipy.scons/scipy/signal/setup.py	2007-11-22 12:38:12 UTC (rev 3567)
+++ branches/scipy.scons/scipy/signal/setupscons.py	2007-11-24 10:46:29 UTC (rev 3581)
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+
+    config = Configuration('signal', parent_package, top_path)
+
+    config.add_sconscript('SConstruct')
+    config.add_data_dir('tests')
+
+    config.add_extension('sigtools',
+                         sources=['sigtoolsmodule.c',
+                                  'firfilter.c','medianfilter.c'],
+                         depends = ['sigtools.h']
+    )
+
+    config.add_extension('spline',
+        sources = ['splinemodule.c','S_bspline_util.c','D_bspline_util.c',
+                   'C_bspline_util.c','Z_bspline_util.c','bspline_util.c'],
+    )
+
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(**configuration(top_path='').todict())



More information about the Scipy-svn mailing list