Workaround for the issue with pyenv-which-ext (refs #26)

This commit is contained in:
Yamashita Yuu
2014-06-15 18:08:10 +09:00
parent 4a6ef11349
commit dc12a345d8
6 changed files with 94 additions and 67 deletions

View File

@@ -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
}