[Numpy-svn] r4700 - branches/build_with_scons/numpy/numarray

numpy-svn@scip... numpy-svn@scip...
Sun Jan 6 20:46:57 CST 2008


Author: cdavid
Date: 2008-01-06 20:46:49 -0600 (Sun, 06 Jan 2008)
New Revision: 4700

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

Added: branches/build_with_scons/numpy/numarray/SConstruct
===================================================================
--- branches/build_with_scons/numpy/numarray/SConstruct	2008-01-07 02:44:56 UTC (rev 4699)
+++ branches/build_with_scons/numpy/numarray/SConstruct	2008-01-07 02:46:49 UTC (rev 4700)
@@ -0,0 +1,12 @@
+# Last Change: Fri Oct 19 09:00 AM 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']))
+env.Append(CPPPATH = env['src_dir'])
+
+_capi = env.NumpyPythonExtension('_capi', source = ['_capi.c'])

Added: branches/build_with_scons/numpy/numarray/setupscons.py
===================================================================
--- branches/build_with_scons/numpy/numarray/setupscons.py	2008-01-07 02:44:56 UTC (rev 4699)
+++ branches/build_with_scons/numpy/numarray/setupscons.py	2008-01-07 02:46:49 UTC (rev 4700)
@@ -0,0 +1,14 @@
+from os.path import join
+
+def configuration(parent_package='',top_path=None):
+    from numpy.distutils.misc_util import Configuration
+    config = Configuration('numarray',parent_package,top_path)
+
+    config.add_data_files('numpy/')
+    config.add_sconscript('SConstruct', source_files = ['_capi.c'])
+
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(configuration=configuration)



More information about the Numpy-svn mailing list