Work around Windows 2022 _version.py writing race

This commit is contained in:
Florian Sesser 2024-10-22 17:46:28 +00:00
parent e49eba3df0
commit 2efa78e426

View File

@ -260,7 +260,8 @@ jobs:
if ((Test-Path .\wheelhouse) -and (Test-Path .\wheelhouse\*)) {
echo "Found populated wheelhouse, skipping wheel building."
} else {
python -m pip install wheel
python -m pip install wheel setuptools # Windows 2022 server py311 doesn't have setuptools?
python setup.py update_version # Cheat to win a race on Windows 2022 about writing _version.py
python -m pip wheel --wheel-dir $env:PIP_FIND_LINKS .[testenv] .[test]
}