Skip to content

Conversation

@mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Oct 27, 2023

No description provided.

@mkoeppe mkoeppe force-pushed the cibuildwheel_windows branch from 2037eac to abbf73d Compare October 27, 2023 03:37
@mkoeppe mkoeppe force-pushed the cibuildwheel_windows branch from abbf73d to 4bf5719 Compare October 27, 2023 03:39
@tkralphs
Copy link
Member

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

  • Build Cbc more or less using the formula here,
  • Set COIN_INSTALL_DIR to the prefix of that build
  • 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.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants