-
Notifications
You must be signed in to change notification settings - Fork 118
/
setup.py
54 lines (46 loc) · 1.7 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy as np
try:
from numpy.distutils.misc_util import get_info
except ImportError:
def get_info(name):
return {}
ext_modules = [ Extension("skbayes.decomposition_models.gibbs_lda_cython",
["skbayes/decomposition_models/gibbs_lda_cython.c"],
#include_dirs = [np.get_include()],
extra_compile_args=["-O3"],
**get_info("npymath")),
Extension("skbayes.hidden_markov_models.hmm",
['skbayes/hidden_markov_models/hmm.c'],
extra_compile_args=["-O3"],
**get_info("npymath"))
]
import skbayes
if __name__=='__main__':
setup(
name = 'skbayes',
version = '0.1.0a1',
description = "bayesian machine learning algorithms with scikit-learn api",
url = 'https://github.com/AmazaspShumik/sklearn-bayes',
author = 'Amazasp Shaumyan',
author_email = '[email protected]',
license = 'MIT',
packages=find_packages(exclude=['tests*']),
install_requires=[
'numpy>=1.9.2',
'scipy>=0.15.1',
'scikit-learn>=0.17',
'cython>=0.24'],
test_suite='tests',
tests_require=[
'coverage>=3.7.1',
'nose==1.3.7'],
classifiers=[
'Development Status :: 3 - Alpha',
'Operating System :: Mac OS X',
'Programming Language :: Python :: 2.7'],
ext_modules = ext_modules
)