From e1a6cba22db024c413f5d3d34cbe0142f36c7e7d Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Sun, 21 Sep 2025 16:23:53 +0800 Subject: [PATCH] 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. --- docs/how-to-guides/meson-args.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/how-to-guides/meson-args.rst b/docs/how-to-guides/meson-args.rst index 87ee68e1d..c8aa8751c 100644 --- a/docs/how-to-guides/meson-args.rst +++ b/docs/how-to-guides/meson-args.rst @@ -190,6 +190,10 @@ permanently in the project's ``pyproject.toml``: [tool.meson-python.args] setup = ['--vsenv'] + # In case you want to build Windows wheels using cibuildwheel + [tool.cibuildwheel.windows] + config-settings = { setup-args = ["--vsenv"] } + To set this option temporarily at build-time: .. tab-set::