mesonbuild / mesonbuild/meson-python

Possible breakage against `beartype`?

Aperta
#871 7 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Python
Stelle
180
Fork
93
Merge medio
2g 7h
PR unite (30g)
18

Descrizione

We recently got an [issue](https://github.com/scikit-build/scikit-build-core/issues/1492) reported on scikit-build-core that our editable install `Finder` is breaking tools like `beartype` that add `sys.path_hooks` [^1]. The issue on our side seems to be that we should be running `find_spec` before trying to create our own spec [^2]. Fwict mesonpy would have the same issue
https://github.com/mesonbuild/meson-python/blob/47ea86f0cefa3a5285ae804ff5980b3a178bec43/mesonpy/_editable.py#L255

Have you had similar issues reported? Or if it is not a problem for you, any guidance on what black magic is done here?

[^1]: https://github.com/beartype/beartype/issues/556
[^2]: https://github.com/scikit-build/scikit-build-core/pull/1493

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.

Direzione di ricerca

Start with mesonpy/_editable.py around line 255 and inspect how the editable-install Finder interacts with sys.path_hooks and find_spec. Reproduce the reported beartype compatibility issue, then verify whether the editable finder avoids breaking tools that install their own path hooks.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.