[Scipy-svn] r3992 - branches/build_with_scons/scipy/stsci/convolve
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Mar 5 07:53:53 EST 2008
Author: cdavid
Date: 2008-03-05 06:53:46 -0600 (Wed, 05 Mar 2008)
New Revision: 3992
Added:
branches/build_with_scons/scipy/stsci/convolve/SConstruct
branches/build_with_scons/scipy/stsci/convolve/setupscons.py
Log:
stsci.convolve now builds with numscons.
Added: branches/build_with_scons/scipy/stsci/convolve/SConstruct
===================================================================
--- branches/build_with_scons/scipy/stsci/convolve/SConstruct 2008-03-05 12:48:09 UTC (rev 3991)
+++ branches/build_with_scons/scipy/stsci/convolve/SConstruct 2008-03-05 12:53:46 UTC (rev 3992)
@@ -0,0 +1,13 @@
+# Last Change: Wed Mar 05 09:00 PM 2008 J
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numpy import get_numarray_include
+from numscons import GetNumpyEnvironment
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+env.AppendUnique(CPPPATH = [get_numpy_include_dirs(), get_numarray_include()])
+env.AppendUnique(CPPDEFINES = {'NUMPY': '1'})
+
+# _correlate extension
+env.NumpyPythonExtension('_correlate', source = 'src/_correlatemodule.c')
+env.NumpyPythonExtension('_lineshape', source = 'src/_lineshapemodule.c')
Copied: branches/build_with_scons/scipy/stsci/convolve/setupscons.py (from rev 3979, branches/build_with_scons/scipy/stsci/convolve/setup.py)
===================================================================
--- branches/build_with_scons/scipy/stsci/convolve/setup.py 2008-03-05 08:14:54 UTC (rev 3979)
+++ branches/build_with_scons/scipy/stsci/convolve/setupscons.py 2008-03-05 12:53:46 UTC (rev 3992)
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+import numpy
+
+def configuration(parent_package='',top_path=None):
+ from numpy.distutils.misc_util import Configuration
+ config = Configuration('convolve',parent_package,top_path,
+ package_path='lib')
+
+ config.add_sconscript('SConstruct')
+
+ return config
+
+if __name__ == "__main__":
+ from numpy.distutils.core import setup
+ config = configuration(top_path='').todict()
+ setup(author='Todd Miller',
+ author_email = 'help at stsci.edu',
+ description = 'image array convolution functions',
+ version = '2.0',
+ **config)
More information about the Scipy-svn
mailing list