-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
54 lines (51 loc) · 1.41 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from setuptools import Extension, setup
import numpy
np_defines = [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")]
np_includes = [numpy.get_include()]
extension_modules = [
Extension(
"chmpy.interpolate._density",
sources=["src/chmpy/interpolate/_density.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.shape._invariants",
sources=["src/chmpy/shape/_invariants.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.shape._sht",
sources=["src/chmpy/shape/_sht.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.crystal.sfac._sfac",
sources=["src/chmpy/crystal/sfac/_sfac.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.mc._mc_lewiner",
sources=["src/chmpy/mc/_mc_lewiner.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.sampling._lds",
sources=["src/chmpy/sampling/_lds.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
Extension(
"chmpy.sampling._sobol",
sources=["src/chmpy/sampling/_sobol.pyx"],
define_macros=np_defines,
include_dirs=np_includes,
),
]
setup(
ext_modules=extension_modules,
)