-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
33 lines (31 loc) · 1.1 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
import numpy
from setuptools import Extension, find_packages, setup
_HEADERS = "src/downsample"
setup(
ext_modules=[
Extension(
"downsample._ltd",
["src/downsample/_ltd.c", "src/downsample/utils.c"],
define_macros=[
("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
include_dirs=[numpy.get_include(), _HEADERS]),
Extension(
"downsample._ltob",
["src/downsample/_ltob.c", "src/downsample/utils.c"],
define_macros=[
("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
include_dirs=[numpy.get_include(), _HEADERS]),
Extension(
"downsample._lttb",
["src/downsample/_lttb.c", "src/downsample/utils.c"],
define_macros=[
("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
include_dirs=[numpy.get_include(), _HEADERS])
],
package_dir={"": "src"},
package_data={
"downsample": ["src/downsample/*.pyi",
"src/downsample/py.typed"],
},
packages=find_packages("src"),
)