Skip to content

Commit 226ba02

Browse files
Merge pull request #419 from laurynasas/macos_repair_wheels
enable delocate to fix the macos wheels
2 parents 16f223b + 32eb19f commit 226ba02

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release_wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ jobs:
3131
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
3232
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
3333
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
34-
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
35-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
34+
CIBW_BEFORE_BUILD_MACOS: "brew install libomp llvm"
35+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
36+
# to install latest delocate package
37+
CIBW_DEPENDENCY_VERSIONS: "latest"
3638
# due to package and module name conflict have to temporarily move it away to run tests
3739
CIBW_BEFORE_TEST: mv {package}/qsimcirq /tmp
3840
CIBW_TEST_EXTRAS: "dev"

.github/workflows/testing_wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ jobs:
3636
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
3737
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
3838
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
39-
CIBW_BEFORE_BUILD_MACOS: "brew install libomp"
40-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
39+
CIBW_BEFORE_BUILD_MACOS: "brew install libomp llvm"
40+
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
41+
# to install latest delocate package
42+
CIBW_DEPENDENCY_VERSIONS: "latest"
4143
# due to package and module name conflict have to temporarily move it away to run tests
4244
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
4345
CIBW_TEST_EXTRAS: "dev"

0 commit comments

Comments
 (0)