pyenv / pyenv-virtualenv

a pyenv plugin to manage virtualenv (a.k.a. python-virtualenv)
MIT License
6.37k stars 403 forks source link

Upgrade uninstall hook after pyenv/pyenv#2432 #438

Closed laggardkernel closed 2 years ago

laggardkernel commented 2 years ago

Found only the link is uninstalled by pyenv unisntall but not the original env. It turns out that the bug is related with pyenv/pyenv#2432.

Here's a fix that refactor the code to register itself as a hook explicitly and let the hook called by pyenv uninstall for multiple versions.