Last change
on this file since 9569 was
9569,
checked in by steve, 10 years ago
|
changed test to tests in setup.py files
|
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 | from numpy.distutils.misc_util import Configuration |
---|
10 | from numpy.distutils.system_info import get_info |
---|
11 | config = Configuration('utilities', parent_package, top_path) |
---|
12 | |
---|
13 | config.add_data_dir('tests') |
---|
14 | config.add_data_dir(join('tests','data')) |
---|
15 | |
---|
16 | config.add_extension('sparse_ext', |
---|
17 | sources='sparse_ext.c') |
---|
18 | |
---|
19 | config.add_extension('sparse_matrix_ext', |
---|
20 | sources=['sparse_matrix_ext.c', 'sparse_dok.c']) |
---|
21 | |
---|
22 | |
---|
23 | config.add_extension('util_ext', |
---|
24 | sources='util_ext.c') |
---|
25 | |
---|
26 | config.add_extension('cg_ext', |
---|
27 | sources='cg_ext.c', |
---|
28 | extra_compile_args=['-fopenmp'], |
---|
29 | extra_link_args=['-fopenmp']) |
---|
30 | |
---|
31 | config.add_extension('quad_tree_ext', |
---|
32 | sources=['quad_tree_ext.c', 'quad_tree.c']) |
---|
33 | |
---|
34 | |
---|
35 | return config |
---|
36 | |
---|
37 | if __name__ == '__main__': |
---|
38 | from numpy.distutils.core import setup |
---|
39 | setup(configuration=configuration) |
---|
Note: See
TracBrowser
for help on using the repository browser.