Incorrect installation of `lib-dynload` for custom builds on openSUSE
未关闭
还没有人认领这个 Issue。
OS-linux
topic-installation
type-bug
- 主要语言
- Python
- 星标
- 77.2k
- 派生
- 35.9k
- 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