From 9bd324ba22bbc75675080ee3bb288c2d38d63f52 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 23 Jun 2024 19:04:27 -0700 Subject: [PATCH] pyproject.toml (tool.cibuildwheel): Try to update build-aux in Data/Sample --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1f1bc587..25a3df13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 @@ -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" }