Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- Return `MatrixGenExpr` in `buildGenExprObj` instead of `MatrixExpr`
- Plugins now hold strong references to their `Model` instead of `weakref.proxy`, fixing `ReferenceError` during cleanup callbacks (#1193)
- Made `test_tree` robust to SCIP solver improvements by asserting visited node depths instead of node count (#1206)
- Lower macOS wheel `MACOSX_DEPLOYMENT_TARGET` to 11.0 and patch bundled SCIP/SoPlex/GCG and GCC runtime dylibs to match, fixing `delocate-wheel` failures on macos-15 runners and broadening installability for downstream consumers (e.g. pixi/uv-based environments)
### Changed
Comment thread
Joao-Dionisio marked this conversation as resolved.
- Return NotImplemented for `Expr` and `GenExpr` operators if they can't handle input types in the calculation
- Speed up `constant * Expr` via C-level API
Expand Down
32 changes: 20 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,36 @@ skip="pp* cp36* cp37*"
before-all = '''
#!/bin/bash
brew install wget zlib gcc
export MACOSX_DEPLOYMENT_TARGET=11.0
if [[ $CIBW_ARCHS == *"arm"* ]]; then
wget https://github.com/scipopt/scipoptsuite-deploy/releases/download/v0.12.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.12.0/libscip-macos-intel.zip -O scip.zip
export MACOSX_DEPLOYMENT_TARGET=14.0
fi
unzip scip.zip
mv scip_install src/scip
# The bundled SCIP/SoPlex/GCG dylibs are stamped with LC_BUILD_VERSION 14.0 and
# Homebrew gcc runtime libs on macos-15 runners with 15.0. delocate refuses to
# bundle libs whose minos exceeds the wheel's deployment target. Rewrite the
# load command to MACOSX_DEPLOYMENT_TARGET; these libs do not use OS-version-
# gated APIs, so the rewrite is safe in practice.
find src/scip/lib -type f -name "*.dylib" 2>/dev/null | while read lib; do
vtool -set-build-version macos "$MACOSX_DEPLOYMENT_TARGET" "$MACOSX_DEPLOYMENT_TARGET" -replace -output "$lib" "$lib" 2>/dev/null || true
codesign --force --sign - "$lib" 2>/dev/null || true
done
Comment thread
Joao-Dionisio marked this conversation as resolved.
for prefix in /usr/local /opt/homebrew; do
find "$prefix/Cellar" -type f \( -name "libgfortran.*.dylib" -o -name "libquadmath.*.dylib" -o -name "libstdc++.*.dylib" -o -name "libgcc_s.*.dylib" \) 2>/dev/null | while read lib; do
vtool -set-build-version macos "$MACOSX_DEPLOYMENT_TARGET" "$MACOSX_DEPLOYMENT_TARGET" -replace -output "$lib" "$lib" 2>/dev/null || true
codesign --force --sign - "$lib" 2>/dev/null || true
done
done
'''
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"}
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", MACOSX_DEPLOYMENT_TARGET="11.0", RELEASE="true"}
Comment thread
Joao-Dionisio marked this conversation as resolved.
repair-wheel-command = '''
bash -c '
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=14.0
delocate-listdeps {wheel}
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
fi
export MACOSX_DEPLOYMENT_TARGET=11.0
delocate-listdeps {wheel}
delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}
'
'''

Expand Down
Loading