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

Drop ROS Python package dependencies in debs #887

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Jun 24, 2022

When our Python packages are split into a separate -modules subpackage, it appears that the pattern is to retain the package distribution information in the main package, which contains the scripts.

When our packages take dependencies on only the -modules subpackage, they need to omit the Python dependencies to prevent pkg_resources from looking for those missing packages. Instead, we rely on apt and dpkg to ensure that the dependencies are present.

This shouldn't have any affect on non-debian installation of rosdep.

Fixes #886

When our Python packages are split into a separate `-modules`
subpackage, it appears that the pattern is to retain the package
distribution information in the main package, which contains the
scripts.

When our packages take dependencies on only the `-modules` subpackage,
they need to omit the Python dependencies to prevent `pkg_resources`
from looking for those missing packages. Instead, we rely on apt and
dpkg to ensure that the dependencies are present.

This shouldn't have any affect on non-debian installation of rosdep.
@cottsay cottsay added the bug label Jun 24, 2022
@cottsay cottsay self-assigned this Jun 24, 2022
@cottsay
Copy link
Member Author

cottsay commented Jun 24, 2022

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2022

Codecov Report

Merging #887 (cec4747) into master (4235467) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #887   +/-   ##
=======================================
  Coverage   74.83%   74.83%           
=======================================
  Files          44       44           
  Lines        3362     3362           
=======================================
  Hits         2516     2516           
  Misses        846      846           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4235467...cec4747. Read the comment docs.

@cottsay cottsay merged commit 8e7105d into master Jun 24, 2022
@cottsay cottsay deleted the cottsay/deb-module-deps branch June 24, 2022 19:53
russkel pushed a commit to Greenroom-Robotics/rosdep that referenced this pull request Jun 27, 2022
When our Python packages are split into a separate `-modules`
subpackage, it appears that the pattern is to retain the package
distribution information in the main package, which contains the
scripts.

When our packages take dependencies on only the `-modules` subpackage,
they need to omit the Python dependencies to prevent `pkg_resources`
from looking for those missing packages. Instead, we rely on apt and
dpkg to ensure that the dependencies are present.

This shouldn't have any affect on non-debian installation of rosdep.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rosdep broken after 0.22 release
3 participants