-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
46 lines (39 loc) · 1.08 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 Extension
from setuptools import setup
from Cython.Build import cythonize
extension = Extension(
"_perceptronix",
sources=[
"extensions/_perceptronix.pyx",
"extensions/binomial_perceptron.cc",
"extensions/linear_model.pb.cc",
"extensions/multinomial_perceptron.cc",
],
libraries=["protobuf", "pthread"],
language="c++",
extra_compile_args=["-std=c++17", "-funsigned-char"],
)
__version__ = "0.7.5"
setup(
name="perceptronix",
version=__version__,
author="Kyle Gorman",
author_email="[email protected]",
description="Perceptron classifiers",
keywords=[
"computational linguistics",
"morphology",
"natural language processing",
"phonology",
"phonetics",
"speech",
"language",
],
license="Apache 2.0",
python_requires=">=3.6",
install_requires=["Cython >= 0.29"],
ext_modules=cythonize([extension]),
packages=["perceptronix"],
package_data={"perceptronix": ["__init__.pyi", "py.typed"]},
zip_safe=False,
)