-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
46 lines (43 loc) · 1.8 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
# -*- coding: utf-8 -*-
from codecs import open
import re
from setuptools import setup, Extension
import platform
with open('neologdn.cpp', 'r', encoding='utf8') as f:
version = re.compile(r".*__version__ = '(.*?)'",
re.S).match(f.read()).group(1)
extra_compile_args = ["-std=c++11"]
if platform.system() == "Darwin":
extra_compile_args.append("-mmacosx-version-min=10.7")
extra_compile_args.append("-stdlib=libc++")
setup(name='neologdn',
version=version,
author='Yukino Ikegami',
author_email='[email protected]',
url='http://github.com/ikegami-yukino/neologdn',
ext_modules=[
Extension('neologdn', ['neologdn.cpp'],
language='c++',
extra_compile_args=extra_compile_args)
],
license='Apache Software License',
keywords=['japanese', 'MeCab'],
classifiers=[
'Development Status :: 3 - Alpha', 'Intended Audience :: Developers',
'Natural Language :: Japanese',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Cython', 'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Text Processing :: Linguistic'
],
description='Japanese text normalizer for mecab-neologd',
long_description='%s\n\n%s' %
(open('README.rst', 'r', encoding='utf8').read(),
open('CHANGES.rst', 'r', encoding='utf8').read()),
long_description_content_type='text/x-rst')