Skip to content

Commit 5497b7c

Browse files
committed
Expand repair-wheel-command
1 parent 264d279 commit 5497b7c

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

pyproject.toml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ before-all = '''
5858
brew install wget zlib gcc
5959
if [[ $CIBW_ARCHS == *"arm"* ]]; then
6060
wget https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.5.0/libscip-macos-arm.zip -O scip.zip
61+
export MACOSX_DEPLOYMENT_TARGET=14.0
6162
else
6263
wget https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.5.0/libscip-macos.zip -O scip.zip
6364
export MACOSX_DEPLOYMENT_TARGET=13.0
@@ -66,11 +67,17 @@ unzip scip.zip
6667
mv scip_install src/scip
6768
'''
6869
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"}
69-
repair-wheel-command = [
70-
"export MACOSX_DEPLOYMENT_TARGET=13.0",
71-
"delocate-listdeps {wheel}",
72-
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}",
73-
]
70+
repair-wheel-command = '''
71+
#!/bin/bash
72+
if [[ $CIBW_ARCHS == *"arm"* ]]; then
73+
export MACOSX_DEPLOYMENT_TARGET=14.0
74+
delocate-listdeps {wheel}
75+
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
76+
else
77+
export MACOSX_DEPLOYMENT_TARGET=13.0
78+
delocate-listdeps {wheel}
79+
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
80+
'''
7481

7582

7683
[tool.cibuildwheel.windows]

0 commit comments

Comments
 (0)