|
|
@ -50,7 +50,7 @@ fi
|
|
|
|
unset local_pyenv
|
|
|
|
unset local_pyenv
|
|
|
|
|
|
|
|
|
|
|
|
# Return if requirements are not found.
|
|
|
|
# Return if requirements are not found.
|
|
|
|
if (( ! $#commands[(i)python[23]#] && ! $+functions[pyenv] && ! $+commands[conda] )); then
|
|
|
|
if (( ! $+commands[(i)python[0-9.]#] && ! $+functions[pyenv] && ! $+commands[conda] )); then
|
|
|
|
return 1
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -136,8 +136,8 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) \
|
|
|
|
|
|
|
|
|
|
|
|
if [[ $pyenv_virtualenvwrapper_plugin_found != "true" ]]; then
|
|
|
|
if [[ $pyenv_virtualenvwrapper_plugin_found != "true" ]]; then
|
|
|
|
# Fallback to standard 'virtualenvwrapper' if 'python' is available in '$path'.
|
|
|
|
# Fallback to standard 'virtualenvwrapper' if 'python' is available in '$path'.
|
|
|
|
if (( ! $+VIRTUALENVWRAPPER_PYTHON )) && (( $#commands[(i)python[23]#] )); then
|
|
|
|
if (( ! $+VIRTUALENVWRAPPER_PYTHON )) && (( $+commands[(i)python[0-9.]#] )); then
|
|
|
|
VIRTUALENVWRAPPER_PYTHON=$commands[(i)python[23]#]
|
|
|
|
VIRTUALENVWRAPPER_PYTHON=$commands[(i)python[0-9.]#]
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
virtualenvwrapper_sources=(
|
|
|
|
virtualenvwrapper_sources=(
|
|
|
|