-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
37 lines (33 loc) · 1.07 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
import os
from setuptools import find_packages, setup
package_name = 'MACVO_ROS2'
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('..', path, filename))
return paths
extra_files = package_files('MACVO_ROS2/src') + package_files('MACVO_ROS2/config')
setup(
name=package_name,
version='0.0.0',
packages=find_packages(include=[package_name, f'{package_name}.*']),
data_files=[
('share/ament_index/resource_index/packages',
['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
],
package_data={package_name: extra_files},
install_requires=['setuptools'],
zip_safe=True,
maintainer='yutian',
maintainer_email='[email protected]',
description='TODO: Package description',
license='TODO: License declaration',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'MACVO = MACVO_ROS2.MACVO:main',
],
},
)