-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
48 lines (42 loc) · 1.19 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
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
extensions = [
Extension('crdp', ['crdp.pyx']),
]
try:
from Cython.Build import cythonize
extensions = cythonize(extensions,
compiler_directives={
'language_level': 3
})
except ImportError:
pass
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="crdp",
version="0.0.2",
author="Ran Bi",
author_email="[email protected]",
description="A fast Ramer-Douglas-Peucker algorithm implementation.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/biran0079/crdp",
keywords="rdp ramer douglas peucker line simplification cython",
license="MIT",
packages=(
find_packages()
),
install_requires=[],
extras_require=dict(
dev=[
'cython',
],
),
ext_modules=extensions,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
)