diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 74a4e90880c4..364c67b43538 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -162,12 +162,12 @@ jobs: # remove libgfortran from location used for linking, to check wheel has # bundled things correctly - PREFIX="sudo rm -rf /opt/gfortran-darwin-x86_64-native &&\ - rm /usr/local/lib/libgfortran.dylib /usr/local/lib/libgfortran.5.dylib && " + POSTFIX=" && sudo rm -rf /opt/gfortran-darwin-x86_64-native &&\ + rm /usr/local/lib/libgfortran.dylib /usr/local/lib/libgfortran.5.dylib" fi CIBW="$PREFIX delocate-listdeps {wheel} &&\ $PREFIX delocate-wheel $EXCLUDE --require-archs \ - {delocate_archs} -w {dest_dir} {wheel}" + {delocate_archs} -w {dest_dir} {wheel} $POSTFIX" # Rename x86 Accelerate wheel to test on macOS 13 runner if [[ ${{ matrix.buildplat[0] }} == 'macos-13' && ${{ matrix.buildplat[4] }} == '14.0' ]]; then CIBW+=" && mv {dest_dir}/\$(basename {wheel}) \