pyenv / pyenv-virtualenv

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

Hooks for virtualenv-delete #467

Open raffaem opened 1 year ago

raffaem commented 1 year ago

We should include hooks in pyenv-virtualenv-delete, like before_virtualenv_delete and after_virtualenv_delete.

For instance, pyenv-jupyter-kernel is a project that will create Jupyter kernels when creating a pyenv virtual environment, and delete the kernel when the virtual environment is deleted.

Kernel deletion works with pyenv uninstall, but not with pyenv virtualenv-delete, due to lack of hooks in this function.

Prerequisite

Description

native-api commented 7 months ago

SGTM