Skip to content

Commit 7b970bc

Browse files
tobiasdiezrgommers
andcommitted
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. Co-authored-by: Ralf Gommers <[email protected]>
1 parent 2a4e398 commit 7b970bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,14 @@ permanently in the project's ``pyproject.toml``:
190190
[tool.meson-python.args]
191191
setup = ['--vsenv']
192192
193+
And in case you don't want to set ``--vsenv`` as the default, but do want to
194+
build Windows wheels with MSVC in CI using cibuildwheel:
195+
196+
.. code-block:: toml
197+
198+
[tool.cibuildwheel.windows]
199+
config-settings = { setup-args = ["--vsenv"] }
200+
193201
To set this option temporarily at build-time:
194202

195203
.. tab-set::

0 commit comments

Comments
 (0)