pyenv / pyenv-virtualenv

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

Upgrade uninstall hook after pyenv/pyenv#2432 #438

Closed laggardkernel closed 1 year ago

laggardkernel commented 1 year 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.