From 8b321f711d64471773e74cc78de7704b96fb0abf Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Wed, 4 May 2016 16:06:29 +0100 Subject: [PATCH] fix: Use -H flag of sudo when running pip --- test/build/depends.sh | 2 +- test/build/sphinx.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/build/depends.sh b/test/build/depends.sh index 9befb93e..d4266ffd 100755 --- a/test/build/depends.sh +++ b/test/build/depends.sh @@ -17,7 +17,7 @@ set -e # Update package managers [[ $TRAVIS_OS_NAME != linux ]] || sudo apt-get update -qq [[ $TRAVIS_OS_NAME != osx ]] || brew update -[ -z "$(which pip)" ] || sudo pip install --upgrade pip +[ -z "$(which pip)" ] || sudo -H pip install --upgrade pip # Install Python 3 if [[ $python == 3 ]]; then diff --git a/test/build/sphinx.sh b/test/build/sphinx.sh index 3b3989df..6815b56e 100755 --- a/test/build/sphinx.sh +++ b/test/build/sphinx.sh @@ -23,4 +23,4 @@ if [[ $latex == yes ]]; then fi # Install Sphinx -sudo pip install -U Sphinx +sudo -H pip install -U Sphinx