From 189afa88c65b6c524b9ccaf3e441b20f9ad7a000 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 10:10:06 +0100 Subject: [PATCH 1/2] Fix get-pip which dropped support for legacy Python Fix pyenv to continue to support legacy Python builds despite the fact that `get-pip` has dropped support for Python 2 as discussed in pypa/get-pip#87 --- plugins/python-build/bin/python-build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 043cc4f1..8a1be844 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -2090,6 +2090,9 @@ if [ -z "${GET_PIP_URL}" ]; then 2.6 | 2.6.* ) GET_PIP_URL="https://bootstrap.pypa.io/2.6/get-pip.py" ;; + 2.7 | 2.7.* ) + GET_PIP_URL="https://bootstrap.pypa.io/2.7/get-pip.py" + ;; 3.2 | 3.2.* ) GET_PIP_URL="https://bootstrap.pypa.io/3.2/get-pip.py" ;; From 93025e9aa47b89aa98dd919cf4a1f327cd07a5cf Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 27 Jan 2021 10:31:16 +0100 Subject: [PATCH 2/2] Also fix Python 3.4 and 3.5 which do not support f-strings --- plugins/python-build/bin/python-build | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 8a1be844..d7c41d55 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -2099,6 +2099,12 @@ if [ -z "${GET_PIP_URL}" ]; then 3.3 | 3.3.* ) GET_PIP_URL="https://bootstrap.pypa.io/3.3/get-pip.py" ;; + 3.4 | 3.4.* ) + GET_PIP_URL="https://bootstrap.pypa.io/3.4/get-pip.py" + ;; + 3.5 | 3.5.* ) + GET_PIP_URL="https://bootstrap.pypa.io/3.5/get-pip.py" + ;; * ) GET_PIP_URL="https://bootstrap.pypa.io/get-pip.py" ;;