forked from jeongyoonlee/Kaggler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (61 loc) · 2.57 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
from setuptools import setup, Extension
from Cython.Distutils import build_ext
import numpy as np
try:
from pypandoc import convert
read_md = lambda f: convert(f, 'rst')
except ImportError:
print("warning: pypandoc module not found, could not convert Markdown to RST")
read_md = lambda f: open(f, 'r').read()
setup(
name='Kaggler',
version='0.3.7',
author='Jeong-Yoon Lee',
author_email='[email protected]',
packages=['kaggler',
'kaggler.model',
'kaggler.online_model',
'kaggler.test'],
url='https://github.com/jeongyoonlee/Kaggler',
license='LICENSE.txt',
description='Code for Kaggle Data Science Competitions.',
long_description=read_md('README.md'),
install_requires=[
'cython',
'numpy',
'scipy >= 0.14.0',
'scikit-learn >= 0.15.0',
'statsmodels >= 0.5.0',
],
cmdclass={'build_ext': build_ext},
ext_modules=[Extension('kaggler.online_model.ftrl',
['kaggler/online_model/ftrl.pyx'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3']),
Extension('kaggler.online_model.sgd',
['kaggler/online_model/sgd.pyx'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3']),
Extension('kaggler.online_model.fm',
['kaggler/online_model/fm.pyx'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3']),
Extension('kaggler.online_model.nn',
['kaggler/online_model/nn.pyx'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3']),
Extension('kaggler.online_model.nn_h2',
['kaggler/online_model/nn_h2.pyx'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3']),
Extension('kaggler.util',
['kaggler/util.pyx', 'kaggler/util.pxd'],
libraries=[],
include_dirs=[np.get_include(), '.'],
extra_compile_args=['-O3'])],
)