2014-12-01 08:34:02 -05:00
|
|
|
PYENV_PIP_REHASH_ROOT="${BASH_SOURCE[0]%/*}/pip-rehash"
|
2015-04-29 07:53:46 -04:00
|
|
|
PYENV_REHASH_COMMAND="${PYENV_COMMAND##*/}"
|
|
|
|
|
|
|
|
# Remove any version information, from e.g. "pip2" or "pip3.4".
|
|
|
|
if [[ $PYENV_REHASH_COMMAND =~ ^(pip|easy_install)[23](\.\d)?$ ]]; then
|
|
|
|
PYENV_REHASH_COMMAND="${BASH_REMATCH[1]}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -x "${PYENV_PIP_REHASH_ROOT}/${PYENV_REHASH_COMMAND}" ]; then
|
|
|
|
PYENV_COMMAND_PATH="${PYENV_PIP_REHASH_ROOT}/${PYENV_REHASH_COMMAND##*/}"
|
2014-12-01 08:34:02 -05:00
|
|
|
PYENV_BIN_PATH="${PYENV_PIP_REHASH_ROOT}"
|
2015-04-29 07:53:46 -04:00
|
|
|
export PYENV_REHASH_REAL_COMMAND="${PYENV_COMMAND##*/}"
|
2014-12-01 08:34:02 -05:00
|
|
|
fi
|