[Scipy-svn] r3560 - branches/scipy.scons/scipy/io

scipy-svn@scip... scipy-svn@scip...
Wed Nov 21 10:01:59 CST 2007


Author: cdavid
Date: 2007-11-21 10:01:50 -0600 (Wed, 21 Nov 2007)
New Revision: 3560

Added:
   branches/scipy.scons/scipy/io/SConstruct
   branches/scipy.scons/scipy/io/setupscons.py
Log:
io module build with scons

Added: branches/scipy.scons/scipy/io/SConstruct
===================================================================
--- branches/scipy.scons/scipy/io/SConstruct	2007-11-21 15:48:36 UTC (rev 3559)
+++ branches/scipy.scons/scipy/io/SConstruct	2007-11-21 16:01:50 UTC (rev 3560)
@@ -0,0 +1,11 @@
+# Last Change: Thu Oct 18 09:00 PM 2007 J
+# vim:syntax=python
+from os.path import join
+
+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.NumpyPythonExtension('numpyio', source = 'numpyiomodule.c')

Copied: branches/scipy.scons/scipy/io/setupscons.py (from rev 3559, branches/scipy.scons/scipy/io/setup.py)
===================================================================
--- branches/scipy.scons/scipy/io/setup.py	2007-11-21 15:48:36 UTC (rev 3559)
+++ branches/scipy.scons/scipy/io/setupscons.py	2007-11-21 16:01:50 UTC (rev 3560)
@@ -0,0 +1,16 @@
+#!/usr/bin/env python
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+    config = Configuration('io', parent_package, top_path)
+
+    config.add_sconscript('SConstruct')
+
+    config.add_data_dir('tests')
+    config.add_data_dir('examples')
+    config.add_data_dir('docs')
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(**configuration(top_path='').todict())



More information about the Scipy-svn mailing list