From 99405a45aa3930a9b695d9a1c1dabf0d967e48ad Mon Sep 17 00:00:00 2001 From: Roman Gorodeckij Date: Wed, 7 Aug 2013 09:20:36 -0400 Subject: [PATCH] Pip install fails because of --use-mirrors parameter Having --use-mirrors parameter in pip commands causes pip to hang on some distros. Pypi uses CDN for long time already, so there's no point to keep this parameter no more. Wipe PIP_USE_MIRRORS out of the "function" file. Change-Id: I70adaf6591834af2482e09eb7f8f9f60df8e7692 Closes-Bug: #1069309 --- functions | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/functions b/functions index e9c60615e6..087a0ea844 100644 --- a/functions +++ b/functions @@ -944,13 +944,9 @@ function pip_install { CMD_PIP=$(get_pip_command) fi - if is_fedora && [[ $DISTRO =~ (rhel6) ]]; then - # RHEL6 pip by default doesn't have this (was introduced - # around 0.8.1 or so) - PIP_USE_MIRRORS=${PIP_USE_MIRRORS:-False} - else - PIP_USE_MIRRORS=${PIP_USE_MIRRORS:-True} - fi + # Mirror option not needed anymore because pypi has CDN available, + # but it's useful in certain circumstances + PIP_USE_MIRRORS=${PIP_USE_MIRRORS:-False} if [[ "$PIP_USE_MIRRORS" != "False" ]]; then PIP_MIRROR_OPT="--use-mirrors" fi