forked from wkentaro/octomap-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
56 lines (48 loc) · 1.36 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
53
54
55
56
import subprocess
import numpy
from Cython.Distutils import build_ext
from setuptools import Extension, setup
def get_long_description():
with open('README.md') as f:
long_description = f.read()
return long_description
subprocess.run(
[
'cmake',
'-Bbuild',
'-DBUILD_OCTOVIS_SUBPROJECT=OFF',
'-DCMAKE_CXX_FLAGS="-w"',
'.',
],
cwd = 'src/octomap',
check = True
)
subprocess.run(['cmake', '--build', 'build/'], cwd = 'src/octomap', check = True)
ext_modules = [
Extension(
'octomap', ['octomap/octomap.pyx'],
include_dirs = [
'src/octomap/octomap/include', 'src/octomap/dynamicEDT3D/include', numpy.get_include()
],
language = 'c++',
extra_objects = [
"src/octomap/lib/libdynamicedt3d.a",
"src/octomap/lib/liboctomap.a",
"src/octomap/lib/liboctomath.a"
],
)
]
setup(
name = 'octomap-python',
version = '1.9.8',
install_requires = ['numpy'],
extras_require = {
'example': ['glooey', 'imgviz', 'pyglet', 'trimesh[easy]'],
},
license = 'BSD',
maintainer = 'Zachary Kingston',
maintainer_email = '[email protected]',
url = 'https://github.com/zkingston/octomap-python',
ext_modules = ext_modules,
cmdclass = {'build_ext': build_ext},
)