From c7961fa666c08cd90d3dc387f1f868d08a170472 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 4 Apr 2021 01:34:45 +0200 Subject: [PATCH] Don't upgrade pip to a version which is too new Amazingly, updating a package has no problems with installing a newer version incompatible with the current Python version, such as installing pip 21 when using Python 3.5. --- build/tools/httpbin.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/tools/httpbin.sh b/build/tools/httpbin.sh index 6926979923..f4387842d1 100644 --- a/build/tools/httpbin.sh +++ b/build/tools/httpbin.sh @@ -40,7 +40,10 @@ httpbin_launch() { # Running pip install fails with weird errors out of the box when # using old pip version because it attempts to use python rather # than python3, so upgrade it to fix this. - python3 -m pip install --upgrade pip setuptools wheel + # + # However don't upgrade to a version which is too new because then + # it may not support Python version that we actually have. + python3 -m pip install --upgrade pip==20 ;; esac