Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cibuildwheel windows #187

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

mkoeppe
Copy link
Contributor

@mkoeppe mkoeppe commented Oct 27, 2023

No description provided.

@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