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

Abierto
#1,272 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
build-system

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
1.7k
Forks
167
Merge medio
3 d 11 h
PR fusionados (30 d)
68

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de oracle/graalpython

Todos los issues de oracle/graalpython

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.