bazel-contrib / bazel-contrib/rules_python

Integrate sys.abi_features/sys.abi_info into toolchains when available

Aperta
#3,196 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
core-rules need: upstream support type: feature request type: toolchain
Lingua principale
Starlark
Stelle
688
Fork
721
Merge medio
15h 7m
PR unite (30g)
76

Descrizione

It looks like Python is going to add a `sys.abi_info` attribute that gives details about the interpreter's ABI.

https://discuss.python.org/t/add-sys-abi-features-to-make-information-about-the-interpreter-abi-more-accessible/94422

https://github.com/python/cpython/pull/137476

Whatever they do, It should be exposed on our toolchains. We already do something similar for `sys.abiflags`; this new fields is basically a more structured and improved version of it.

* [ ] Add a equivalent field on the toolchain type, since it's specific about the C ABI, it should go on the py-cc toolchain type.
* [ ] local_toolchains: inspect it and put its values in the toolchain
* [ ] python-build-standalone: ideally, this would go into a file we can read a repo time using starlark. (cross builds may mean the interpreter can't be run directly)

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start with the existing sys.abiflags handling and the py-cc toolchain type, then inspect local_toolchains and python-build-standalone as named in the checklist. Compare the proposed sys.abi_features/sys.abi_info behavior in the linked Python discussions and determine how values can be supplied for cross builds; done means the ABI information is exposed on toolchains when available.

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

Valutazione

Stack tecnologico
python
Ambito
build-system
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.