-
Notifications
You must be signed in to change notification settings - Fork 121
/
setup.py
44 lines (40 loc) · 1.27 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
37
38
39
40
41
42
43
44
import sys
import os
import numpy
from Cython.Distutils import build_ext
try:
from setuptools import setup, find_packages
from setuptools.extension import Extension
except ImportError:
from distutils.core import setup
from distutils.extension import Extension
prjdir = os.path.dirname(__file__)
def read(filename):
return open(os.path.join(prjdir, filename)).read()
extra_link_args = []
libraries = []
library_dirs = []
include_dirs = []
exec(open('version.py').read())
setup(
name='eif',
version=__version__,
author='Matias Carrasco Kind , Sahand Hariri, Seng Keat Yeoh',
author_email='mcarras2@illinois.edu',
cmdclass={'build_ext': build_ext},
ext_modules=[Extension("eif",
sources=["_eif.pyx", "eif.cxx"],
include_dirs=[numpy.get_include()],
extra_compile_args=['-std=c++11', '-Wcpp'],
language="c++")],
scripts=[],
py_modules=['eif_old', 'version'],
packages=[],
license='License.txt',
include_package_data=True,
description='Extended Isolation Forest for anomaly detection',
long_description=read('README.md'),
long_description_content_type='text/markdown',
url='https://github.com/sahandha/eif',
install_requires=["numpy", "cython"],
)