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

setuptools 50.0.0 workaround #73

Merged
merged 11 commits into from
Sep 1, 2020
5 changes: 4 additions & 1 deletion ros1_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ set -xe

# install dependencies
sudo apt-get update && sudo apt-get install -y lcov python3-pip python-rosinstall libgtest-dev cmake && rosdep update
sudo apt-get update && sudo apt-get install -y python3-colcon-common-extensions && sudo -H pip3 install -U setuptools!=50.0.0
sudo apt-get update && sudo apt-get install -y python3-colcon-common-extensions && sudo -H pip3 install -U setuptools
# NOTE: Workaround for setuptools 50.0.* (see https://github.com/pypa/setuptools/issues/2352)
export SETUPTOOLS_USE_DISTUTILS=stdlib

# nosetests needs coverage for Python 2
sudo apt-get install python-pip -y && sudo -H pip install -U coverage
# enable Python coverage "https://github.com/ros/catkin/blob/kinetic-devel/cmake/test/nosetests.cmake#L59"
Expand Down
4 changes: 3 additions & 1 deletion ros2_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ set -xe

# install dependencies
sudo apt-get update && sudo apt-get install -y python3 python3-pip lcov cmake && rosdep update
sudo apt-get update && sudo apt-get install -y python3-rosinstall python3-colcon-common-extensions && sudo -H pip3 install -U setuptools!=50.0.0 coverage pytest
sudo apt-get update && sudo apt-get install -y python3-rosinstall python3-colcon-common-extensions && sudo -H pip3 install -U setuptools coverage pytest
apt list --upgradable 2>/dev/null | awk {'print $1'} | sed 's/\/.*//g' | grep ${ROS_DISTRO} | xargs sudo apt-get install -y
# NOTE: Workaround for setuptools 50.0.* (see https://github.com/pypa/setuptools/issues/2352)
export SETUPTOOLS_USE_DISTUTILS=stdlib

REPO_NAME=$(basename -- ${TRAVIS_BUILD_DIR})
echo "repo: ${REPO_NAME} branch: ${TRAVIS_BRANCH}"
Expand Down
4 changes: 3 additions & 1 deletion ros_bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ set -xe

# Set up ROS APT and install basic dependencies (rosdep, rosinstall). Must have ROS_VERSION set when called.
sudo apt-get update && sudo apt-get install -q -y dirmngr curl gnupg2 lsb-release zip python3-pip python3-apt dpkg
sudo -H pip3 install -U setuptools!=50.0.0
sudo -H pip3 install -U setuptools
# NOTE: Workaround for setuptools 50.0.* (see https://github.com/pypa/setuptools/issues/2352)
export SETUPTOOLS_USE_DISTUTILS=stdlib

if [ "${ROS_VERSION}" == "1" ]; then
echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ros-latest.list
Expand Down