For the Windows wheels, we need to build with Visual Studio, which is a whole different beast. I doubt that cibuildhwheel can be used (and may not really be needed anyway, since things are actually a bit easier on Windows). Two possible ways of doing this are
Install micromamba, miniforge3, or the like (I guess?) and create virtual environments for each python version we want with the build package.
Do python -m build in each virtual environment.
Upload wheels to Pypi
Alternatively, we can download the pre-built Visual Studio binary from here and avoid the initial build of Cbc (there is an alpha implementation in coinbrew for downloading binaries, but maybe best to do it manually for now). This did not work for me when trying to build wheels locally on my machine because of some toolset conflict, but it will probably be fine if building the wheel on the exact same runner that Cbc was built on.
For the Windows wheels, we need to build with Visual Studio, which is a whole different beast. I doubt that cibuildhwheel can be used (and may not really be needed anyway, since things are actually a bit easier on Windows). Two possible ways of doing this are
COIN_INSTALL_DIR
to the prefix of that buildbuild
package.python -m build
in each virtual environment.Alternatively, we can download the pre-built Visual Studio binary from here and avoid the initial build of Cbc (there is an alpha implementation in coinbrew for downloading binaries, but maybe best to do it manually for now). This did not work for me when trying to build wheels locally on my machine because of some toolset conflict, but it will probably be fine if building the wheel on the exact same runner that Cbc was built on.