-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
48 lines (40 loc) · 1.2 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
try:
from Cython.Distutils import build_ext
except:
use_cython = False
else:
use_cython = True
cmdclass = {}
ext_modules = []
sources = []
if use_cython:
sources = ["reeds_shepp/src/reeds_shepp.cpp", "reeds_shepp/reeds_shepp.pyx"]
cmdclass.update({'build_ext': build_ext})
else:
sources = ["reeds_shepp/src/reeds_shepp.cpp", "reeds_shepp/reeds_shepp.cpp"]
ext_modules = [
Extension("reeds_shepp",
sources=sources,
language="c++",
include_dirs=["reeds_shepp/include"])
]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="reeds_shepp",
version="1.0.7",
description="Code to calculate analytic Reeds Shepp path",
long_description=long_description,
author="Gabel Liemann",
author_email="[email protected]",
url='https://github.com/liespace/pyReedsShepp',
license="MIT",
cmdclass=cmdclass,
ext_modules=ext_modules,
classifiers=[
"Programming Language :: Python :: 2",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
'Topic :: Scientific/Engineering :: Mathematics'],
)