From 8cfc75604b17308c23f6edcf58bc8b2f55e1debb Mon Sep 17 00:00:00 2001 From: Timothy Pansino <11214426+TimPansino@users.noreply.github.com> Date: Sat, 16 Sep 2023 01:02:21 -0700 Subject: [PATCH] Fix get-pip urls for older pypy versions (#2788) --- plugins/python-build/bin/python-build | 6 +-- plugins/python-build/test/pyenv_ext.bats | 56 ++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 3 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 2f1d8ebb..6d777af2 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -2337,7 +2337,7 @@ if [ -z "${GET_PIP_URL}" ]; then 2.6 | 2.6.* ) GET_PIP_URL="https://bootstrap.pypa.io/pip/2.6/get-pip.py" ;; - 2.7 | 2.7.* ) + 2.7 | 2.7.* | pypy2.7 | pypy2.7-* ) GET_PIP_URL="https://bootstrap.pypa.io/pip/2.7/get-pip.py" ;; 3.2 | 3.2.* ) @@ -2349,10 +2349,10 @@ if [ -z "${GET_PIP_URL}" ]; then 3.4 | 3.4.* ) GET_PIP_URL="https://bootstrap.pypa.io/pip/3.4/get-pip.py" ;; - 3.5 | 3.5.* ) + 3.5 | 3.5.* | pypy3.5 | pypy3.5-* ) GET_PIP_URL="https://bootstrap.pypa.io/pip/3.5/get-pip.py" ;; - 3.6 | 3.6.* ) + 3.6 | 3.6.* | pypy3.6 | pypy3.6-* ) GET_PIP_URL="https://bootstrap.pypa.io/pip/3.6/get-pip.py" ;; * ) diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index ccf6f4c6..6212638b 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -393,6 +393,14 @@ OUT assert_success } +@test "use the custom GET_PIP_URL for 2.7 versions" { + run_inline_definition_with_name --name=2.7 <