-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.26 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
from setuptools import find_packages, setup
from setuptools import find_packages, setup
from os.path import join, dirname
from glob import glob
package_name = 'maciv2'
def get_all_files_in_path(glob_string, path_string):
return [ (join(path_string, dirname(g)), [g]) for g in glob(glob_string, recursive=True)]
def create_datafiles():
df = [ ('share/ament_index/resource_index/packages', ['resource/' + package_name]),
(join('share/' , package_name,"launch"), glob("launch/*.*")),
(join('share/', package_name, "config"), glob("config/*.*")),
('share/' + package_name, ['package.xml']),
]
for complex_path in ["robot_description"]:
res = get_all_files_in_path(glob_string=f"{complex_path}/**/*.*", path_string=join("share",package_name))
df.extend(res)
return df
setup(
name=package_name,
version='0.0.0',
packages=find_packages(exclude=['test']),
data_files=create_datafiles(),
install_requires=['setuptools'],
zip_safe=True,
maintainer='ros',
maintainer_email='[email protected]',
description='TODO: Package description',
license='TODO: License declaration',
tests_require=['pytest'],
entry_points={
'console_scripts': [
],
},
)