Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdirectories not installed with ros2pkg's ament_python template #790

Closed
ijnek opened this issue Jan 14, 2023 · 2 comments · Fixed by #801
Closed

Subdirectories not installed with ros2pkg's ament_python template #790

ijnek opened this issue Jan 14, 2023 · 2 comments · Fixed by #801
Labels
help wanted Extra attention is needed

Comments

@ijnek
Copy link
Contributor

ijnek commented Jan 14, 2023

Currently, the ament_python template has packages=[package_name], as seen below:

However, with this configuration, it seems that subdirectories are not installed when running colcon build.

Perhaps it is better to have in the template:

from setuptools import find_packages  # at top of setup.py.em

packages=find_packages(exclude=['test']),

like many ros2 python packages do, including most packages in ros2cli do. Happy to raise a PR if others agree with this change.

Related issue: ros-sports/soccer_ipm#7

@clalancette
Copy link
Contributor

After discussing this, it seems that using find_packages is more standard, so we'd be happy to review a PR that changes this. Note that if we make this change, we'll also have to update the tutorials at https://github.com/ros2/ros2_documentation .

ijnek added a commit to ijnek/ros2cli that referenced this issue Feb 3, 2023
Signed-off-by: ijnek <kenjibrameld@gmail.com>
@ijnek ijnek mentioned this issue Feb 3, 2023
@ijnek
Copy link
Contributor Author

ijnek commented Feb 3, 2023

Thanks for having a discussion about this, I've gone ahead and created a PR in #801 and in ros2/ros2_documentation#3302 to update the docs.

gbiggs pushed a commit that referenced this issue Feb 5, 2023
Signed-off-by: ijnek <kenjibrameld@gmail.com>
mergify bot pushed a commit that referenced this issue May 16, 2023
Signed-off-by: ijnek <kenjibrameld@gmail.com>
(cherry picked from commit ad0c2a8)
clalancette pushed a commit that referenced this issue May 16, 2023
Signed-off-by: ijnek <kenjibrameld@gmail.com>
(cherry picked from commit ad0c2a8)

Co-authored-by: Kenji Brameld <kenjibrameld@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants