From 7a3a7ce876a37376fe0dca7278e41a4f46867daa Mon Sep 17 00:00:00 2001 From: Elod Illes Date: Mon, 30 Nov 2020 18:30:02 +0100 Subject: [PATCH] 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 --- tools/cap-pip.txt | 1 + tools/install_pip.sh | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 tools/cap-pip.txt diff --git a/tools/cap-pip.txt b/tools/cap-pip.txt new file mode 100644 index 0000000000..8ee551b261 --- /dev/null +++ b/tools/cap-pip.txt @@ -0,0 +1 @@ +pip<20.3 diff --git a/tools/install_pip.sh b/tools/install_pip.sh index f3fd1e2498..9afd2e53c2 100755 --- a/tools/install_pip.sh +++ b/tools/install_pip.sh @@ -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 }