Last change
on this file since 9558 was
9558,
checked in by steve, 10 years ago
|
Moving our setup to be similar to numpy and scipy and cleaning out the anuga directory
|
File size:
1.1 KB
|
Line | |
---|
1 | from __future__ import division, print_function |
---|
2 | |
---|
3 | import os |
---|
4 | import sys |
---|
5 | |
---|
6 | from os.path import join |
---|
7 | |
---|
8 | def configuration(parent_package='',top_path=None): |
---|
9 | |
---|
10 | from numpy.distutils.misc_util import Configuration |
---|
11 | from numpy.distutils.system_info import get_info |
---|
12 | |
---|
13 | config = Configuration('shallow_water', parent_package, top_path) |
---|
14 | |
---|
15 | config.add_data_dir('test') |
---|
16 | config.add_data_dir(join('test','data')) |
---|
17 | |
---|
18 | util_dir = os.path.abspath(join(os.path.dirname(__file__),'..','utilities')) |
---|
19 | |
---|
20 | config.add_extension('shallow_water_ext', |
---|
21 | sources=['shallow_water_ext.c'], |
---|
22 | include_dirs=[util_dir]) |
---|
23 | |
---|
24 | config.add_extension('swb2_domain_ext', |
---|
25 | sources=['swb2_domain_ext.c'], |
---|
26 | include_dirs=[util_dir]) |
---|
27 | |
---|
28 | config.add_extension('swDE1_domain_ext', |
---|
29 | sources=['swDE1_domain_ext.c'], |
---|
30 | include_dirs=[util_dir]) |
---|
31 | |
---|
32 | |
---|
33 | return config |
---|
34 | |
---|
35 | if __name__ == '__main__': |
---|
36 | from numpy.distutils.core import setup |
---|
37 | setup(configuration=configuration) |
---|
Note: See
TracBrowser
for help on using the repository browser.