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 <