-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (39 loc) · 1.31 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
import setuptools
from setuptools.extension import Extension
try:
from Cython.Build import cythonize
use_cython = True
except ImportError:
use_cython = False
if use_cython:
ext_modules = cythonize(['hmm_kit/_hmmc.pyx'])
else:
ext_modules = [Extension("hmm_kit._hmmc",
["hmm_kit/_hmmc.c"],
language='c',
library_dirs=['/usr/local/lib'],
include_dirs=['/usr/local/include']
)]
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='hmm_kit',
ext_modules=ext_modules,
version='0.3.0',
description='Python toolkit for unsupervised learning of sequences of observations using HMM',
long_description=long_description,
long_description_content_type="text/markdown",
author='Eran Rosenthal',
author_email='[email protected]',
url='https://github.com/eranroz/hmm',
license='MIT License',
packages=['hmm_kit'],
install_requires=['matplotlib', 'numpy', 'scipy'],
scripts=['scripts/simple_hmm.py'],
classifiers=[
'License :: OSI Approved :: MIT License',
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research'
]
)