-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
executable file
·52 lines (46 loc) · 1.76 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
#!/usr/bin/env python
import os
from setuptools import setup
from distutils.extension import Extension
HATTRIE_DIR = 'hat-trie/src'
HATTRIE_FILE_NAMES = ['ahtable.c', 'hat-trie.c', 'misc.c', 'murmurhash3.c']
HATTRIE_FILES = [os.path.join(HATTRIE_DIR, name) for name in HATTRIE_FILE_NAMES]
with open('README.rst') as file_readme:
readme = file_readme.read()
with open('CHANGES.rst') as file_changes:
changes = file_changes.read()
setup(
name="hat-trie",
version="0.3",
description="HAT-Trie for Python",
long_description = readme + "\n\n" + changes,
author='Mikhail Korobov',
author_email='[email protected]',
url='https://github.com/kmike/hat-trie/',
ext_modules = [
Extension(
"hat_trie",
['src/hat_trie.c', 'src/chat_trie.c'] + HATTRIE_FILES,
include_dirs=['hat-trie/src'],
extra_compile_args=["-Wno-error=declaration-after-statement"],
)
],
classifiers=[
'Development Status :: 3 - Alpha',
'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.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing :: Linguistic',
],
)