python / python/cpython

Makefile always regenerates `build-details.json`

未關閉
#131,556 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

build type-bug
主要語言
Python
星號
77.2k
分支
36k
PR 合併指標
PR 指標待擷取

描述

The Makefile target that generates build-details.json has an incorrect target so it's re-run for every action. The generated file is in:

`cat pybuilddir.txt`/build-details.json

For example, on my machine that evaluates to:

build/lib.linux-x86_64-3.14/build-details.json

https://github.com/python/cpython/blob/61317074d450f72fa121ceb1c7b0c52698a71106/Makefile.pre.in#L939-L940

Linked PRs
  • gh-131558
  • gh-131761

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

從 Makefile.pre.in 的第 939-940 行開始,檢查如何從 pybuilddir.txt 推導出目標路徑。重現一個會不必要地重新產生 build-details.json 的建置動作,然後驗證重複執行這些動作時不再重新執行該目標。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
python
領域
build-system
Issue 類型
缺陷
難度
1/5
預估耗時
1 小時以內
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。