ros-infrastructure / ros_buildfarm

ROS buildfarm based on Docker
Apache License 2.0
81 stars 96 forks source link

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

Closed marcoag closed 6 months ago

marcoag commented 6 months ago

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?

nuclearsandwich commented 6 months ago

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?