[Numpy-svn] r4701 - branches/build_with_scons/numpy/lib

numpy-svn@scip... numpy-svn@scip...
Sun Jan 6 20:47:43 CST 2008


Author: cdavid
Date: 2008-01-06 20:47:36 -0600 (Sun, 06 Jan 2008)
New Revision: 4701

Added:
   branches/build_with_scons/numpy/lib/SConstruct
   branches/build_with_scons/numpy/lib/setupscons.py
Log:
numpy.lib now builds with scons

Added: branches/build_with_scons/numpy/lib/SConstruct
===================================================================
--- branches/build_with_scons/numpy/lib/SConstruct	2008-01-07 02:46:49 UTC (rev 4700)
+++ branches/build_with_scons/numpy/lib/SConstruct	2008-01-07 02:47:36 UTC (rev 4701)
@@ -0,0 +1,12 @@
+# Last Change: Thu Oct 18 09:00 PM 2007 J
+# vim:syntax=python
+import __builtin__
+__builtin__.__NUMPY_SETUP__ = True
+from numpy.distutils.misc_util import get_numpy_include_dirs
+from numscons import GetNumpyEnvironment, scons_get_paths
+
+env = GetNumpyEnvironment(ARGUMENTS)
+env.Append(CPPPATH = scons_get_paths(env['include_bootstrap']))
+
+_compiled_base = env.NumpyPythonExtension('_compiled_base', 
+                                        source = ['src/_compiled_base.c'])

Added: branches/build_with_scons/numpy/lib/setupscons.py
===================================================================
--- branches/build_with_scons/numpy/lib/setupscons.py	2008-01-07 02:46:49 UTC (rev 4700)
+++ branches/build_with_scons/numpy/lib/setupscons.py	2008-01-07 02:47:36 UTC (rev 4701)
@@ -0,0 +1,16 @@
+from os.path import join
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+
+    config = Configuration('lib',parent_package,top_path)
+
+    config.add_sconscript('SConstruct', 
+                          source_files = [join('src', '_compiled_base.c')])
+    config.add_data_dir('tests')
+
+    return config
+
+if __name__=='__main__':
+    from numpy.distutils.core import setup
+    setup(configuration=configuration)



More information about the Numpy-svn mailing list