On Debian Buster and Ubuntu Focal distutils has been split to a separate package. With https://github.com/ros/catkin/pull/1048 catkin will prefer to use setuptools instead of distutils. This PR switches to setuptools to match catkin's preference. It uses conditional dependencies so it still works when ROS_PYTHON_VERSION is 2 to enable master branch to be released to earlier ROS distros than Noetic.
On Debian Buster and Ubuntu Focal distutils has been split to a separate package. With https://github.com/ros/catkin/pull/1048 catkin will prefer to use
setuptools
instead ofdistutils
. This PR switches tosetuptools
to match catkin's preference. It uses conditional dependencies so it still works whenROS_PYTHON_VERSION
is 2 to enablemaster
branch to be released to earlier ROS distros than Noetic.