-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
46 lines (37 loc) · 1.48 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
from setuptools import setup, Extension
from codecs import open
from os import path
# from Michael Hoffman's http://www.ebi.ac.uk/~hoffman/software/sunflower/
class NumpyExtension(Extension):
def __init__(self, *args, **kwargs):
from numpy import get_include
from numpy.distutils.misc_util import get_info
kwargs.update(get_info('npymath'))
kwargs['include_dirs'] += [get_include()]
Extension.__init__(self, *args, **kwargs)
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='pyhacrf',
version='0.1.2',
packages=['pyhacrf'],
install_requires=['numpy>=1.9', 'PyLBFGS>=0.1.3'],
ext_modules=[NumpyExtension('pyhacrf.algorithms',
['pyhacrf/algorithms.c'])],
url='https://github.com/dirko/pyhacrf',
download_url='https://github.com/dirko/pyhacrf/tarball/0.1.2',
license='BSD',
author='Dirko Coetsee',
author_email='[email protected]',
description='Hidden alignment conditional random field, a discriminative string edit distance',
long_description=long_description,
classifiers=[
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Scientific/Engineering',
],
)