mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-15 06:53:52 -05:00
Workaround for the issue with pyenv-which-ext (refs #26)
This commit is contained in:
@@ -8,9 +8,13 @@ setup() {
|
||||
|
||||
stub_pyenv() {
|
||||
export PYENV_VERSION="$1"
|
||||
stub pyenv-prefix " : echo '${PYENV_ROOT}/versions/\${PYENV_VERSION}'"
|
||||
stub pyenv-which "virtualenv : echo '${PYENV_ROOT}/versions/bin/virtualenv'"
|
||||
stub pyenv-which "pyvenv : false"
|
||||
|
||||
create_executable "${PYENV_VERSION}" "virtualenv"
|
||||
remove_executable "${PYENV_VERSION}" "pyvenv"
|
||||
|
||||
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-prefix "echo '${PYENV_ROOT}/versions/${PYENV_VERSION}'"
|
||||
stub pyenv-hooks "virtualenv : echo"
|
||||
stub pyenv-rehash " : echo rehashed"
|
||||
}
|
||||
@@ -18,7 +22,6 @@ stub_pyenv() {
|
||||
unstub_pyenv() {
|
||||
unset PYENV_VERSION
|
||||
unstub pyenv-prefix
|
||||
unstub pyenv-which
|
||||
unstub pyenv-hooks
|
||||
unstub pyenv-rehash
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user