diff --git a/pyproject.toml b/pyproject.toml index 202cf24b8..861e39c0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -58,6 +58,7 @@ before-all = ''' brew install wget zlib gcc if [[ $CIBW_ARCHS == *"arm"* ]]; then wget https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.5.0/libscip-macos-arm.zip -O scip.zip + export MACOSX_DEPLOYMENT_TARGET=14.0 else wget https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.5.0/libscip-macos.zip -O scip.zip export MACOSX_DEPLOYMENT_TARGET=13.0 @@ -66,11 +67,17 @@ unzip scip.zip mv scip_install src/scip ''' environment = {SCIPOPTDIR="$(pwd)/src/scip", LD_LIBRARY_PATH="$(pwd)/src/scip/lib:LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/src/scip/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/src/scip/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/src/scip/lib/pkgconfig:$PKG_CONFIG_PATH", RELEASE="true"} -repair-wheel-command = [ - "export MACOSX_DEPLOYMENT_TARGET=13.0", - "delocate-listdeps {wheel}", - "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}", -] +repair-wheel-command = ''' +#!/bin/bash +if [[ $CIBW_ARCHS == *"arm"* ]]; then + export MACOSX_DEPLOYMENT_TARGET=14.0 + delocate-listdeps {wheel} + delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel} +else + export MACOSX_DEPLOYMENT_TARGET=13.0 + delocate-listdeps {wheel} + delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel} +''' [tool.cibuildwheel.windows]