[Scipy-svn] r3537 - branches/scipy.scons/scipy/cluster

scipy-svn@scip... scipy-svn@scip...
Tue Nov 13 09:43:05 CST 2007


Author: cdavid
Date: 2007-11-13 09:42:58 -0600 (Tue, 13 Nov 2007)
New Revision: 3537

Added:
   branches/scipy.scons/scipy/cluster/SConstruct
   branches/scipy.scons/scipy/cluster/setupscons.py
Log:
cluster now builds with scons

Added: branches/scipy.scons/scipy/cluster/SConstruct
===================================================================
--- branches/scipy.scons/scipy/cluster/SConstruct	2007-11-13 15:34:47 UTC (rev 3536)
+++ branches/scipy.scons/scipy/cluster/SConstruct	2007-11-13 15:42:58 UTC (rev 3537)
@@ -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/scipy.scons/scipy/cluster/setupscons.py
===================================================================
--- branches/scipy.scons/scipy/cluster/setupscons.py	2007-11-13 15:34:47 UTC (rev 3536)
+++ branches/scipy.scons/scipy/cluster/setupscons.py	2007-11-13 15:42:58 UTC (rev 3537)
@@ -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/scipy.scons/scipy/cluster/setupscons.py
___________________________________________________________________
Name: svn:executable
   + *



More information about the Scipy-svn mailing list