forked from microsoft/anomalydetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (31 loc) · 1.02 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
35
36
from setuptools import setup, find_packages, Extension
from Cython.Build import cythonize
from Cython.Distutils import build_ext
import numpy as np
__version__ = "can't find version.py"
exec(compile(open('version.py').read(),
'version.py', 'exec'))
extensions = [
Extension("msanomalydetector._anomaly_kernel_cython", ["msanomalydetector/_anomaly_kernel_cython.pyx"],
define_macros=[('CYTHON_TRACE', '1')])
]
cmdclass = {'build_ext': build_ext}
install_requires = [
'Cython>=0.29.2',
'numpy==1.18.1',
'pandas==0.25.3'
]
setup(
name="msanomalydetector",
description='Microsoft Anomaly Detector Package Based On Saliency Detection',
packages=find_packages(),
include_dirs=[np.get_include()],
cmdclass=cmdclass,
ext_modules=cythonize(extensions),
version=__version__,
setup_requires=['Cython>=0.29.2', 'numpy==1.18.1'],
install_requires=install_requires,
requires=['Cython', 'numpy', 'pandas'],
python_requires='>=3.6.0',
package_data={'': ['*.txt']}
)