bazel-contrib / bazel-contrib/rules_python

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

Abierto
#3,196 0 comentarios 0 reacciones 0 asignados Ver en GitHub
core-rules need: upstream support type: feature request type: toolchain
Lenguaje dominante
Starlark
Estrellas
688
Forks
721
Merge medio
15 h 7 min
PR fusionados (30 d)
76

Descripción

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)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

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

Evaluación

Stack tecnológico
python
Área
build-system
Tipo de issue
Nueva funcionalidad
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.