Skip to content

Commit e1a6cba

Browse files
authored
Add instructions for cibuildwheel to support Windows wheels
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.
1 parent 8d50078 commit e1a6cba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/how-to-guides/meson-args.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ permanently in the project's ``pyproject.toml``:
190190
[tool.meson-python.args]
191191
setup = ['--vsenv']
192192
193+
# In case you want to build Windows wheels using cibuildwheel
194+
[tool.cibuildwheel.windows]
195+
config-settings = { setup-args = ["--vsenv"] }
196+
193197
To set this option temporarily at build-time:
194198

195199
.. tab-set::

0 commit comments

Comments
 (0)