-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
43 lines (40 loc) · 1.43 KB
/
setup.py
File metadata and controls
43 lines (40 loc) · 1.43 KB
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
import sys
from setuptools import setup, Extension
import pybind11
# The definitive and complete list of C++ source files to compile.
sources = [
'bindings.cpp',
'../grid_map/grid_map_core/src/GridMap.cpp',
'../grid_map/grid_map_core/src/GridMapMath.cpp',
'../grid_map/grid_map_core/src/BufferRegion.cpp',
'../grid_map/grid_map_core/src/SubmapGeometry.cpp',
'../grid_map/grid_map_core/src/Polygon.cpp',
'../grid_map/grid_map_core/src/CubicInterpolation.cpp',
'../grid_map/grid_map_core/src/iterators/GridMapIterator.cpp',
'../grid_map/grid_map_core/src/iterators/SubmapIterator.cpp',
'../grid_map/grid_map_core/src/iterators/CircleIterator.cpp',
'../grid_map/grid_map_core/src/iterators/SpiralIterator.cpp',
'../grid_map/grid_map_core/src/iterators/LineIterator.cpp',
'../grid_map/grid_map_core/src/iterators/PolygonIterator.cpp'
]
ext_modules = [
Extension(
'grid_map_py',
sources, # Use the complete list of sources
include_dirs=[
pybind11.get_include(),
'../grid_map/grid_map_core/include',
'../eigen'
],
language='c++',
extra_compile_args=['-std=c++17', '-O3'],
),
]
setup(
name='grid_map_py',
version='0.0.1',
author='Your Name',
author_email='your@email.com',
description='Python bindings for ANYbotics grid_map',
ext_modules=ext_modules,
)