From 0580d566d46b8c38aee9db1ab648d3ca5657578f Mon Sep 17 00:00:00 2001 From: Yamashita Yuu Date: Sat, 28 Jun 2014 17:53:02 +0900 Subject: [PATCH] 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`. --- bin/pyenv-virtualenv | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/pyenv-virtualenv b/bin/pyenv-virtualenv index e892009..ac02b48 100755 --- a/bin/pyenv-virtualenv +++ b/bin/pyenv-virtualenv @@ -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