From 2de2299cb3f9d39b17dd7b23b0a47cf5cc53e2a7 Mon Sep 17 00:00:00 2001 From: "Murilo M. Marinho" Date: Wed, 30 Sep 2026 20:28:09 +0100 Subject: [PATCH] Bundle dqrobotics.dll into the Windows wheels The new smoke test found that the Windows wheels cannot be imported: "ImportError: DLL load failed while importing _core: The specified module could not be found." _core links dqrobotics.dll (installed to C:/dqrobotics/bin), which the wheel did not include, so every Windows job of the publish run on main failed and nothing was published. delvewheel repair bundles it, as auditwheel and delocate do on Linux and macOS. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/publish.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 69815b5..917a895 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -143,6 +143,20 @@ jobs: mv dist/repaired/*.whl dist/ rmdir dist/repaired + # Windows: bundle dqrobotics.dll into the wheel (as auditwheel and + # delocate do on Linux and macOS). Without it, importing _core fails + # with "DLL load failed while importing _core" wherever dqrobotics.dll + # is not on the DLL search path, i.e. on every user's machine. + - name: Repair wheel (Windows, delvewheel) + if: runner.os == 'Windows' + shell: bash + run: | + pip install delvewheel + delvewheel repair --add-path "C:/dqrobotics/bin" -w dist/repaired dist/*.whl + rm -f dist/*.whl + mv dist/repaired/*.whl dist/ + rmdir dist/repaired + # Install the wheel in a clean environment and use it. --no-deps: only # papers.icra2019 needs marinholab-solvers-qpoases, whose wheels do not # cover every platform and Python version; dqrobotics comes from its