-
Notifications
You must be signed in to change notification settings - Fork 167
/
setup.py
62 lines (59 loc) · 1.97 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
55
56
57
58
59
60
61
62
import numpy
from setuptools import setup, Extension
# Setup C module include directories
include_dirs = [numpy.get_include()]
# Setup C module macros
define_macros = [("NUMPY", "1")]
setup(
# importing these extension modules is tested in `.github/workflows/build.yml`;
# when adding new modules here, make sure to add them to the `test_command` entry there
ext_modules=[
Extension(
"jwst.lib.winclip",
["jwst/lib/src/winclip.c"],
include_dirs=include_dirs,
define_macros=define_macros,
),
Extension(
"jwst.cube_build.cube_match_internal",
[
"jwst/cube_build/src/cube_match_internal.c",
"jwst/cube_build/src/cube_utils.c",
],
include_dirs=include_dirs,
define_macros=define_macros,
),
Extension(
"jwst.cube_build.cube_match_sky_pointcloud",
[
"jwst/cube_build/src/cube_match_sky_pointcloud.c",
"jwst/cube_build/src/cube_utils.c",
"jwst/cube_build/src/cube_dq_utils.c",
],
include_dirs=include_dirs,
define_macros=define_macros,
),
Extension(
"jwst.cube_build.cube_match_sky_driz",
[
"jwst/cube_build/src/cube_match_sky_driz.c",
"jwst/cube_build/src/cube_utils.c",
"jwst/cube_build/src/cube_dq_utils.c",
],
include_dirs=include_dirs,
define_macros=define_macros,
),
Extension(
"jwst.cube_build.blot_median",
["jwst/cube_build/src/blot_median.c"],
include_dirs=include_dirs,
define_macros=define_macros,
),
Extension(
"jwst.straylight.calc_xart",
["jwst/straylight/src/calc_xart.c"],
include_dirs=include_dirs,
define_macros=define_macros,
),
],
)