-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·54 lines (49 loc) · 1.3 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
#!/usr/bin/env python
import os
from setuptools import setup, Extension
import sys
import numpy
from Cython.Build import cythonize
include_dirs = [numpy.get_include()]
extensions = cythonize([
Extension(
"mlearn.criteria.sparse_criteria",
sources=["mlearn/criteria/sparse_criteria.pyx"],
include_dirs=include_dirs,
),
Extension(
"mlearn.criteria.reweight",
sources=["mlearn/criteria/reweight.pyx"],
include_dirs=include_dirs,
),
Extension(
"mlearn.criteria.sparse_reweight",
sources=["mlearn/criteria/sparse_reweight.pyx"],
include_dirs=include_dirs,
),
])
with open('./requirements.txt') as f:
requirements = f.read().splitlines()
install_requires = requirements
setup(
name = 'multilabel-learn',
version='0.0.1a0',
description="",
author='Y.-Y. Yang',
url='https://github.com/yangarbiter/multilabel-learn',
install_requires=install_requires,
test_suite='mlearn',
packages=[
'mlearn',
'mlearn.criteria',
'mlearn.models',
'mlearn.utils',
],
package_dir={
'mlearn': 'mlearn',
'mlearn.criteria': 'mlearn/criteria',
'mlearn.models': 'mlearn/models',
'mlearn.utils': 'mlearn/utils',
},
ext_modules = extensions,
)