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
This commit is contained in:
Mark Goddard 2020-03-17 18:13:40 +00:00
parent ab8a1357f2
commit 21cb4ea6fc

View File

@ -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