bazel-contrib / bazel-contrib/rules_python
Integrate sys.abi_features/sys.abi_info into toolchains when available
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 721
- 平均合并
- 15 小时 7 分钟
- 30 天内合并 PR
- 76
描述
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)
贡献指南
调研方向
从现有的 sys.abiflags 处理和 py-cc 工具链类型入手,然后按照清单中的名称检查 local_toolchains 和 python-build-standalone。比较所链接 Python 讨论中提议的 sys.abi_features/sys.abi_info 行为,并确定如何为交叉构建提供值;完成标准是:在 ABI 信息可用时,将其公开到工具链上。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100