[Scipy-svn] r3981 - in branches/build_with_scons/scipy: . signal

scipy-svn at scipy.org scipy-svn at scipy.org
Wed Mar 5 03:17:31 EST 2008


Author: cdavid
Date: 2008-03-05 02:17:19 -0600 (Wed, 05 Mar 2008)
New Revision: 3981

Added:
   branches/build_with_scons/scipy/signal/SConstruct
   branches/build_with_scons/scipy/signal/setupscons.py
Modified:
   branches/build_with_scons/scipy/setupscons.py
Log:
signal now builds with numscons.

Modified: branches/build_with_scons/scipy/setupscons.py
===================================================================
--- branches/build_with_scons/scipy/setupscons.py	2008-03-05 08:15:51 UTC (rev 3980)
+++ branches/build_with_scons/scipy/setupscons.py	2008-03-05 08:17:19 UTC (rev 3981)
@@ -15,7 +15,7 @@
     config.add_subpackage('odr')
     config.add_subpackage('optimize')
     config.add_subpackage('sandbox')
-    #config.add_subpackage('signal')
+    config.add_subpackage('signal')
     #config.add_subpackage('sparse')
     #config.add_subpackage('special')
     #config.add_subpackage('splinalg')

Added: branches/build_with_scons/scipy/signal/SConstruct
===================================================================
--- branches/build_with_scons/scipy/signal/SConstruct	2008-03-05 08:15:51 UTC (rev 3980)
+++ branches/build_with_scons/scipy/signal/SConstruct	2008-03-05 08:17:19 UTC (rev 3981)
@@ -0,0 +1,19 @@
+# Last Change: Wed Mar 05 05:00 PM 2008 J
+# vim:syntax=python
+from os.path import join
+
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numscons 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/build_with_scons/scipy/signal/setupscons.py (from rev 3979, branches/build_with_scons/scipy/signal/setup.py)
===================================================================
--- branches/build_with_scons/scipy/signal/setup.py	2008-03-05 08:14:54 UTC (rev 3979)
+++ branches/build_with_scons/scipy/signal/setupscons.py	2008-03-05 08:17:19 UTC (rev 3981)
@@ -0,0 +1,15 @@
+#!/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')
+
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(**configuration(top_path='').todict())




More information about the Scipy-svn mailing list