sync: update from private repo (2336949a)
CI / build-and-test (push) Canceled after 0s

This commit is contained in:
oss-sync
2026-09-17 11:29:31 +00:00
parent 28f74c4e37
commit 57702b4f34
2139 changed files with 321270 additions and 17494 deletions
+13 -2
View File
@@ -47,10 +47,16 @@ if $PIP install --break-system-packages -r "$REQ"; then
elif $PIP install -r "$REQ"; then
:
else
soft_fail "pip install failed. If this is a permission error, retry as: sudo $PIP install --break-system-packages -r runtime/python-requirements.txt"
# 導入に失敗しても、ここでは抜けない。**何が足りないかを出してから**抜ける。
# 以前はここで即座に終わっていたので、ログに残るのが「入らなかった」だけで、
# どのパッケージが欠けたのか誰にも分からなかった。pip は 1 件失敗すると
# そこで全部やめるため、要求ファイルの後ろ側がまとめて落ちる(実例: 版を
# Python 3.11 以上のものに固定してしまい、3.10 の本番で 8 件が欠けた。
# issue #1088)。
INSTALL_FAILED=1
fi
echo "[prebake-python] done. Verifying imports..."
echo "[prebake-python] Verifying imports..."
if command -v python3 >/dev/null 2>&1; then
python3 - <<'PYEOF' || echo "[prebake-python] WARNING: some packages failed to import (see above)." >&2
import importlib, sys
@@ -76,3 +82,8 @@ if missing:
print(f"[prebake-python] all {len(mods)} packages import OK.")
PYEOF
fi
if [ "${INSTALL_FAILED:-0}" -eq 1 ]; then
soft_fail "pip install failed. If this is a permission error, retry as: sudo $PIP install --break-system-packages -r runtime/python-requirements.txt"
fi