mirror of
https://github.com/pyenv/pyenv-virtualenv.git
synced 2025-11-08 11:33:55 -05:00
Create backup of original virtualenv within $(pyenv root)/versions when --upgrade
This commit is contained in:
@@ -317,8 +317,8 @@ unset USE_PYVENV
|
|||||||
detect_venv
|
detect_venv
|
||||||
|
|
||||||
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
SEED="$(date "+%Y%m%d%H%M%S").$$"
|
||||||
VIRTUALENV_ORIG="${TMP}/pyenv-virtualenv.${SEED}"
|
VIRTUALENV_ORIG="${VIRTUALENV_PATH}.${SEED}"
|
||||||
REQUIREMENTS="${TMP}/pyenv-virtualenv.${SEED}.txt"
|
REQUIREMENTS="${TMP}/requirements.${SEED}.txt"
|
||||||
|
|
||||||
# Upgrade existing virtualenv
|
# Upgrade existing virtualenv
|
||||||
if [ -n "$UPGRADE" ]; then
|
if [ -n "$UPGRADE" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user