Skip to content

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

@raffaelemancuso

Description

@raffaelemancuso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions