-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (34 loc) · 1.45 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
from distutils import core
from distutils.extension import Extension
import numpy
from Cython.Build import cythonize
ext_modules = [Extension("solvers.svd_neighbour.svd_neighbour_predict",
["solvers/svd_neighbour/svd_neighbour_predict.pyx"],
include_dirs=[numpy.get_include()],
),
Extension("util.user_cor",
["util/user_cor.pyx"],
include_dirs=[numpy.get_include()],
language="c++",
),
Extension("util.mle_cov",
["util/mle_cov.pyx"],
include_dirs=[numpy.get_include()],
),
Extension("util.incomplete_projection",
["util/incomplete_projection.pyx"],
include_dirs=[numpy.get_include()],
),
Extension("solvers.svd.svd_train_feature",
["solvers/svd/svd_train_feature.pyx"],
include_dirs=[numpy.get_include()],
),
Extension("solvers.svd.svd_train_stochastic",
["solvers/svd/svd_train_stochastic.pyx"],
include_dirs=[numpy.get_include()],
),
]
core.setup(
name='Netflix Prize',
ext_modules=cythonize(ext_modules),
)