fix: address Python release review feedback

This commit is contained in:
Yichen Jiang
2026-08-11 20:09:33 +08:00
parent bc51510a77
commit 49768e1f8d
30 changed files with 318 additions and 92 deletions
+1 -15
View File
@@ -60,21 +60,7 @@ sdk-wheel:
fi
- |
if [ "$PLATFORM" = macos-arm64 ]; then
minos="$(otool -l "$EXE" | awk '/LC_BUILD_VERSION/{seen=1; next} seen && /minos/{print $2; exit}')"
test -n "$minos"
python3 - "$minos" <<'PY'
import sys
actual = tuple(int(part) for part in sys.argv[1].split("."))
claimed = (14, 0)
width = max(len(actual), len(claimed))
actual += (0,) * (width - len(actual))
claimed += (0,) * (width - len(claimed))
if actual > claimed:
raise SystemExit(
f"Executable requires macOS {sys.argv[1]} but the wheel claims macosx_14_0"
)
PY
python3 scripts/check-macos-deployment-target.py "$EXE" "$EXE-spawn-helper"
fi
artifacts:
paths: [release/$PLATFORM/*.whl]