Incorrect installation of `lib-dynload` for custom builds on openSUSE
未關閉
還沒有人認領這個 Issue。
OS-linux
topic-installation
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 36k
- PR 合併指標
- PR 指標待擷取
描述
Bug report
Bug description:
from Python-3.13.2.tar.xz
./configure --prefix=$RUN/python/3.13.2
make -j 16
make -j 4 install
dynamic libraries are installed to $RUN/3.13.2/lib64/python3.13/lib-dynload
but internally sys.path uses $RUN/3.13.2/lib/python3.13/lib-dynload
setting a link resolves the
errors that show up:
> python3
**Could not find platform dependent libraries <exec_prefix>**
Python 3.13.2 (main, Mar 18 2025, 10:25:05) [GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
**warning: can't use pyrepl: No module named '_opcode'**
pip3 download pip wheel setuptools
...
from _posixsubprocess import fork_exec as _fork_exec
**ModuleNotFoundError: No module named '_posixsubprocess'**
CPython versions tested on:
3.13
Operating systems tested on:
Linux
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
在 Linux 上使用回報的 ./configure、make 和 make install 指令重現自訂建置,然後檢查已安裝的 lib-dynload 路徑與 sys.path 有何不同。當不需要符號連結即可找到 _opcode 和 _posixsubprocess 等擴充模組,且 pip 能夠成功執行時,修正就完成了。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- build-system
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100