Building on Windows should remove all `__pycache__`
未关闭
还没有人认领这个 Issue。
build
OS-windows
type-feature
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 36k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 558
描述
Feature or enhancement
The file Makefile.pre.in already has this target:
pycremoval:
-find $(srcdir) -depth -name '__pycache__' -exec rm -rf {} ';'
-find $(srcdir) -name '*.py[co]' -exec rm -f {} ';'
It would be useful to have an equivalent on Windows.
Pitch
This would be helpful when iterating on compiler/bytecode, instead of manually bumping the magic number at each build or manually removing all pycs. It's easy to forget and think there's a bug when in reality the .pyc files are just stale.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Makefile.pre.in 中现有的 pycremoval 目标开始,找出提供等效清理功能的 Windows 构建入口点。确保 Windows 工作流删除 pycache 目录和 *.py[co] 文件,然后验证在编译器或字节码迭代期间可以使用该清理功能。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- build-system, operating-systems
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100