forked from OpenNHM/AvaFrame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (39 loc) · 949 Bytes
/
setup.py
File metadata and controls
46 lines (39 loc) · 949 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
35
36
37
38
39
40
41
42
43
44
45
46
from setuptools import setup, Extension
import numpy
from Cython.Build import cythonize
# Define extension modules conditionally
# ext_modules = []
# List all potential Cython file locations
cython_files = [
'avaframe/com1DFA/DFAfunctionsCython.pyx',
'avaframe/com1DFA/DFAToolsCython.pyx',
'avaframe/com1DFA/damCom1DFA.pyx',
]
extensions = [
Extension(
name=file.replace('/', '.').replace('.pyx', ''),
sources=[file],
include_dirs=[numpy.get_include()]
)
for file in cython_files
]
ext_modules = cythonize(
extensions,
compiler_directives={
'language_level': '3',
'linetrace': True,
}
)
setup_options = {"build_ext": {"inplace": True}}
setup(
options=setup_options,
ext_modules=ext_modules,
# install_requires=[
# 'numpy',
# 'scipy',
# 'cython',
# 'matplotlib',
# 'pandas'
# ],
# python_requires='>=3.8',
)