common/build-style/python3-pep517.sh: use meson cross files by default

This commit is contained in:
Andrew J. Hesford 2023-09-21 11:01:24 -04:00
parent 99d8d3e26f
commit f2ac1733dc
1 changed files with 12 additions and 2 deletions

View File

@ -4,8 +4,18 @@
do_build() {
: ${make_build_target:=.}
: ${make_build_args:=--no-isolation --wheel}
python3 -m build ${make_build_args} ${make_build_target}
if [ "${CROSS_BUILD}" ] && [[ "${build_helper}" = *meson* ]]; then
local mcross="-Csetup-args=--cross-file=${XBPS_WRAPPERDIR}/meson"
make_build_args+=" ${mcross}/xbps_meson.cross"
if [[ "${build_helper}" = *numpy* ]]; then
make_build_args+=" ${mcross}/xbps_numpy.cross"
fi
fi
python3 -m build --no-isolation --wheel \
${make_build_args} ${make_build_target}
}
do_check() {