pyenv / pyenv-virtualenv

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

Hooks for virtualenv-delete #467

Open raffaem opened 10 months ago

raffaem commented 10 months 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 3 months ago

SGTM