Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Branding patches cause issues with certain wheels

Aperta
#330 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
build-system

Direzione di ricerca

Inizia da recipe/brand_python.py e ispeziona sia la patch del banner di CPython sia la patch di validazione di platform.py. Riproduci la discrepanza usando il contesto della wheel xeus-python collegata staticamente descritto nell’issue, quindi verifica che la soluzione scelta gestisca sia i banner Python brandizzati conda-forge sia quelli originali.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This recipe patches the CPython source code to include conda-forge branding in the interpreter banner, namely | packaged by conda-forge |. However, since this banner is validated in platform.py (to prevent mismatches between the Python runtime and the python home in use), the platform.py is also patched for this validation to pass. Both patches are done in brand-python.py.

Now, I have the following issue with this: we are working on a PyPI wheel for the xeus-python jupyter kernel, for which we have a functional conda package, and which embeds Python. The conda package simply links with libpython.so and all is fine, but for the wheel, since we generally can't rely on Python distributions providing a libpython.so shared object, our PyPI manylinux wheel is statically linked with libpython.a. This causes the banner to not be the one from conda-forge an to cause a mismatch with conda-forge's patched validation regex.

To solve this issue, we would need to either renounce to the branding in the banner, or make the new regex slightly more flexible to also accept the original banner from the unpatched python interpreter.

cc @mingwandroid @jjhelmus @johanmabille.

Lingua principale
Shell
Stelle
47
Fork
114
Merge medio
7g 6h
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di conda-forge/python-feedstock

Tutte le issue di conda-forge/python-feedstock

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.