-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
44 lines (33 loc) · 1001 Bytes
/
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 os
import numpy as np
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
NAME = 'fird'
AUTHOR = 'Han Zhang'
AUTHOR_EMAIL = 'zh950713@gmail.com'
GITHUB = 'https://www.github.com/fingertap/fird.cython'
VERSION = '0.0.1'
DESCRIPTION = ('FIRD: Fraud Detection by Simultaneous '
'Feature Selection and Clustering')
def long_desc():
return open(os.path.join(os.path.dirname(__file__), 'README.md')).read()
ext_modules = [
Extension("fird.fird",
sources=["fird/fird.pyx"],
libraries=["m"] # Unix-like specific
)
]
setup(
name=NAME,
version=VERSION,
ext_modules=cythonize(ext_modules),
packages=find_packages(exclude=('test')),
description=DESCRIPTION,
long_description=long_desc(),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=GITHUB,
license='MIT',
include_dirs=[np.get_include()],
install_requires=['Cython', 'numpy', 'matplotlib']
)