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

Adding break-system-packages pip option for noble in devel_task #1026

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

marcoag
Copy link
Contributor

@marcoag marcoag commented Mar 13, 2024

Rpr jobs are failing due to the externally-managed-environment pip error, i.e.:

https://build.ros2.org/job/Rpr__rosbag2__ubuntu_noble_amd64/4/console

This PR adds a conditional to use --break-system-packages when installing setuptools with pip3.

Maybe not affecting Rpr jobs but I was wondering if some other templates installing pip packages should also be updated, thoughts?

Signed-off-by: Marco A. Gutierrez <marcogg@marcogg.com>
@nuclearsandwich
Copy link
Contributor

I can't see from the commit log why we started installing setuptools from pip. This seems to me like something we'd done for a specific reason that has been lost to time. Is it worth switching this to use the system provided setuptools for noble and phase out this pip override?

colcon requires setuptools 30.3.0[1] and we had previously needed to
install it from pypi to get that version on older Ubuntu distros, but
since Ubuntu Focal had python3-setuptools 45.2.0 and Debian Buster has
40.8.0 so we've not needed this for most of the last few years.

[1]: https://github.com/colcon/colcon-core/blob/master/setup.cfg#L41
@marcoag marcoag merged commit 050666f into master Mar 14, 2024
3 of 44 checks passed
@clalancette clalancette deleted the marcoag/Rpr_noble_pip_fix branch March 14, 2024 12:30
nuclearsandwich added a commit that referenced this pull request Mar 15, 2024
nuclearsandwich pushed a commit that referenced this pull request Mar 16, 2024
* Remove pip-installed setuptools.

colcon requires setuptools 30.3.0[1] and we had previously needed to
install it from pypi to get that version on older Ubuntu distros, but
since Ubuntu Focal had python3-setuptools 45.2.0 and Debian Buster has
40.8.0 so we've not needed this for most of the last few years.

[1]: https://github.com/colcon/colcon-core/blob/master/setup.cfg#L41

---------
Signed-off-by: Marco A. Gutierrez <marcogg@marcogg.com>
Co-authored-by: Steven! Ragnarök <steven@nuclearsandwich.com>
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.

2 participants