-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathsetup.py
34 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
34
from setuptools import setup
from setuptools import find_packages
from Cython.Build import cythonize
import numpy as np
# from distutils.core import setup
setup(
name="SpectralEntropy",
version="1.0",
packages=find_packages(exclude=['*tests*']),
python_requires='>=3.7',
url="https://github.com/YuanyueLi/SpectralEntropy",
license="Apache Software License 2.0",
install_requires=[
"numpy>=1.17.4",
"scipy>=1.3.2",
"cython>=0.29.13",
"pytest",
"pytest-cov"
],
ext_modules=cythonize("spectral_entropy/tools_fast.pyx",
annotate=True,
compiler_directives={
'language_level': "3",
'cdivision': True,
'boundscheck': False, # turn off bounds-checking for entire function
'wraparound': False # turn off negative index wrapping for entire function
}),
test_suite="tests",
include_dirs=[np.get_include()]
)
# python setup.py build_ext --inplace