diff --git a/common/build-style/python3-pep517.sh b/common/build-style/python3-pep517.sh index 2d5ff7caf34..5ec20dd117f 100644 --- a/common/build-style/python3-pep517.sh +++ b/common/build-style/python3-pep517.sh @@ -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() {