/
setup.py
42 lines (38 loc) · 1.06 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
from distutils.core import setup
from distutils.extension import Extension
import numpy as np
try:
from Cython.Distutils import build_ext
except ImportError:
use_cython = False
else:
use_cython = True
cmdclass = { }
if use_cython:
ext_modules = [
Extension("yahmm.yahmm", [ "yahmm/yahmm.pyx" ], include_dirs=[np.get_include()]),
]
cmdclass.update({ 'build_ext': build_ext })
else:
ext_modules = [
Extension("yahmm.yahmm", [ "yahmm/yahmm.c" ], include_dirs=[np.get_include()]),
]
setup(
name='yahmm',
version='1.1.3',
author='Adam Novak, Jacob Schreiber',
author_email='anovak1@ucsc.edu, jmschreiber91@gmail.com',
packages=['yahmm'],
url='http://pypi.python.org/pypi/yahmm/',
license='LICENSE.txt',
description='YAHMM is a HMM package for Python, implemented in Cython for speed.',
cmdclass=cmdclass,
ext_modules=ext_modules,
install_requires=[
"cython >= 0.20.1",
"numpy >= 1.8.0",
"scipy >= 0.13.3",
"networkx >= 1.8.1",
"matplotlib >= 1.3.1"
],
)