pyenv / pyenv-virtualenv

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

Hooks don't work under /usr/share/pyenv/plugins #468

Open raffaem opened 10 months ago

raffaem commented 10 months ago

The pyenv-virtualenv AUR package install the plugin under /usr/share/pyenv/plugins.

This works correctly. I can do pyenv virtualenv, pyenv virtualenv-delete and the other commands without problems.

I've tried to install pyenv-jupyter-kernel under /usr/share/pyenv/plugins as well (since I wanted to package it for the AUR).

While I can do pyenv register-kernel without problems, pyenv-jupyter-kernel also register some hooks for install and uninstall that should install and uninstall corresponding jupyter kernels when a new virtualenv is created.

While those hooks work when installing pyenv-jupyter-kernel under $(pyenv root)/plugins, they don't work when installing under /usr/share/pyenv/plugins.

So I guess pyenv-virtualenv is not registering hooks when plugins are installed in that folder?

Prerequisite

Description