~ubuntu-branches/ubuntu/oneiric/python-scipy/oneiric-proposed

« back to all changes in this revision

Viewing changes to Lib/sandbox/arpack/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
 
 
3
 
import os
4
 
 
5
 
def configuration(parent_package='',top_path=None):
6
 
    from numpy.distutils.system_info import get_info, NotFoundError
7
 
    from numpy.distutils.misc_util import Configuration
8
 
    
9
 
    lapack_opt = get_info('lapack_opt')
10
 
 
11
 
    if not lapack_opt:
12
 
        raise NotFoundError,'no lapack/blas resources found'
13
 
 
14
 
    config = Configuration('arpack', parent_package, top_path)
15
 
 
16
 
    arpack_sources=[os.path.join('ARPACK','SRC', '*.f')]
17
 
    arpack_sources.extend([os.path.join('ARPACK','UTIL', '*.f')])
18
 
#    arpack_sources.extend([os.path.join('ARPACK','BLAS', '*.f')])
19
 
    arpack_sources.extend([os.path.join('ARPACK','LAPACK', '*.f')])
20
 
 
21
 
    config.add_library('arpack', sources=arpack_sources)
22
 
 
23
 
 
24
 
    config.add_extension('_arpack',
25
 
                         sources='arpack.pyf.src',
26
 
                         libraries=['arpack'],
27
 
                         extra_info = lapack_opt
28
 
                        )
29
 
 
30
 
    config.add_data_dir('tests')
31
 
    return config
32
 
 
33
 
if __name__ == '__main__':
34
 
    from numpy.distutils.core import setup
35
 
    setup(**configuration(top_path='').todict())