Skip to content

Conversation

@tobiasdiez
Copy link
Contributor

I had trouble with building wheels ("Python executable could not be found") and fixed it by specifying the vsenv option for cibuildwheel. A similar flag is used by numpy as well, so this is probably indeed needed.

I had trouble with building wheels ("Python executable could not be found") and fixed it by specifying the `vsenv` option for cibuildwheel. A similar flag is used by numpy as well, so this is probably indeed needed.
@rgommers rgommers added the documentation Improvements or additions to documentation label Oct 23, 2025
Copy link
Contributor

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tobiasdiez. This is helpful, I've seen other people need this. I suggest one tweak.

[tool.meson-python.args]
setup = ['--vsenv']
# In case you want to build Windows wheels using cibuildwheel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It now looks like a single example, however the cibuildwheel content is only needed if the setup = ['--vsenv'] above isn't desirable to set by default. So I suggest making the next two lines a separate code block, and change this code comment to a sentence: "And in case you don't want to set --vsenv as the default, but do want to build Windows wheels in CI using cibuildwheel:".

@rgommers rgommers changed the title Add instructions for cibuildwheel to support Windows wheels DOC: add instructions for cibuildwheel to support Windows wheels Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants