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.
Comment on lines +193 to +195
# In case you want to build Windows wheels using cibuildwheel
[tool.cibuildwheel.windows]
config-settings = { setup-args = ["--vsenv"] }

Choose a reason for hiding this comment

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

I think this won't properly work when you are building the wheel on cygwin/msys2

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is true. But since the whole section was about MSVC, I saw little risk of someone adding this option while actually building the wheel on msys2. Do you think this needs further clarification, eg in the comment above the snippet?

Choose a reason for hiding this comment

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

Oh my bad, i didnt realized that it was part of a MSVC section

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