[Bug]: wheels bundled in ensurepip are not valid wheels

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

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

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
build-system

調査の方向性

The payload names no source files, so start with the reproduction: run wheel unpack on the pip wheel in ensurepip/_bundled and observe the hash mismatch for pip/_internal/cli/cmdoptions.py. Then find where GraalPy patches bundled wheels during its build and check whether the RECORD file is rewritten afterwards. Done means the patched wheel unpacks without a hash error.

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

説明

bug
Describe the bug

The pip wheel bundled in ensurepip is patched by graalpy but the RECORD file is not updated with new sha256 for patched files.

I came across the issue while trying to patch pip wheels in ensurepip with a version of certifi that does not embed the compromised eMudhra intermediate CA certificates.

For older versions, it likely applies to setuptools as well.

Operating system

Linux

CPU architecture

x86_64

GraalPy version

graalpy-24.2.2, graalpy-25.0.3, graalpy3.12-25.2.4, graalpy3.13-25.4.4

JDK version

No response

Context configuration

No response

Steps to reproduce
wheel unpack /opt/_internal/graalpy313-graalpy253_313_native/lib/python3.13/ensurepip/_bundled/pip-26.1.2-py3-none-any.whl
Unpacking to: pip-26.1.2...Hash mismatch for file 'pip/_internal/cli/cmdoptions.py'
Expected behavior

wheel unpacked without error

Stack trace

Additional context

No response

主要言語
Python
スター
1.7k
フォーク
167
平均マージ
3日 11時間
マージ済み PR(30日)
68

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

oracle/graalpython のほかの issue

oracle/graalpython の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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