From db7056a93a402f98ce7db3240de8e3f9f0112959 Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Wed, 29 May 2024 21:53:07 +0200 Subject: [PATCH] alter cibuildwheel for windows to use delvewheel to repair the wheel --- Core/ClientSMLSWIG/Python/pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/ClientSMLSWIG/Python/pyproject.toml b/Core/ClientSMLSWIG/Python/pyproject.toml index aed8cd2cc7..ac65515223 100644 --- a/Core/ClientSMLSWIG/Python/pyproject.toml +++ b/Core/ClientSMLSWIG/Python/pyproject.toml @@ -139,7 +139,10 @@ test-command = "SOAR_UNIT_TEST_BASE_DIR={project}/out/ python {project}/Core/Cli test-skip = "cp38-macosx_*:arm64" [tool.cibuildwheel.windows] -# For windows we need a slightly different command +# For windows, we need to include msvcp140.dll and vcruntime140_1.dll in the wheel. +before-build = "pip install delvewheel" +repair-wheel-command = "delvewheel repair --ignore-in-wheel -w {dest_dir} {wheel}" +# For windows we need a slightly different test command test-command = """\ set SOAR_UNIT_TEST_BASE_DIR={project}/out/ python {project}/Core/ClientSMLSWIG/Python/TestPythonSML.py