From 4225d71dfe25ec0795abc5c029c927af868b7af8 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Mon, 22 Jan 2024 13:11:12 -0800 Subject: [PATCH] Try using delvewheel on windows --- pyproject.toml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5d4e7631..247d89e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,17 +40,16 @@ environment = {MACOSX_DEPLOYMENT_TARGET="11", SYSTEM_VERSION_COMPAT=0, BUILD_VDF build-verbosity = 0 before-all = "git clone https://github.com/Chia-Network/mpir_gc_x64.git" environment = {BUILD_VDF_CLIENT="N", SETUPTOOLS_USE_DISTUTILS="stdlib"} +before-build = "pip install delvewheel" repair-wheel-command = """ -ls -l mpir_gc_x64 && pip uninstall -y delocate \ -&& pip install git+https://github.com/Chia-Network/delocate.git \ -&& delocate-wheel -v -i mpir_gc_x64/mpir.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_gc.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_broadwell.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_broadwell_avx.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_bulldozer.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_haswell.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_piledriver.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_sandybridge.dll {wheel} \ -&& delocate-wheel -v -i mpir_gc_x64/mpir_skylake_avx.dll {wheel} \ -&& cp {wheel} {dest_dir} \ +delvewheel repair -v -w {dest_dir} {wheel} \ +--add-dll mpir_gc_x64/mpir.dll;\ +mpir_gc_x64/mpir_gc.dll;\ +mpir_gc_x64/mpir_broadwell.dll;\ +mpir_gc_x64/mpir_broadwell_avx.dll;\ +mpir_gc_x64/mpir_bulldozer.dll;\ +mpir_gc_x64/mpir_haswell.dll;\ +mpir_gc_x64/mpir_piledriver.dll;\ +mpir_gc_x64/mpir_sandybridge.dll;\ +mpir_gc_x64/mpir_skylake_avx.dll \ """