forked from wkentaro/octomap-python
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
52 lines (46 loc) · 1.33 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
import subprocess
import sys
from setuptools import Extension
from setuptools import setup
import os
def get_long_description():
with open('README.md') as f:
long_description = f.read()
return long_description
from Cython.Distutils import build_ext
import numpy
os.makedirs('src/octomap/build', exist_ok=True)
subprocess.run(['cmake', ".."], cwd='src/octomap/build', check=True)
subprocess.run(['make'], cwd='src/octomap/build', 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",
"src/octomap/lib/liboctovis.a",
]
)
]
setup(
name='octomap-python',
version='1.8.0.post14',
install_requires=['numpy'],
extras_require={
'example': ['glooey', 'imgviz', 'pyglet', 'trimesh[easy]'],
},
license='BSD',
maintainer='Suveer Garg',
maintainer_email='[email protected]',
url='https://github.com/gsuveer/octomap-python',
ext_modules=ext_modules,
cmdclass={'build_ext': build_ext},
)