Skip to content

Commit

Permalink
Support catkin_virtualenv for indigo (Ubuntu 14.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
iory committed Sep 20, 2022
1 parent a568fe2 commit 416c6c5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,19 @@ else
wget http://raw.github.com/jsk-ros-pkg/jsk_travis/master/rosdep-install.sh -O - | bash
fi

# following requirements.txt syntax is not support on 14.04
# google-api-core[grpc]==1.31.5 # via google-cloud-language
# so we intentionally use requirements.txt
# To use this program, we need to run
# sed -i 's/upgrade_pip=True/upgrade_pip=False/' /opt/ros/indigo/share/catkin_virtualenv/cmake/build_venv.py
# to prevent upgrading to latest pip, which is not Python2 compatible
# https://github.com/jsk-ros-pkg/jsk_3rdparty/pull/342
if [ "$ROS_DISTRO" == "indigo" ]; then
if [ -e /opt/ros/indigo/share/catkin_virtualenv/cmake/build_venv.py ]; then
sed -i 's/upgrade_pip=True/upgrade_pip=False/' /opt/ros/indigo/share/catkin_virtualenv/cmake/build_venv.py
fi
fi

# Store docker cache
if [ `whoami` = travis ]; then
sudo rm -fr $HOME/.cache/pip/*
Expand Down

0 comments on commit 416c6c5

Please sign in to comment.