asdf-community / asdf-community/asdf-python
Default packages fail to install if `PIP_REQUIRE_VIRTUALENV` is set
オープン
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 730
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When installing a new Python version, it failed when attempting to install default packages:
Installed Python-3.11.4 to /Users/myusername/.asdf/installs/python/3.11.4
Installing default python packages...ERROR: Could not find an activated virtualenv (required).
This is because I have PIP_REQUIRE_VIRTUALENV set to true in my shell. Looking at the install command, it uses pip as such:
According to this Stack Overflow answer, I believe this command should include the --isolated flag. In my case, adding the flag works:
$ pip install -U -r ~/.default-python-packages
ERROR: Could not find an activated virtualenv (required).
$ pip install -U -r ~/.default-python-packages --isolated
Requirement already satisfied: ...
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pip でデフォルトパッケージがインストールされる bin/install の 38 行目付近を調べます。PIP_REQUIRE_VIRTUALENV=true と ~/.default-python-packages を使って失敗を再現し、新しい Python バージョンのインストールが完了し、デフォルトパッケージが virtualenv エラーなしでインストールされることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, shell
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 48/100