@@ -100,7 +100,15 @@ jobs:
100
100
CIBW_AFTER_BUILD : >-
101
101
twine check {wheel} &&
102
102
python {package}/ci/check_wheel_licenses.py {wheel}
103
- CIBW_CONFIG_SETTINGS : setup-args="--vsenv"
103
+ # On Windows, we explicitly request MSVC compilers (as GitHub Action runners have
104
+ # MinGW on PATH that would be picked otherwise), switch to a static build for
105
+ # runtimes, but use dynamic linking for `VCRUNTIME140.dll`, `VCRUNTIME140_1.dll`,
106
+ # and the UCRT. This avoids requiring specific versions of `MSVCP140.dll`, while
107
+ # keeping shared state with the rest of the Python process/extensions.
108
+ CIBW_CONFIG_SETTINGS_WINDOWS : >-
109
+ setup-args="--vsenv"
110
+ setup-args="-Db_vscrt=mt"
111
+ setup-args="-Dcpp_link_args=['ucrt.lib','vcruntime.lib','/nodefaultlib:libucrt.lib','/nodefaultlib:libvcruntime.lib']"
104
112
CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
105
113
CIBW_SKIP : " *-musllinux_aarch64"
106
114
CIBW_TEST_COMMAND : >-
@@ -144,7 +152,6 @@ jobs:
144
152
CIBW_SKIP : " cp313t-win_amd64 *-musllinux_aarch64"
145
153
CIBW_BUILD_FRONTEND :
146
154
" pip; args: --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
147
- CIBW_PRERELEASE_PYTHONS : true
148
155
CIBW_FREE_THREADED_SUPPORT : true
149
156
# No free-threading wheels available for aarch64 on Pillow.
150
157
CIBW_TEST_SKIP : " cp313t-manylinux_aarch64"
0 commit comments