Configure-based build system doesn't have a documented way to disable modules like setup.py did

未关闭
#98,558 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
build-system

调研方向

首先检查链接的 setup.py 行,以及围绕文档中使用 py_cv_module__tkinter=disabled 调用 ./configure 的基于 configure 的构建流程。确定应在何处记录受支持的模块禁用接口,以及它必须涵盖哪些现有行为;完成的标准是用户可以禁用模块,而无需依赖内部变量名,并且文档反映受支持的流程。

由索引模型根据 Issue 内容生成。

描述

build type-feature

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.

主要语言
Python
星标
77.2k
派生
36k
平均合并
1 天 9 小时
30 天内合并 PR
558

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/cpython 的其他 Issue

查看 python/cpython 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。