diff --git a/.github/workflows/release_wheels.yml b/.github/workflows/release_wheels.yml index 33550cb7..b209d74e 100644 --- a/.github/workflows/release_wheels.yml +++ b/.github/workflows/release_wheels.yml @@ -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" diff --git a/.github/workflows/testing_wheels.yml b/.github/workflows/testing_wheels.yml index 916f728b..fa54cf51 100644 --- a/.github/workflows/testing_wheels.yml +++ b/.github/workflows/testing_wheels.yml @@ -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"