Description
In testing out #23146, I've been unable to fully update cibuildwheel because Windows builds fail. They cannot find msbuild
with cibuildwheel >= 2.4.0. I originally filed this with cibuildwheel (pypa/cibuildwheel#1118), but further investigation shows this is a problem outside of cibuildwheel.
I modified our GitHub Action to only install on Windows, and it fails to build as well. From bisecting cibuildwheel, I know that this came about from setuptools 60, which has the change:
#2896: Setuptools once again makes its local copy of distutils the default. To override, set
SETUPTOOLS_USE_DISTUTILS=stdlib
.
Setting the override variable does fix the build, but I don't think that should be our preferred option.
I think this comes about from our hacky attempt to find a compiler search path:
Lines 528 to 548 in 6296e50
Lines 693 to 705 in 6296e50
but I don't know what we can do to fix it.