[Scipy-svn] r3872 - in branches/build_with_scons/scipy: . cluster

scipy-svn@scip... scipy-svn@scip...
Sun Jan 27 01:56:31 CST 2008


Author: cdavid
Date: 2008-01-27 01:56:20 -0600 (Sun, 27 Jan 2008)
New Revision: 3872

Added:
   branches/build_with_scons/scipy/cluster/SConstruct
   branches/build_with_scons/scipy/cluster/setupscons.py
Modified:
   branches/build_with_scons/scipy/setupscons.py
Log:
scipy.cluster build with numscons

Added: branches/build_with_scons/scipy/cluster/SConstruct
===================================================================
--- branches/build_with_scons/scipy/cluster/SConstruct	2008-01-27 07:46:17 UTC (rev 3871)
+++ branches/build_with_scons/scipy/cluster/SConstruct	2008-01-27 07:56:20 UTC (rev 3872)
@@ -0,0 +1,12 @@
+# 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('_vq', source = [join('src', 'vq_module.c'),
+                                          join('src', 'vq.c')])

Added: branches/build_with_scons/scipy/cluster/setupscons.py
===================================================================
--- branches/build_with_scons/scipy/cluster/setupscons.py	2008-01-27 07:46:17 UTC (rev 3871)
+++ branches/build_with_scons/scipy/cluster/setupscons.py	2008-01-27 07:56:20 UTC (rev 3872)
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+
+from os.path import join
+
+def configuration(parent_package = '', top_path = None):
+    from numpy.distutils.misc_util import Configuration, get_numpy_include_dirs
+    config = Configuration('cluster', parent_package, top_path)
+
+    config.add_data_dir('tests')
+
+    #config.add_extension('_vq',
+    #    sources=[join('src', 'vq_module.c'), join('src', 'vq.c')],
+    #    include_dirs = [get_numpy_include_dirs()])
+    config.add_sconscript('SConstruct')
+
+    return config
+
+if __name__ == '__main__':
+    from numpy.distutils.core import setup
+    setup(maintainer = "SciPy Developers",
+          author = "Eric Jones",
+          maintainer_email = "scipy-dev@scipy.org",
+          description = "Clustering Algorithms (Information Theory)",
+          url = "http://www.scipy.org",
+          license = "SciPy License (BSD Style)",
+          **configuration(top_path='').todict()
+          )


Property changes on: branches/build_with_scons/scipy/cluster/setupscons.py
___________________________________________________________________
Name: svn:executable
   + *

Modified: branches/build_with_scons/scipy/setupscons.py
===================================================================
--- branches/build_with_scons/scipy/setupscons.py	2008-01-27 07:46:17 UTC (rev 3871)
+++ branches/build_with_scons/scipy/setupscons.py	2008-01-27 07:56:20 UTC (rev 3872)
@@ -4,24 +4,26 @@
     config = Configuration('scipy',parent_package,top_path, setup_name = 'setupscons.py')
     config.add_subpackage('cluster')
     config.add_subpackage('fftpack')
-    config.add_subpackage('integrate')
-    config.add_subpackage('interpolate')
-    config.add_subpackage('io')
-    config.add_subpackage('lib')
-    config.add_subpackage('linalg')
-    config.add_subpackage('linsolve')
-    config.add_subpackage('maxentropy')
-    config.add_subpackage('misc')
-    config.add_subpackage('odr')
-    config.add_subpackage('optimize')
+    #config.add_subpackage('integrate')
+    #config.add_subpackage('interpolate')
+    #config.add_subpackage('io')
+    #config.add_subpackage('lib')
+    #config.add_subpackage('linalg')
+    #config.add_subpackage('linsolve')
+    #config.add_subpackage('maxentropy')
+    #config.add_subpackage('misc')
+    #config.add_subpackage('odr')
+    #config.add_subpackage('optimize')
     #config.add_subpackage('sandbox')
-    config.add_subpackage('signal')
-    config.add_subpackage('sparse')
-    config.add_subpackage('special')
-    config.add_subpackage('stats')
-    config.add_subpackage('ndimage')
+    #config.add_subpackage('signal')
+    #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')
+    #config.add_subpackage('weave')
+    #config.add_subpackage('testing')
     config.make_svn_version_py()  # installs __svn_version__.py
     config.scons_make_config_py() # installs __config__.py
     return config



More information about the Scipy-svn mailing list