From 6a3172ff47f996e0f4222867505afceed8f47b30 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 29 Mar 2018 01:01:16 +0000 Subject: [PATCH] Unlike `python-build`, `DEFINITION_PATH` isn't available within `pyenv-virtualenv` --- bin/pyenv-virtualenv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index a0956c7..3e3aa19 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -467,7 +467,7 @@ if [ -z "${GET_PIP_URL}" ]; then unset PIP_VERSION else # Use custom get-pip URL based on the target version (#1127) - case "${DEFINITION_PATH##*/}" in + case "${PYENV_VERSION}" in 2.6 | 2.6.* ) GET_PIP_URL="https://bootstrap.pypa.io/2.6/get-pip.py" ;;