Skip to content

Commit 92f7f3e

Browse files
committed
Exclude the C ABI library from delvewheel repair
cibuildwheel runs delvewheel on Windows by default, and it cannot find the DLL the wheel already ships. The same change is in python-project-templates/base#223. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent e31bd8f commit 92f7f3e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} --exclud
101101
[tool.cibuildwheel.windows]
102102
archs = "AMD64"
103103
skip = "*win32 *arm64"
104+
# The C ABI library ships inside the wheel; delvewheel must not look for it on PATH.
105+
repair-wheel-command = "delvewheel repair --exclude libpython_template_cpp.dll -w {dest_dir} {wheel}"
104106

105107
[tool.cibuildwheel.pyodide]
106108
test-command = "python -m pytest -vvv --pyargs python_template_cpp.tests"

0 commit comments

Comments
 (0)