Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
12 tasks done
raffaem opened this issue Sep 7, 2023 · 0 comments
Open
12 tasks done

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

raffaem opened this issue Sep 7, 2023 · 0 comments

Comments

@raffaem
Copy link

raffaem commented Sep 7, 2023

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

  • Make sure your problem is not listed in the common build problems.
  • Make sure no duplicated issue has already been reported in the pyenv-virtualenv issues. You should look in closed issues, too.
  • Make sure you are not asking us to help solving your specific issue.
    • GitHub issues is opened mainly for development purposes. If you want to ask someone to help solving your problem, go to some community site like Gitter, StackOverflow, etc.
  • Make sure your problem is not derived from packaging (e.g. Homebrew).
    • Please refer to the package documentation for the installation issues, etc.
  • Make sure your problem is not derived from other plugins.
    • This repository is maintaining the pyenv-virtualenv plugin only. Please refrain from reporting issues of other plugins here.

Description

  • Platform information (e.g. Ubuntu Linux 20.04): Arch Linux
  • OS architecture (e.g. amd64): amd64
  • pyenv version: 2.3.25
  • pyenv-virtualenv version: 1.2.1
  • Python version: 3.11.5
  • virtualenv version (if installed): NA
  • Please attach the debug log of a faulty Pyenv invocation as a gist: NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant