-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
executable file
·39 lines (35 loc) · 1.7 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python
import numpy
import sys
from setuptools import setup, Extension
kwargs = {}
kwargs['py_limited_api'] = True
kwargs['include_dirs'] = [numpy.get_include()]
if sys.platform != "win32":
kwargs['extra_compile_args'] = ['-Wno-error=declaration-after-statement']
ext_modules = [Extension("hyperion.util._integrate_core",
['hyperion/util/_integrate_core.c'],
**kwargs),
Extension("hyperion.util._interpolate_core",
['hyperion/util/_interpolate_core.c'],
**kwargs),
Extension("hyperion.importers._discretize_sph",
['hyperion/importers/_discretize_sph.c'],
**kwargs),
Extension("hyperion.grid._voronoi_core",
['hyperion/grid/_voronoi_core.c',
'hyperion/grid/voropp_wrap.cc',
'hyperion/grid/voro++/c_loops.cc',
'hyperion/grid/voro++/cell.cc',
'hyperion/grid/voro++/common.cc',
'hyperion/grid/voro++/container.cc',
'hyperion/grid/voro++/container_prd.cc',
'hyperion/grid/voro++/pre_container.cc',
'hyperion/grid/voro++/unitcell.cc',
'hyperion/grid/voro++/v_base.cc',
'hyperion/grid/voro++/v_compute.cc',
'hyperion/grid/voro++/wall.cc'],
extra_link_args=['-lstdc++'],
**kwargs)]
setup(scripts=['scripts/hyperion', 'scripts/hyperion2fits'],
ext_modules=ext_modules)