ros-industrial / industrial_ci

Easy continuous integration repository for ROS repositories
Apache License 2.0
248 stars 129 forks source link

Install Python dependencies globally for Python > 3.10 #880

Closed danthony06 closed 1 month ago

danthony06 commented 2 months ago

Pure python dependencies break with rosdep on Python versions newer than 3.10, which impacts ROS 2 Jazzy and Rolling. See the discussion below for details.

https://discourse.ros.org/t/rosdep-for-pip-is-broken-on-jazzy/38981/8 https://github.com/ros-infrastructure/rosdep/blob/f6857691e9a23e3a3f39e55189195dc3e4bf0770/doc/pip_and_pep_668.rst

This PR addresses the problem by setting the environment variable PIP_BREAK_SYSTEM_PACKAGES when the Python version is newer than 3.10. It resolves issue https://github.com/ros-industrial/industrial_ci/issues/881.