-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (31 loc) · 910 Bytes
/
setup.py
File metadata and controls
34 lines (31 loc) · 910 Bytes
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup for Cython extensions
"""
import numpy as np
from setuptools import Extension, setup
extensions = [
Extension(
"matchmaker.utils.distances",
["matchmaker/utils/distances.pyx"],
include_dirs=[np.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
language="c",
),
Extension(
"matchmaker.dp.dtw_loop",
["matchmaker/dp/dtw_loop.pyx"],
include_dirs=[np.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
language="c",
),
Extension(
"matchmaker.prob.viterbi_step",
["matchmaker/prob/viterbi_step.pyx"],
include_dirs=[np.get_include()],
define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")],
language="c",
),
]
setup(ext_modules=extensions)