From 0d321449db032863b5ec61a1f3fb38694d9095c8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 8 Feb 2022 16:51:04 +1100 Subject: [PATCH] prepare-zanata-client: upgrade pip in venv Make sure the pip in the venv is upgraded past the system-version so it can install all the latest requirements. Change-Id: I601aca1507d16912e08ee9aba8842bc205ea2a91 --- .../prepare-zanata-client/files/common_translation_update.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/prepare-zanata-client/files/common_translation_update.sh b/roles/prepare-zanata-client/files/common_translation_update.sh index 2ddc1946..5b012a97 100644 --- a/roles/prepare-zanata-client/files/common_translation_update.sh +++ b/roles/prepare-zanata-client/files/common_translation_update.sh @@ -102,6 +102,10 @@ function finish { function setup_venv { if [ -d ~/.venv ] ; then source ~/.venv/bin/activate + # Ensure this venv is running the latest pip; if this has come + # from the system pip we might have a bionic-era pip that + # can't build modern things. + pip install --upgrade pip else # Ensure ~/.local/bin is in the path export PATH=~/.local/bin:$PATH