Skip to content

Conversation

cortesvitor
Copy link

Fixes #1024

Add [build] section with dynamic Python shebang in the setup.cfg file (ament_python template) for compatibility with virtual environments.

This change addresses an issue where build tools were incorrectly embedding a static /usr/bin/python3 shebang in generated scripts, forcing the use of the system's Python interpreter. This update ensures the use of the dynamic /usr/bin/env python3 shebang, allowing modules installed in virtual environments to be correctly located.

…ament_python template

Signed-off-by: João Vítor Carvalho <[email protected]>
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.

current ament_python template doesn't work for virtual environments
2 participants