Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 44 lines (38 sloc) 1.581 kb
b3acb3d @cournape Handle inplace generation of __config__.
cournape authored
1 from os.path import join as pjoin
2f73aef @cournape Start branch to build scipy with scons: add top setupscons.py
cournape authored
2
b3acb3d @cournape Handle inplace generation of __config__.
cournape authored
3 def configuration(parent_package='', top_path=None, setup_name='setupscons.py'):
2f73aef @cournape Start branch to build scipy with scons: add top setupscons.py
cournape authored
4 from numpy.distutils.misc_util import Configuration
b3acb3d @cournape Handle inplace generation of __config__.
cournape authored
5 from numpy.distutils.misc_util import scons_generate_config_py
6
7 pkgname = 'scipy'
8 config = Configuration(pkgname, parent_package, top_path,
9 setup_name = 'setupscons.py')
2f73aef @cournape Start branch to build scipy with scons: add top setupscons.py
cournape authored
10 config.add_subpackage('cluster')
9091e8f @cournape Include package constants in numscons build.
cournape authored
11 config.add_subpackage('constants')
2f73aef @cournape Start branch to build scipy with scons: add top setupscons.py
cournape authored
12 config.add_subpackage('fftpack')
2002ebc @cournape integrate now builds with scons.
cournape authored
13 config.add_subpackage('integrate')
8b1a40a @cournape Interpolate now builds with scons.
cournape authored
14 config.add_subpackage('interpolate')
b321227 @cournape io now builds with numscons.
cournape authored
15 config.add_subpackage('io')
c353d8f @cournape lib now builds with numscons.
cournape authored
16 config.add_subpackage('lib')
bb23f62 @cournape linalg now builds with numscons.
cournape authored
17 config.add_subpackage('linalg')
e22002d @cournape Add misc and maxentropy to numscons build.
cournape authored
18 config.add_subpackage('misc')
28f9e84 @cournape optimize now builds with numscons.
cournape authored
19 config.add_subpackage('odr')
20 config.add_subpackage('optimize')
5e8b397 @cournape signal now builds with numscons.
cournape authored
21 config.add_subpackage('signal')
b0f0f02 @cournape stats now builds with numscons.
cournape authored
22 config.add_subpackage('sparse')
6f2abae @cournape Add spatial to numscons build.
cournape authored
23 config.add_subpackage('spatial')
b0f0f02 @cournape stats now builds with numscons.
cournape authored
24 config.add_subpackage('special')
25 config.add_subpackage('stats')
09c08dc @cournape Revert changed in setupscons.py commited by accident.
cournape authored
26 config.add_subpackage('ndimage')
469c076 @cournape All scipy builds with numscons, yeah.
cournape authored
27 config.add_subpackage('weave')
b3acb3d @cournape Handle inplace generation of __config__.
cournape authored
28
29 def add_config(*args, **kw):
30 # Generate __config__, handle inplace issues.
31 if kw['scons_cmd'].inplace:
32 target = pjoin(kw['pkg_name'], '__config__.py')
33 else:
34 target = pjoin(kw['scons_cmd'].build_lib, kw['pkg_name'],
35 '__config__.py')
36 scons_generate_config_py(target)
37 config.add_sconscript(None, post_hook = add_config)
38
2f73aef @cournape Start branch to build scipy with scons: add top setupscons.py
cournape authored
39 return config
40
41 if __name__ == '__main__':
42 from numpy.distutils.core import setup
43 setup(**configuration(top_path='').todict())
Something went wrong with that request. Please try again.