Skip to content

Commit

Permalink
pyproject.toml (tool.cibuildwheel): Try to update build-aux in Data/S…
Browse files Browse the repository at this point in the history
…ample
  • Loading branch information
mkoeppe committed Jun 24, 2024
1 parent dd8fa48 commit 9bd324b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ build-backend = "setuptools.build_meta"
# Use --no-third-party to avoid linking in GLPK.
# The resulting binary would not be distributable.
before-all = """
set -x
apt-get install --yes wget || yum install -y wget || brew install bash coreutils
wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
sed -i.bak '/invoke_make/s/install/-j1 install/' coinbrew
Expand All @@ -22,7 +23,7 @@ before-all = """
arm64) config_args="--build=arm-apple-darwin";;
aarch64) config_args="--build=aarch64-unknown-linux-gnu";;
esac
eval ./coinbrew build Cbc@2.10.11 --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 $config_args || echo ignoring errors
./coinbrew fetch Cbc@2.10.11 --no-third-party && cp Cbc/config.guess Cbc/config.sub Data/Sample/ && eval ./coinbrew build Cbc --no-third-party --parallel-jobs 16 --prefix=$(pwd)/local --verbosity 4 $config_args || echo ignoring errors
cat build/Data/Sample/1.2.12/config.log
"""
environment = { PATH="$(pwd)/local/bin:$PATH", LD_LIBRARY_PATH="$(pwd)/local/lib:$LD_LIBRARY_PATH", PKG_CONFIG_PATH="$(pwd)/local/lib/pkgconfig:$PKG_CONFIG_PATH", CIBW_ARCHS="$CIBW_ARCHS" }
Expand Down

0 comments on commit 9bd324b

Please sign in to comment.