fix(ci): pass --pre to pip download for winsdk beta wheels
Release / create-release (push) Successful in 24s
Lint & Test / test (push) Successful in 30s
Release / build-linux (push) Successful in 38s
Release / build-windows (push) Failing after 43s

The single pip-download call regressed winsdk fetching because pip
won't pick up pre-releases (1.0.0bNN) without --pre. The old per-dep
loop hid this via its fallback branch. Add --pre to both branches.
This commit is contained in:
2026-04-07 19:36:49 +03:00
parent 60f287bb40
commit 760c3df90c
+4 -3
View File
@@ -73,12 +73,13 @@ ALL_DEPS=("${CORE_DEPS[@]}" "${WIN_DEPS[@]}" "${VIS_DEPS[@]}")
if [ -d "$WHEEL_DIR" ] && [ -n "$(ls -A "$WHEEL_DIR" 2>/dev/null)" ]; then
echo "Using cached wheels from $WHEEL_DIR"
else
# Single pip-download call — pip resolves all deps together, much faster than a loop
pip download --quiet --dest "$WHEEL_DIR" \
# Single pip-download call — pip resolves all deps together, much faster than a loop.
# --pre is required because winsdk only ships beta wheels (1.0.0bNN).
pip download --pre --quiet --dest "$WHEEL_DIR" \
--platform win_amd64 --python-version "${PYTHON_SHORT}" \
--implementation cp --only-binary :all: \
"${ALL_DEPS[@]}" 2>/dev/null || \
pip download --quiet --dest "$WHEEL_DIR" \
pip download --pre --quiet --dest "$WHEEL_DIR" \
--only-binary :all: \
"${ALL_DEPS[@]}"
fi