ros-infrastructure / ros_buildfarm

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

Try to avoid installing stuff via pip #957

Closed cottsay closed 7 months ago

cottsay commented 2 years ago

This change should allow platforms which can satisfy specific python version requirements through apt to avoid unnecessarily installing packages via pip.

cottsay commented 2 years ago

CI passed, which is building against Focal.

I ran the these commands on Xenial, Bionic, Focal, and Jammy:

# apt install -q -y '^python3-(pip|pytest-rerunfailures|setuptools)$'
# pip3 install 'setuptools>=30.3.0,<60.0.0' pytest-rerunfailures

For Xenial, the pip command upgraded setuptools to 59.8.0 and installed pytest-rerunfailures. For Bionic and Focal, the pip command only installed pytest-rerunfailures. For Jammy, the pip command was a no-op and returned 0.