From 615463e10373b265ae898099a34032bf7ca1d808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Mon, 1 Sep 2025 20:17:19 -0400 Subject: [PATCH] ci/python: add support for windows/msvc wheel build --- python/pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python/pyproject.toml b/python/pyproject.toml index 908b1b47..0f1311e1 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -8,6 +8,7 @@ build = [ 'cp3{10,11,12,13}-manylinux_aarch64', 'cp3{11,12,13}-macosx_x86_64', 'cp3{11,12,13}-macosx_arm64', + 'cp3{11,12,13}-win_amd64', ] [tool.cibuildwheel.linux] @@ -38,3 +39,11 @@ before-build = [ ] # Bundle dependent dylibs into the wheel; ensure local libopendht.dylib is found repair-wheel-command = 'DYLD_LIBRARY_PATH=$PWD delocate-wheel -w {dest_dir} {wheel}' + +[tool.cibuildwheel.windows] +# Configure first, then from 'build' directory run: with pipx run cibuildwheel python +before-build = [ + 'pip install cython delvewheel', + 'cmake --build . --config Release --target python', +] +repair-wheel-command = "delvewheel repair -w {dest_dir} {wheel} --add-path ./Release --add-path ./vcpkg_installed/x64-windows-release/bin"