@@ -182,7 +182,7 @@ travis_time_start setup_pip
182182
183183# set non interactive tzdata https://stackoverflow.com/questions/8671308/non-interactive-method-for-dpkg-reconfigure-tzdata
184184# set DEBIAN_FRONTEND=noninteractive
185- # echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
185+ echo ' debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
186186
187187# install add-apt-repository
188188sudo apt-get update
@@ -201,14 +201,14 @@ if [[ "$ROS_DISTRO" =~ "indigo"|"jade" ]]; then
201201fi
202202# Note: pip 21.0, in January 2021, will remove Python 2 support
203203# 12.04's pip does not support install whl
204- # sudo apt-get update -q || echo Ignore error of apt-get update
205- # sudo -E apt-get -y -qq install python python-setuptools
206- # curl https://files.pythonhosted.org/packages/c4/44/e6b8056b6c8f2bfd1445cc9990f478930d8e3459e9dbf5b8e2d2922d64d3/pip-9.0.3.tar.gz --output /tmp/pip-9.0.3.tar.gz
207- # (cd /tmp; tar -xzf pip-9.0.3.tar.gz)
208- # sudo -H python -m easy_install /tmp/pip-9.0.3
209- # if [[ ! "$ROS_DISTRO" =~ "hydro" ]]; then # on hydro: Could not find a version that satisfies the requirement pip<10 (from versions: )
210- # sudo pip install -I 'pip<10' # on melodic reinsall pip9.0.3, otherwise it fails on, ImportError: Entry point ('console_scripts', 'pip2') not found
211- # fi
204+ sudo apt-get update -q || echo Ignore error of apt-get update
205+ sudo -E apt-get -y -qq install python python-setuptools
206+ curl https://files.pythonhosted.org/packages/c4/44/e6b8056b6c8f2bfd1445cc9990f478930d8e3459e9dbf5b8e2d2922d64d3/pip-9.0.3.tar.gz --output /tmp/pip-9.0.3.tar.gz
207+ (cd /tmp; tar -xzf pip-9.0.3.tar.gz)
208+ sudo -H python -m easy_install /tmp/pip-9.0.3
209+ if [[ ! " $ROS_DISTRO " =~ " hydro" ]]; then # on hydro: Could not find a version that satisfies the requirement pip<10 (from versions: )
210+ sudo pip install -I ' pip<10' # on melodic reinsall pip9.0.3, otherwise it fails on, ImportError: Entry point ('console_scripts', 'pip2') not found
211+ fi
212212
213213hash -r
214214pip --version || echo " pip is not installed"
@@ -266,22 +266,22 @@ travis_time_end
266266travis_time_start setup_cache
267267
268268# setup ccache
269- # sudo ln -s /usr/bin/ccache /usr/local/bin/gcc
270- # sudo ln -s /usr/bin/ccache /usr/local/bin/g++
271- # sudo ln -s /usr/bin/ccache /usr/local/bin/cc
272- # sudo ln -s /usr/bin/ccache /usr/local/bin/c++
273- # ccache -s
269+ sudo ln -s /usr/bin/ccache /usr/local/bin/gcc
270+ sudo ln -s /usr/bin/ccache /usr/local/bin/g++
271+ sudo ln -s /usr/bin/ccache /usr/local/bin/cc
272+ sudo ln -s /usr/bin/ccache /usr/local/bin/c++
273+ ccache -s
274274
275275travis_time_end
276276travis_time_start setup_git
277277
278278# check git : old linux needs newer git client ?
279279# https://stackoverflow.com/questions/53207973/fatal-unknown-value-for-config-protocol-version-2
280- # sudo add-apt-repository -y ppa:git-core/ppa
281- # sudo apt-get update
282- # sudo apt-get install -y -q git
283- # git --version
284- # git config -l
280+ sudo add-apt-repository -y ppa:git-core/ppa
281+ sudo apt-get update
282+ sudo apt-get install -y -q git
283+ git --version
284+ git config -l
285285
286286travis_time_end
287287travis_time_start setup_mongo
0 commit comments