Configure-based build system doesn't have a documented way to disable modules like setup.py did
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 558
描述
Feature or enhancement
To provide the ability to disable modules in the configure-based build system like the now removed setup.py did.
Pitch
Until the removal of setup.py, it was possible to disable modules by editing DISABLED_MODULE_LIST.
https://github.com/python/cpython/blob/dcb342b5f9d931b030ca310bf3e175bbc54df5aa/setup.py#L60-L61
In the past I used this to disable _tkinter.
In the configure based system, this is still possible but relies on internal variable names. I can pass py_cv_module__tkinter=disabled to ./configure. It would be useful to have something that was documented rather than having to rely on internal variables like that.
Previous discussion
Not yet, but can do if desired.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查链接的 setup.py 行,以及围绕文档中使用 py_cv_module__tkinter=disabled 调用 ./configure 的基于 configure 的构建流程。确定应在何处记录受支持的模块禁用接口,以及它必须涵盖哪些现有行为;完成的标准是用户可以禁用模块,而无需依赖内部变量名,并且文档反映受支持的流程。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100