From 21cb4ea6fc753265cecee868d99efe42e4f2966b Mon Sep 17 00:00:00 2001 From: Mark Goddard Date: Tue, 17 Mar 2020 18:13:40 +0000 Subject: [PATCH] Remove --ignore-installed from CentOS 8 pip 19 install In the kolla bifrost container image this results in a broken pip installation. The pip 19 package is downloaded, but this message is printed at the end: Successfully installed pip-20.0.2 The subsequent 'pip freeze' gets the following error: ImportError: cannot import name 'PackageFinder' This change removes the --ignore-installed argument, which results in the virtualenv getting pip 19 as expected. Change-Id: Idf2b03a4772111f63f79203f63ea95f805e7a43d --- scripts/install-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 977ceb6cd..934111980 100644 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -160,7 +160,7 @@ ls $PYTHON # workaround for PEP517 issue PYTHON_VER=$($PYTHON -V) if [[ $PYTHON_VER == "Python 3.6.8" ]]; then - sudo -H -E $PYTHON -m pip install pip==19.0 --ignore-installed + sudo -H -E $PYTHON -m pip install pip==19.0 export PIP_OPTS="" else sudo -H -E $PYTHON -m pip install -U pip --ignore-installed