Permalink
Browse files

scipy.cluster build with numscons

  • Loading branch information...
1 parent 2f73aef commit 2630ecf95c021dae634c350958235ddc3913b28a @cournape cournape committed Jan 27, 2008
Showing with 57 additions and 16 deletions.
  1. +12 −0 scipy/cluster/SConstruct
  2. +27 −0 scipy/cluster/setupscons.py
  3. +18 −16 scipy/setupscons.py
View
@@ -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')])
@@ -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()
+ )
View
@@ -4,24 +4,26 @@ def configuration(parent_package='',top_path=None, setup_name = 'setupscons.py')
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

0 comments on commit 2630ecf

Please sign in to comment.