Last change
on this file since 9516 was
9514,
checked in by steve, 10 years ago
|
Adding in setup.py files for each anuga sub module
|
File size:
698 bytes
|
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('geometry', parent_package, top_path) |
---|
14 | |
---|
15 | config.add_data_dir('test') |
---|
16 | |
---|
17 | util_dir = os.path.abspath('../utilities') |
---|
18 | |
---|
19 | config.add_extension('polygon_ext', |
---|
20 | sources=['polygon_ext.c'], |
---|
21 | include_dirs=[util_dir]) |
---|
22 | |
---|
23 | return config |
---|
24 | |
---|
25 | if __name__ == '__main__': |
---|
26 | from numpy.distutils.core import setup |
---|
27 | setup(configuration=configuration) |
---|
Note: See
TracBrowser
for help on using the repository browser.