-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (34 loc) · 949 Bytes
/
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 setuptools.command.build_ext import build_ext as _build_ext
from distutils.core import setup
from Cython.Build import cythonize
from setuptools import Extension
class build_ext(_build_ext):
def finalize_options(self):
_build_ext.finalize_options(self)
# Prevent numpy from thinking it is still in its setup process:
__builtins__.__NUMPY_SETUP__ = False
import numpy
self.include_dirs.append(numpy.get_include())
setup(
name='hmm',
version='0.0.1',
cmdclass={'build_ext': build_ext},
packages=['hmm'],
setup_requires=[
"cython >= 0.22.1",
"numpy >= 1.8.0",
"scipy >= 0.17.0"
],
install_requires=[
"numpy >= 1.8.0",
"joblib >= 0.9.0b4",
"scipy >= 0.17.0",
],
ext_modules=cythonize([
Extension("hmm.*", ["hmm/*.pyx"])
]),
package_data={
'hmm': ['*.pxd']
},
include_package_data=True
)