[Scipy-svn] r3991 - in branches/build_with_scons/scipy: . stats stats/models
scipy-svn at scipy.org
scipy-svn at scipy.org
Wed Mar 5 07:48:20 EST 2008
Author: cdavid
Date: 2008-03-05 06:48:09 -0600 (Wed, 05 Mar 2008)
New Revision: 3991
Added:
branches/build_with_scons/scipy/stats/SConstruct
branches/build_with_scons/scipy/stats/models/setupscons.py
branches/build_with_scons/scipy/stats/setupscons.py
Modified:
branches/build_with_scons/scipy/setupscons.py
Log:
stats now builds with numscons.
Modified: branches/build_with_scons/scipy/setupscons.py
===================================================================
--- branches/build_with_scons/scipy/setupscons.py 2008-03-05 12:39:32 UTC (rev 3990)
+++ branches/build_with_scons/scipy/setupscons.py 2008-03-05 12:48:09 UTC (rev 3991)
@@ -16,10 +16,10 @@
config.add_subpackage('optimize')
config.add_subpackage('sandbox')
config.add_subpackage('signal')
- #config.add_subpackage('sparse')
- #config.add_subpackage('special')
- #config.add_subpackage('splinalg')
- #config.add_subpackage('stats')
+ config.add_subpackage('sparse')
+ config.add_subpackage('special')
+ config.add_subpackage('splinalg')
+ config.add_subpackage('stats')
#config.add_subpackage('ndimage')
#config.add_subpackage('stsci')
#config.add_subpackage('weave')
Added: branches/build_with_scons/scipy/stats/SConstruct
===================================================================
--- branches/build_with_scons/scipy/stats/SConstruct 2008-03-05 12:39:32 UTC (rev 3990)
+++ branches/build_with_scons/scipy/stats/SConstruct 2008-03-05 12:48:09 UTC (rev 3991)
@@ -0,0 +1,38 @@
+# Last Change: Wed Mar 05 09:00 PM 2008 J
+# vim:syntax=python
+from os.path import join as pjoin
+
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numscons import GetNumpyEnvironment, CheckF77Clib
+
+env = GetNumpyEnvironment(ARGUMENTS)
+
+env.AppendUnique(CPPPATH = [get_numpy_include_dirs()])
+env.AppendUnique(CPPPATH = env['F2PYINCLUDEDIR'])
+
+config = env.NumpyConfigure(custom_tests = {'CheckF77Clib' : CheckF77Clib})
+if not config.CheckF77Clib():
+ raise RuntimeError("Could not get C/F77 runtime information")
+config.Finish()
+
+# Statlib library
+src = env.NumpyGlob(pjoin('statlib', '*.f' ))
+env.NumpyStaticExtLibrary('statlib', source = src)
+
+env.AppendUnique(LIBPATH = env['build_dir'])
+
+# Statlib extension
+env.NumpyPythonExtension('statlib', source = 'statlib.pyf',
+ F2PYOPTIONS = ["--no-wrap-functions"],
+ LIBS = 'statlib',
+ LINKFLAGSEND = env['F77_LDFLAGS'])
+
+# futil extension
+futil_src = env.F2py(pjoin(env['build_dir'], 'futilmodule.c'),
+ pjoin(env['build_dir'], 'futil.f'))
+env.NumpyPythonExtension('futil', source = futil_src + ['futil.f'],
+ LINKFLAGSEND = env['F77_LDFLAGS'])
+
+# mvn extension
+env.NumpyPythonExtension('mvn', source = ['mvn.pyf', 'mvndst.f'],
+ LINKFLAGSEND = env['F77_LDFLAGS'])
Copied: branches/build_with_scons/scipy/stats/models/setupscons.py (from rev 3979, branches/build_with_scons/scipy/stats/models/setup.py)
Copied: branches/build_with_scons/scipy/stats/setupscons.py (from rev 3979, branches/build_with_scons/scipy/stats/setup.py)
===================================================================
--- branches/build_with_scons/scipy/stats/setup.py 2008-03-05 08:14:54 UTC (rev 3979)
+++ branches/build_with_scons/scipy/stats/setupscons.py 2008-03-05 12:48:09 UTC (rev 3991)
@@ -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('stats', parent_package, top_path)
+
+ config.add_sconscript('SConstruct')
+ config.add_subpackage('models')
+ 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