From a49422e33ec08c2e8391168dd71689674ad8fc7c Mon Sep 17 00:00:00 2001 From: sbauza Date: Thu, 5 Dec 2013 14:56:14 +0100 Subject: [PATCH] Fix install_get_pip in order to work behind a proxy Proxy envvars are not passed to pip when sudo, we need to export them. Change-Id: I67622f5ea8ecb948006e032bdc395ecf36914146 Closes-Bug: #1258155 --- tools/install_pip.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 6b9b25e3e9..a65a77e079 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -67,7 +67,7 @@ function install_get_pip() { curl -O $PIP_GET_PIP_URL; \ ) fi - sudo python $FILES/get-pip.py + sudo -E python $FILES/get-pip.py } function install_pip_tarball() { @@ -75,7 +75,7 @@ function install_pip_tarball() { curl -O $PIP_TAR_URL; \ tar xvfz pip-$INSTALL_PIP_VERSION.tar.gz 1>/dev/null; \ cd pip-$INSTALL_PIP_VERSION; \ - sudo python setup.py install 1>/dev/null; \ + sudo -E python setup.py install 1>/dev/null; \ ) }