Skip to content

Clean up rclpy and ament_index_python dependencies - #440

Merged
christophfroehlich merged 3 commits into
mainfrom
cleanup-manifest-deps
Nov 19, 2026
Merged

christophfroehlich merged 3 commits into
mainfrom
cleanup-manifest-deps

Conversation

@christophfroehlich

Copy link
Copy Markdown
Collaborator

Small manifest cleanups split out of #354, independent of the runtime-package discussion there.

  • generate_parameter_library declared <depend>rclpy</depend>, but neither the CMake macros nor the generated C++ code use it. Removed.
  • example and example_external called find_package(rclpy) but only use rclpy in their Python launch tests, and got it transitively via generate_parameter_library. They now declare it as test_depend and no longer look it up in CMake.
  • generate_parameter_library_py tests import ament_index_python, which was not declared. Added as test_depend.

Note: packages using generate_parameter_module() that relied on getting rclpy transitively from generate_parameter_library must now declare it themselves (the generated Python module imports it). The in-repo Python examples already do.

Tested with colcon build / colcon test of generate_parameter_library_py, generate_parameter_library, generate_parameter_library_example and generate_parameter_library_example_external: all pass.

🤖 Generated with Claude Code

christophfroehlich and others added 3 commits November 19, 2026 08:12
…t in CMake

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…library_py

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@christophfroehlich
christophfroehlich merged commit a4feb06 into main Nov 19, 2026
19 of 20 checks passed
@christophfroehlich
christophfroehlich deleted the cleanup-manifest-deps branch November 19, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant