From 3395c3a3ba07c1a28639074b0a764c6d6efab48f Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Mon, 24 Apr 2023 10:22:49 +1100 Subject: [PATCH] update unix build script for stricter meson-python Co-Authored-By: Isuru Fernando Co-Authored-By: Ralf Gommers --- recipe/build.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/recipe/build.sh b/recipe/build.sh index 030561f9..ac122daa 100644 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -3,13 +3,12 @@ set -ex mkdir builddir -# need to run meson first for cross-compilation case -$PYTHON $(which meson) setup ${MESON_ARGS} \ - -Dblas=blas \ - -Dlapack=lapack \ - -Duse-g77-abi=true \ - builddir || (cat builddir/meson-logs/meson-log.txt && exit 1) - # -wnx flags mean: --wheel --no-isolation --skip-dependency-check -$PYTHON -m build -w -n -x -Cbuilddir=builddir +$PYTHON -m build -w -n -x \ + -Cbuilddir=builddir \ + -Csetup-args=-Dblas=blas \ + -Csetup-args=-Dlapack=lapack \ + -Csetup-args=-Duse-g77-abi=true \ + -Csetup-args=${MESON_ARGS// / -Csetup-args=} \ + || (cat builddir/meson-logs/meson-log.txt && exit 1) pip install dist/scipy*.whl