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

« back to all changes in this revision

Viewing changes to scipy/sandbox/multigrid/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
from os.path import join
 
4
import sys
 
5
 
 
6
def configuration(parent_package='',top_path=None):
 
7
    import numpy
 
8
    from numpy.distutils.misc_util import Configuration
 
9
 
 
10
    config = Configuration('multigrid',parent_package,top_path)
 
11
 
 
12
    config.add_data_dir('tests')
 
13
 
 
14
    # Adding a Python file as a "source" file for an extension is something of
 
15
    # a hack, but it works to put it in the right place.
 
16
    sources = [join('multigridtools', x) for x in ['multigridtools.py', 'multigridtools_wrap.cxx']]
 
17
    config.add_extension('_multigridtools',
 
18
                         sources=sources,
 
19
                         include_dirs=['multigridtools'])
 
20
    return config
 
21
 
 
22
if __name__ == '__main__':
 
23
    from numpy.distutils.core import setup
 
24
    setup(**configuration(top_path='').todict())