Skip to content

Commit

Permalink
update unix build script for stricter meson-python
Browse files Browse the repository at this point in the history
Co-Authored-By: Isuru Fernando <isuruf@gmail.com>
Co-Authored-By: Ralf Gommers <ralf.gommers@gmail.com>
  • Loading branch information
3 people committed Apr 23, 2023
1 parent 453d160 commit 3395c3a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3395c3a

Please sign in to comment.