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

Offen
#1,272 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
Ein halber Tag
Anfängerfreundlichkeit
45/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
python
Bereich
build-system

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Python
Sterne
1.7k
Forks
167
Ø Merge
3 T. 11 Std.
Gemergte PRs (30 T.)
68

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus oracle/graalpython

Alle Issues in oracle/graalpython

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.