From 031aa65b26263af24b3226c46d496953b11589fe Mon Sep 17 00:00:00 2001 From: Sandeep Yadav Date: Wed, 29 Jul 2020 13:50:15 +0530 Subject: [PATCH] Pin pip to last good version - 20.1.1 for c7 pip-20.2 break c7 jobs, details in bug[1]. With this patch we are pinning pip to last good version for Centos7. [1] https://bugs.launchpad.net/tripleo/+bug/1889357 Change-Id: I5302e4ac3dfaeefa106cf308ab41e5b25f520df9 Partial-Bug: #1889357 --- install-deps.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install-deps.sh b/install-deps.sh index e31a5c619..0520d135e 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -188,7 +188,13 @@ install_virtual_env(){ echo "Warning: VIRTUAL_ENV=$VIRTUAL_ENV was found active and is being reused." fi - $(python_cmd) -m pip install pip --upgrade + # Latest pip break Centos7 details in Bug: #1889357, Pin pip to last good version - 20.1.1 for C7 + if [[ $(python_cmd) == 'python2' ]]; then + $(python_cmd) -m pip install pip==20.1.1 + else + $(python_cmd) -m pip install pip --upgrade + fi + echo "Installing bindep" $(python_cmd) -m pip install bindep --upgrade