[Scipy-svn] r3558 - branches/scipy.scons/scipy/integrate

scipy-svn@scip... scipy-svn@scip...
Wed Nov 21 09:28:24 CST 2007


Author: cdavid
Date: 2007-11-21 09:27:57 -0600 (Wed, 21 Nov 2007)
New Revision: 3558

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

Added: branches/scipy.scons/scipy/integrate/SConstruct
===================================================================
--- branches/scipy.scons/scipy/integrate/SConstruct	2007-11-21 12:32:02 UTC (rev 3557)
+++ branches/scipy.scons/scipy/integrate/SConstruct	2007-11-21 15:27:57 UTC (rev 3558)
@@ -0,0 +1,42 @@
+# 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
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+env.AppendUnique(CPPPATH = get_numpy_include_dirs())
+env.AppendUnique(CPPPATH = env['F2PYINCLUDEDIR'])
+
+# XXX: blas/lapack integration
+
+# Build linpack_lite
+src = glob.glob(pjoin('linpack_lite', '*.f'))
+linpack_lite = env.NumpyStaticExtLibrary('linpack_lite', source = src)
+
+# Build mach
+src = glob.glob(pjoin('mach', '*.f'))
+mach = env.NumpyStaticExtLibrary('mach', source = src)
+
+# Build quadpack
+src = glob.glob(pjoin('quadpack', '*.f'))
+quadpack = env.NumpyStaticExtLibrary('quadpack', source = src)
+
+# Build odepack
+src = glob.glob(pjoin('odepack', '*.f'))
+odepack = env.NumpyStaticExtLibrary('odepack', source = src)
+
+env.AppendUnique(LIBS = ['linpack_lite', 'quadpack', 'odepack'])
+env.AppendUnique(LIBPATH = env['build_dir'])
+
+# Build _quadpack
+env.NumpyPythonExtension('_quadpack', source = '_quadpackmodule.c')
+
+# Build _odepack
+env.NumpyPythonExtension('_odepack', source = '_odepackmodule.c')
+
+# Build vode
+env.NumpyPythonExtension('vode', source = 'vode.pyf')

Copied: branches/scipy.scons/scipy/integrate/setupscons.py (from rev 3557, branches/scipy.scons/scipy/integrate/setup.py)
===================================================================
--- branches/scipy.scons/scipy/integrate/setup.py	2007-11-21 12:32:02 UTC (rev 3557)
+++ branches/scipy.scons/scipy/integrate/setupscons.py	2007-11-21 15:27:57 UTC (rev 3558)
@@ -0,0 +1,62 @@
+#!/usr/bin/env python
+
+from __future__ import nested_scopes
+from os.path import join
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+    from numpy.distutils.system_info import get_info
+    config = Configuration('integrate', parent_package, top_path)
+
+    config.add_sconscript('SConstruct')
+#    blas_opt = get_info('blas_opt',notfound_action=2)
+#
+#    config.add_library('linpack_lite',
+#                       sources=[join('linpack_lite','*.f')])
+#    config.add_library('mach',
+#                       sources=[join('mach','*.f')],
+#                       config_fc={'noopt':(__file__,1)})
+#    config.add_library('quadpack',
+#                       sources=[join('quadpack','*.f')])
+#    config.add_library('odepack',
+#                       sources=[join('odepack','*.f')])
+#    # should we try to weed through files and replace with calls to
+#    # LAPACK routines?
+#    # Yes, someday...
+#
+#
+#
+#    # Extensions
+#    # quadpack:
+#
+#    config.add_extension('_quadpack',
+#                         sources=['_quadpackmodule.c'],
+#                         libraries=['quadpack', 'linpack_lite', 'mach'])
+#    # odepack
+#    libs = ['odepack','linpack_lite','mach']
+#
+#    # Remove libraries key from blas_opt
+#    if 'libraries' in blas_opt:    # key doesn't exist on OS X ...
+#        libs.extend(blas_opt['libraries'])
+#    newblas = {}
+#    for key in blas_opt.keys():
+#        if key == 'libraries':
+#            continue
+#        newblas[key] = blas_opt[key]
+#    config.add_extension('_odepack',
+#                         sources=['_odepackmodule.c'],
+#                         libraries=libs,
+#                         **newblas)
+#
+#    # vode
+#    config.add_extension('vode',
+#                         sources=['vode.pyf'],
+#                         libraries=libs,
+#                         **newblas)
+
+    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