[Scipy-svn] r3559 - branches/scipy.scons/scipy/interpolate

scipy-svn@scip... scipy-svn@scip...
Wed Nov 21 09:49:03 CST 2007


Author: cdavid
Date: 2007-11-21 09:48:36 -0600 (Wed, 21 Nov 2007)
New Revision: 3559

Added:
   branches/scipy.scons/scipy/interpolate/SConstruct
   branches/scipy.scons/scipy/interpolate/setupscons.py
Log:
scons build done for interpolate

Added: branches/scipy.scons/scipy/interpolate/SConstruct
===================================================================
--- branches/scipy.scons/scipy/interpolate/SConstruct	2007-11-21 15:27:57 UTC (rev 3558)
+++ branches/scipy.scons/scipy/interpolate/SConstruct	2007-11-21 15:48:36 UTC (rev 3559)
@@ -0,0 +1,33 @@
+# Last Change: Wed Nov 21 08:00 PM 2007 J
+# vim:syntax=python
+from os.path import join as pjoin
+import glob
+
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numpy.distutils.scons import GetNumpyEnvironment, CheckF77Clib
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib})
+if not config.CheckF77Clib():
+    raise Exception("Could not check F77 runtime, needed for interpolate")
+config.Finish()
+
+env.AppendUnique(CPPPATH = get_numpy_include_dirs())
+env.AppendUnique(CPPPATH = env['F2PYINCLUDEDIR'])
+env.AppendUnique(LINKFLAGS = env['F77_LDFLAGS'])
+
+# Build fitpack
+src = glob.glob(pjoin('fitpack', '*.f'))
+fitpack = env.NumpyStaticExtLibrary('fitpack', source = src)
+
+env.AppendUnique(LIBS = ['fitpack'])
+env.AppendUnique(LIBPATH = env['build_dir'])
+
+# Build _fitpack
+env.NumpyPythonExtension('_fitpack', source = '_fitpackmodule.c')
+
+# Build dfitpack
+dfitpack_wrap = env.F2PY(pjoin(env['build_dir'], 'dfitpack'), 
+                         pjoin(env['build_dir'], 'fitpack.pyf')) 
+env.NumpyPythonExtension('dfitpack', source = dfitpack_wrap)

Copied: branches/scipy.scons/scipy/interpolate/setupscons.py (from rev 3557, branches/scipy.scons/scipy/interpolate/setup.py)
===================================================================
--- branches/scipy.scons/scipy/interpolate/setup.py	2007-11-21 12:32:02 UTC (rev 3557)
+++ branches/scipy.scons/scipy/interpolate/setupscons.py	2007-11-21 15:48:36 UTC (rev 3559)
@@ -0,0 +1,17 @@
+#!/usr/bin/env python
+
+from os.path import join
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+
+    config = Configuration('interpolate', 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