-
Notifications
You must be signed in to change notification settings - Fork 75
/
setup.py
executable file
·80 lines (74 loc) · 3.46 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# -*- coding: utf-8 -*-
from distutils.core import setup, Extension
import platform
LONGDOC = 'Use C and Swig to Speed up jieba<Chinese Words Segementation Utilities>'
jieba_fast_functions_py2 = Extension('_jieba_fast_functions_py2',
sources=['jieba_fast/source/jieba_fast_functions_wrap_py2_wrap.c'],
)
jieba_fast_functions_py3 = Extension('_jieba_fast_functions_py3',
sources=['jieba_fast/source/jieba_fast_functions_wrap_py3_wrap.c'],
)
if platform.python_version().startswith('2'):
setup(name='jieba_fast',
version='0.53',
description='Use C and Swig to Speed up jieba<Chinese Words Segementation Utilities>',
long_description=LONGDOC,
author='Sun, Junyi, deepcs233',
author_email='[email protected]',
url='https://github.com/deepcs233/jieba_fast',
license="MIT",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.7',
'Topic :: Text Processing',
'Topic :: Text Processing :: Indexing',
'Topic :: Text Processing :: Linguistic',
],
keywords='NLP,tokenizing,Chinese word segementation',
packages=['jieba_fast'],
package_dir={'jieba_fast':'jieba_fast'},
package_data={'jieba_fast':['*.*','finalseg/*','analyse/*','posseg/*','source/*']},
ext_modules = [jieba_fast_functions_py2],
)
if platform.python_version().startswith('3'):
setup(name='jieba_fast',
version='0.52',
description='Use C and Swig to Speed up jieba<Chinese Words Segementation Utilities>',
long_description=LONGDOC,
author='Sun, Junyi, deepcs233',
author_email='[email protected]',
url='https://github.com/deepcs233/jieba_fast',
license="MIT",
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Natural Language :: Chinese (Simplified)',
'Natural Language :: Chinese (Traditional)',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.7',
'Topic :: Text Processing',
'Topic :: Text Processing :: Indexing',
'Topic :: Text Processing :: Linguistic',
],
keywords='NLP,tokenizing,Chinese word segementation',
packages=['jieba_fast'],
package_dir={'jieba_fast':'jieba_fast'},
package_data={'jieba_fast':['*.*','finalseg/*','analyse/*','posseg/*','source/*']},
ext_modules = [jieba_fast_functions_py3],
)