generated from LCAS/environment_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (32 loc) · 1.35 KB
/
setup.py
File metadata and controls
36 lines (32 loc) · 1.35 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
import os
from setuptools import setup
import glob
package_name = 'environment_template'
# Start with the static data_files entries
data_files = [
('share/ament_index/resource_index/packages', [f'resource/{package_name}']),
(f'share/{package_name}', ['package.xml']),
(f'share/{package_name}/config', ['config/environment.sh']),
(f'share/{package_name}/config/location', glob.glob('config/location/*.*')),
(f'share/{package_name}/config/metric', glob.glob('config/metric/*.*')),
(f'share/{package_name}/config/topological', glob.glob('config/topological/*.*')),
(f'share/{package_name}/config/world', glob.glob('config/world/*.*')),
]
# Optional recursive addition of custom_models if it exists
custom_models_path = 'config/world/custom_models'
if os.path.exists(custom_models_path):
for root, _, files in os.walk(custom_models_path):
if files:
destination = os.path.join(f'share/{package_name}', root)
file_list = [os.path.join(root, file) for file in files]
data_files.append((destination, file_list))
setup(
name=package_name,
version='0.1.0',
packages=[package_name],
data_files=data_files,
zip_safe=True,
maintainer='james',
maintainer_email='primordia@live.com',
description='instance of basic template for standardised map referencing across digital twins',
)