Skip to content

Commit

Permalink
Try using delvewheel on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
emlowe authored Jan 22, 2024
1 parent 3a70976 commit 4225d71
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
"""

0 comments on commit 4225d71

Please sign in to comment.