Workaround for new pip 20.3 behavior

This patch caps pip version during bootstrap to avoid the issue:

"ERROR: Links are not allowed as constraints"

A proper fix would be to adapt to new pip behavior.

Depends-On: https://review.opendev.org/764811
Change-Id: I1feed4573820436f91f8f654cc189fa3a21956fd
This commit is contained in:
Elod Illes 2020-11-30 18:30:02 +01:00 committed by Ghanshyam Mann
parent 907b9042b8
commit 7a3a7ce876
2 changed files with 4 additions and 1 deletions

1
tools/cap-pip.txt Normal file
View File

@ -0,0 +1 @@
pip<20.3

View File

@ -91,7 +91,9 @@ function install_get_pip {
die $LINENO "Download of get-pip.py failed"
touch $LOCAL_PIP.downloaded
fi
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP
# TODO: remove the trailing pip constraint when a proper fix
# arrives for bug https://bugs.launchpad.net/devstack/+bug/1906322
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP -c $TOOLS_DIR/cap-pip.txt
}