Repository navigation
[6240] CD on Debian 13:预装 python3-pip 与 aqtinstall,修复 Config 失败 - #4782
Merged
Merged
Conversation
cd-debian13 的 Install Base Tools 只装了 python3,Debian trixie 的 python3 不带 pip 且受 PEP 668 保护。xmake 的 aqt 包在 Linux 上走 `python3 -m pip install aqtinstall`,于是 Config 报 `No module named pip` 后退出 255,Build 及后续步骤 全部跳过。 对齐 ci-debian13 的做法:安装 python3-pip/python3-venv,并预装 aqtinstall。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
v2026.3.9-rc.2的 Debian 13 CD(run 43355133111)在 Config 步骤直接失败(exit 255),Build / Determine Version / Generate Debian Package / Upload / Release 全部被跳过,没有产出安装包。失败日志:
原因
cd-debian13.yml的Install Base Tools只装了python3,而 Debian trixie 的python3既不附带pip/ensurepip,又受 PEP 668 externally-managed 保护。xmake-repo 的
aqt包在 Linux 上声明add_deps("7zip", "python >=3.6"),on_install里执行python3 -m pip install aqtinstall;由于qt6base在 Debian 上需要aqt下载 Qt,于是整条链在 Config 阶段炸掉。ci-debian13.yml早已处理过这个坑(安装python3-pip、预装aqtinstall),CD 没有同步 —— 这也是为什么 rc.1 能过(那次 xmake 判定系统 python 不可用,现场编译了自带的 Python 3.14.3,aqtinstall装进了那个带 pip 的解释器)、rc.2 挂掉(xmake 接受了/usr/bin/python3,跳过了自编译 Python)。改动
.github/workflows/cd-debian13.yml,对齐 CI 的做法:Install Base Tools增加python3-pip、python3-venvaqtinstall(--break-system-packages必须有,Debian trixie 是 PEP 668 环境)预装后 xmake 探测
aqt时直接命中系统已装版本,不再走aqt包的on_install,既避免失败,也省掉现场编译 Python 3.14.3 的约 1 分钟。验证
workflow_dispatch上跑一次 CD 确认 Config → Build → 打包全链路通过备注:本 PR 只修复流水线配置,
v2026.3.9-rc.2的产物需重新触发 CD 才会生成。