coin-or / CyLP

A Python interface to CLP, CBC, and CGL to solve LPs and MIPs.
Other
182 stars 69 forks source link

cibuildwheel windows #187

Open mkoeppe opened 1 year ago

tkralphs commented 1 year ago

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

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.

mkoeppe commented 1 year ago

Thanks a lot for the references. I'll try with the binaries.