Skip to content

Commit

Permalink
Merge pull request #419 from laurynasas/macos_repair_wheels
Browse files Browse the repository at this point in the history
enable delocate to fix the macos wheels
  • Loading branch information
95-martin-orion authored Jul 6, 2022
2 parents 16f223b + 32eb19f commit 226ba02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_BEFORE_BUILD_MACOS: "brew install libomp llvm"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
# to install latest delocate package
CIBW_DEPENDENCY_VERSIONS: "latest"
# due to package and module name conflict have to temporarily move it away to run tests
CIBW_BEFORE_TEST: mv {package}/qsimcirq /tmp
CIBW_TEST_EXTRAS: "dev"
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/testing_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
CIBW_BEFORE_BUILD_MACOS: "brew install libomp llvm"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
# to install latest delocate package
CIBW_DEPENDENCY_VERSIONS: "latest"
# due to package and module name conflict have to temporarily move it away to run tests
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
CIBW_TEST_EXTRAS: "dev"
Expand Down

0 comments on commit 226ba02

Please sign in to comment.