`sysconfig` provide wrong path in built cpython on windows
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- python
- 領域
- build-system
研究方向
Read _init_non_posix in Lib/sysconfig/__init__.py around line 412 and check how LIBDIR is computed for Windows Python builds. Compare that value with the directory containing sys.executable; done when the build case reports the expected path and the relevant sysconfig tests pass.
由索引模型根據 Issue 內容生成。
描述
Bug report
I'm sure that in _init_non_posix this will be wrong when in python build:
https://github.com/python/cpython/blob/main/Lib/sysconfig/__init__.py#L412
In python build, this value is just the folder where the sys.executable in. Change it to:
if not _PYTHON_BUILD:
vars['LIBDIR'] = _safe_realpath(os.path.join(get_config_var('installed_base'), 'libs'))
else:
vars['LIBDIR'] = os.path.dirname(
_safe_realpath(sys.executable)
)
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
- gh-160906
- 主要語言
- Python
- 星號
- 77.8k
- 分支
- 37.7k
- 平均合併
- 17 小時 2 分鐘
- 30 天內合併 PR
- 699
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python/cpython 的其他 Issue
-
build OS-unsupported OS-windows type-bug
難度 2/5 1-3 小時 新手友好度 60/100
維護者通常 1 天內回覆
-
What's New in 3.12 credits the unstable C API tier to PEP 697 instead of PEP 689可能已有人在做 @TheLouisMahdi 於 2 天前認領。 未關閉docs
難度 1/5 1 小時以內 新手友好度 82/100
python/cpython#161078 · 3 則留言 ·
維護者通常 1 天內回覆
-
OS-windows type-bug
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
docs
難度 2/5 1-3 小時 新手友好度 72/100
python/cpython#161007 · 4 則留言 ·
維護者通常 1 天內回覆
-
Null dereferencing of a pointer in initconfig.c可能已有人在做 @lazerg 於 4 天前認領。 未關閉interpreter-core topic-C-API type-bug
難度 2/5 1-3 小時 新手友好度 72/100
python/cpython#160962 · 4 則留言 ·
維護者通常 1 天內回覆
相似的 Issue
-
DBFS append mode silently overwrites existing files可能已有人在做 @IlyaKhalafi 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 77/100
fsspec/filesystem_spec#2429 ·
維護者通常 1 天內回覆
-
[Bug]: Retrieval rerank fallback statistics stay zero after provider failure可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉bug
難度 2/5 1-3 小時 新手友好度 78/100
volcengine/OpenViking#7014 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
fedora-copr/copr#4600 ·
維護者通常 2 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
ansys/pydpf-core#3620 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆