forked from deepcharles/ruptures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
28 lines (24 loc) · 802 Bytes
/
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
from setuptools import Extension, setup
ext_modules = [
Extension(
"ruptures.detection._detection.ekcpd",
sources=[
"src/ruptures/detection/_detection/ekcpd.pyx",
"src/ruptures/detection/_detection/ekcpd_computation.c",
"src/ruptures/detection/_detection/ekcpd_pelt_computation.c",
"src/ruptures/detection/_detection/kernels.c",
],
),
Extension(
"ruptures.utils._utils.convert_path_matrix",
sources=[
"src/ruptures/utils/_utils/convert_path_matrix.pyx",
"src/ruptures/utils/_utils/convert_path_matrix_c.c",
],
),
]
if __name__ == "__main__":
from Cython.Build import cythonize
setup(
ext_modules=cythonize(ext_modules, language_level="3"),
)