~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to Lib/linsolve/setup.py

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
from os.path import join
3
 
import sys
4
 
 
5
 
def configuration(parent_package='',top_path=None):
6
 
    from numpy.distutils.misc_util import Configuration
7
 
    from numpy.distutils.system_info import get_info
8
 
 
9
 
    config = Configuration('linsolve',parent_package,top_path)
10
 
    config.add_data_dir('tests')
11
 
 
12
 
    lapack_opt = get_info('lapack_opt',notfound_action=2)
13
 
    if sys.platform=='win32':
14
 
        superlu_defs = [('NO_TIMER',1)]
15
 
    else:
16
 
        superlu_defs = []
17
 
    superlu_defs.append(('USE_VENDOR_BLAS',1))
18
 
 
19
 
    config.add_library('superlu_src',
20
 
                       sources = [join('SuperLU','SRC','*.c')],
21
 
                       macros = superlu_defs
22
 
                       )
23
 
 
24
 
    #SuperLU/SRC/util.h  has been modifed to use these by default
25
 
    #macs = [('USER_ABORT','superlu_python_module_abort'),
26
 
    #        ('USER_MALLOC','superlu_python_module_malloc'),
27
 
    #        ('USER_FREE','superlu_python_module_free')]
28
 
 
29
 
    # Extension
30
 
    config.add_extension('_zsuperlu',
31
 
                         sources = ['_zsuperlumodule.c','_superlu_utils.c',
32
 
                                    '_superluobject.c'],
33
 
                         libraries = ['superlu_src'],
34
 
                         extra_info = lapack_opt
35
 
                         )
36
 
 
37
 
    config.add_extension('_dsuperlu',
38
 
                         sources = ['_dsuperlumodule.c','_superlu_utils.c',
39
 
                                    '_superluobject.c'],
40
 
                         libraries = ['superlu_src'],
41
 
                         extra_info = lapack_opt
42
 
                         )
43
 
 
44
 
    config.add_extension('_csuperlu',
45
 
                         sources = ['_csuperlumodule.c','_superlu_utils.c',
46
 
                                    '_superluobject.c'],
47
 
                         libraries = ['superlu_src'],
48
 
                         extra_info = lapack_opt
49
 
                         )
50
 
 
51
 
    config.add_extension('_ssuperlu',
52
 
                         sources = ['_ssuperlumodule.c','_superlu_utils.c',
53
 
                                    '_superluobject.c'],
54
 
                         libraries = ['superlu_src'],
55
 
                         extra_info = lapack_opt
56
 
                         )
57
 
 
58
 
    config.add_subpackage('umfpack')
59
 
 
60
 
    return config
61
 
 
62
 
if __name__ == '__main__':
63
 
    from numpy.distutils.core import setup
64
 
    setup(**configuration(top_path='').todict())