We need the _version.py file in any case, even if we use the cache.

This commit is contained in:
Florian Sesser 2024-11-08 12:50:47 +00:00
parent 151cd2b13a
commit 0d196efc31

View File

@ -257,11 +257,12 @@ jobs:
# doesn't cost us anything extra and saves us effort next time.
name: "(Maybe) Build Wheels"
command: |
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
if ((Test-Path .\wheelhouse) -and (Test-Path .\wheelhouse\*)) {
echo "Found populated wheelhouse, skipping wheel building."
} else {
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]
}