From ab3c9f4ae598dd92df113c0fc0f317a541e69ffe 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 autoreconf Data/Sample --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f1bc587..1a583795 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +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 = """ - apt-get install --yes wget || yum install -y wget || brew install bash coreutils + apt-get install --yes wget autoconf automake libtool || yum install -y wget autoconf automake libtool || brew install bash coreutils autoconf automake libtool wget https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew sed -i.bak '/invoke_make/s/install/-j1 install/' coinbrew chmod +x coinbrew @@ -22,7 +22,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 && (cd Data/Sample && autoreconf -fi) && eval ./coinbrew build Cbc@2.10.11 --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" }