~ubuntu-branches/ubuntu/karmic/python-scipy/karmic

« back to all changes in this revision

Viewing changes to Lib/linalg/setup_atlas_version.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
 
## Automatically adapted for scipy Oct 18, 2005 by
2
 
 
3
 
#!/usr/bin/env python
4
 
 
5
 
import os
6
 
from distutils.core import Extension
7
 
from numpy.distutils.misc_util import get_path, default_config_dict
8
 
from numpy.distutils.system_info import get_info,AtlasNotFoundError
9
 
 
10
 
def configuration (parent_package=''):
11
 
    package = 'linalg'
12
 
    config = default_config_dict(package,parent_package)
13
 
    del config['fortran_libraries']
14
 
    local_path = get_path(__name__)
15
 
    atlas_info = get_info('atlas_threads')
16
 
    if not atlas_info:
17
 
        atlas_info = get_info('atlas')
18
 
    if not atlas_info:
19
 
        raise AtlasNotFoundError,AtlasNotFoundError.__doc__
20
 
    ext = Extension('atlas_version',
21
 
                    sources=[os.path.join(local_path,'atlas_version.c')],
22
 
                    libraries=[atlas_info['libraries'][-1]],
23
 
                    library_dirs=atlas_info['library_dirs'])
24
 
    config['ext_modules'].append(ext)
25
 
    return config
26
 
 
27
 
if __name__ == '__main__':
28
 
    from distutils.core import setup
29
 
    setup(**configuration())