fix: address Python release review feedback
This commit is contained in:
+1
-15
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user