forked from scrapinghub/python-crfsuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·64 lines (56 loc) · 1.91 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
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
import glob
import sys
from setuptools import setup, Extension
sources = ['pycrfsuite/_pycrfsuite.cpp', 'pycrfsuite/trainer_wrapper.cpp']
# crfsuite
sources += glob.glob('crfsuite/lib/crf/src/*.c')
sources += glob.glob('crfsuite/swig/*.cpp')
sources += ['crfsuite/lib/cqdb/src/cqdb.c']
sources += ['crfsuite/lib/cqdb/src/lookup3.c']
# lbfgs
sources += glob.glob('liblbfgs/lib/*.c')
includes = [
'crfsuite/include/',
'crfsuite/lib/cqdb/include',
'liblbfgs/include',
'pycrfsuite',
]
if sys.platform == 'win32':
includes.append('crfsuite/win32')
ext_modules = [Extension('pycrfsuite._pycrfsuite',
include_dirs=includes,
language='c++',
sources=sources
)]
setup(
name='python-crfsuite',
version="0.8.3",
description="Python binding for CRFsuite",
long_description=open('README.rst').read(),
author="Terry Peng, Mikhail Korobov",
url='https://github.com/tpeng/python-crfsuite',
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Cython",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Text Processing :: Linguistic",
],
zip_safe=False,
packages=['pycrfsuite'],
ext_modules=ext_modules
)