common/build-style/python3-pep517.sh: use meson cross files by default
This commit is contained in:
parent
99d8d3e26f
commit
f2ac1733dc
1 changed files with 12 additions and 2 deletions
|
@ -4,8 +4,18 @@
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
: ${make_build_target:=.}
|
: ${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() {
|
do_check() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue