diff --git a/ops/pipeline/build-python-wheels-macos.sh b/ops/pipeline/build-python-wheels-macos.sh index 9c04032d8587..97daf50b35f6 100755 --- a/ops/pipeline/build-python-wheels-macos.sh +++ b/ops/pipeline/build-python-wheels-macos.sh @@ -39,11 +39,7 @@ fi # Tell delocate-wheel to not vendor libomp.dylib into the wheel export CIBW_REPAIR_WHEEL_COMMAND_MACOS="delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel} --exclude libomp.dylib" +brew unlink llvm@18 || true + python -m pip install cibuildwheel python -m cibuildwheel python-package --output-dir wheelhouse - -# List dependencies of libxgboost.dylib -mkdir tmp -unzip -j wheelhouse/xgboost-*.whl xgboost/lib/libxgboost.dylib -d tmp -otool -L tmp/libxgboost.dylib -rm -rf tmp