Remove a call of create_symlinks after the upgrade of existing virtualenv.

The `pyenv-virtualenv` only takes care about the name of executables of `python`,
`setuptools` and `pip`.
This commit is contained in:
Yamashita Yuu
2014-06-28 17:53:02 +09:00
parent 1a4fa48106
commit 0580d566d4

View File

@@ -186,7 +186,7 @@ build_package_ensurepip() {
build_package_ez_setup "$@" && build_package_get_pip "$@"
} || return 1
# create_symlinks "$(pyenv-exec python -c 'import sys;v=sys.version_info;sys.stdout.write("python%d.%d"%(v[0],v[1]))')"
create_symlinks "$(pyenv-exec python -c 'import sys;v=sys.version_info;sys.stdout.write("python%d.%d"%(v[0],v[1]))')"
}
install_virtualenv() {
@@ -438,8 +438,6 @@ if [ -n "$UPGRADE" ]; then
upgrade "${VIRTUALENV_NAME}" "${VIRTUALENV_PATH}" || STATUS="$?"
fi
create_symlinks "$(PYENV_VERSION="${VIRTUALENV_NAME}" pyenv-exec python -c 'import sys;v=sys.version_info;sys.stdout.write("python%d.%d"%(v[0],v[1]))')"
# Execute `after_virtualenv` hooks
for hook in "${after_hooks[@]}"; do eval "$hook"; done