-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.py
More file actions
23 lines (19 loc) · 749 Bytes
/
setup.py
File metadata and controls
23 lines (19 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from setuptools import setup, Extension
import numpy as np
from Cython.Build import cythonize
# run the command python setup.py build_ext --inplace
cy_ext_options = {"compiler_directives": {"profile": True}, "annotate": True}
cy_ext = [
Extension("processors.cython_hacks",
["processors/cython_hacks.pyx"],
include_dirs=[np.get_include()], library_dirs=[], libraries=["m"]
),
Extension("signal_tools.cython_hacks",
["signal_tools/cython_hacks.pyx"],
include_dirs=[np.get_include()], library_dirs=[], libraries=["m"]
)
]
setup(
name='PyHEADTAIL_feedback',
ext_modules=cythonize(cy_ext, **cy_ext_options),
)