forked from HezhiCao/Scanbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (30 loc) · 1007 Bytes
/
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
import sys
from glob import glob
from setuptools import setup, find_packages
from pybind11.setup_helpers import Pybind11Extension, build_ext
if sys.version_info.major != 3:
print(
f"This Python is only compatible with Python 3, but you are running "
f"Python {sys.version_info.major}. The installation will likely fail."
)
ext_modules = [
Pybind11Extension(
"habitat_scanbot2d.astar_path_finder",
sorted(glob("habitat_scanbot2d/src/*.cpp")),
include_dirs=["habitat_scanbot2d/include", "/usr/include/eigen3"],
extra_compile_args=["-g"],
),
]
setup(
name="scanbot",
version="0.2",
description="A framework of robot autoscanning by using reinforcement learning.",
author="Xi Xia, Hezhi Cao",
author_email="[email protected], [email protected]",
packages=find_packages(),
package_data={
"scanbot2d": ["py.typed"],
},
cmdclass={"build_ext": build_ext},
ext_modules=ext_modules,
)