-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·36 lines (33 loc) · 1.07 KB
/
setup.py
File metadata and controls
executable file
·36 lines (33 loc) · 1.07 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 glob import glob
from setuptools import find_packages, setup
package_name = 'g1_mujoco'
# Collect all asset files, preserving directory structure
asset_data_files = []
for root, dirs, files in os.walk('assets'):
if files:
install_dir = os.path.join('share', package_name, root)
asset_data_files.append((install_dir, [os.path.join(root, f) for f in files]))
setup(
name=package_name,
version='0.0.0',
packages=find_packages(exclude=['test']),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
(os.path.join('share', package_name, 'launch'), glob('launch/*.launch.py')),
] + asset_data_files,
install_requires=['setuptools'],
zip_safe=True,
maintainer='Jinyao Zhou',
maintainer_email='kaleidojean@gmail.com',
description='Package for G1 mujoco simulation',
license='TODO: License declaration',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'run_sim = g1_mujoco.mujoco_test:main'
],
},
)