From 2efa78e426040c0d442fcc9d9da46c823ea29d01 Mon Sep 17 00:00:00 2001 From: Florian Sesser Date: Tue, 22 Oct 2024 17:46:28 +0000 Subject: [PATCH] Work around Windows 2022 _version.py writing race --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7f9e0c724..c4a6adf16 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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] }