From a9884284f576ea2f3a52118feb7b24977c1df63a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Jun 2022 22:00:33 +0200 Subject: [PATCH] Fix pip installation problem under Ubuntu 22.04 pip 19.1 seems to be incompatible with Python 3.10 used there. --- build/tools/httpbin.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index aef27150c5..608cae87cd 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -60,8 +60,15 @@ httpbin_launch() { # However don't upgrade to a version which is too new because then # it may not support Python version that we actually have (this one # still works with 3.4, 20.0.1 is the last one to support 3.5). - python3 -m pip install --user --upgrade pip==19.1.1 - python3 -m pip install --user wheel + case "$dist_codename" in + jammy) + # pip is newer than 19.1 already, don't "upgrade" it. + ;; + + *) + python3 -m pip install --user --upgrade pip==19.1.1 + python3 -m pip install --user wheel + esac echo "Installing using `python3 -m pip --version`"