From 480309eea527d7721148f66f557772da0e9b5941 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sat, 23 Nov 2013 13:02:45 -0500 Subject: [PATCH] Allow overriding USE_GET_PIP via env vars devstack-gate wants to pre-cache and then use get-pip, but we can't throw the flag currently. Make the flag default settable via env vars. Change-Id: I661b52670b6ce494666cbdd611e4eee6b96c8321 Partial-Bug: #1254275 --- tools/install_pip.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install_pip.sh b/tools/install_pip.sh index 455323e6fa..6b9b25e3e9 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -26,6 +26,7 @@ FILES=$TOP_DIR/files # Handle arguments +USE_GET_PIP=${USE_GET_PIP:-0} INSTALL_PIP_VERSION=${INSTALL_PIP_VERSION:-"1.4.1"} while [[ -n "$1" ]]; do case $1 in @@ -63,7 +64,7 @@ function get_versions() { function install_get_pip() { if [[ ! -r $FILES/get-pip.py ]]; then (cd $FILES; \ - curl $PIP_GET_PIP_URL; \ + curl -O $PIP_GET_PIP_URL; \ ) fi sudo python $FILES/get-pip.py