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

オープン
#468 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, shell
領域
tooling

調査の方向性

Reproduce the reported behavior with pyenv-virtualenv 1.2.1 and pyenv-jupyter-kernel installed under /usr/share/pyenv/plugins, then compare it with installation under $(pyenv root)/plugins. Start by tracing hook discovery during pyenv virtualenv creation and deletion; done means the install and uninstall hooks run from the system plugin path as they do from the user plugin path.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Shell
スター
6.7k
フォーク
433
平均マージ
1日 8時間
マージ済み PR(30日)
11

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyenv/pyenv-virtualenv のほかの issue

pyenv/pyenv-virtualenv の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。