2 # This helper is for templates installing python3-only modules.
6 python3 setup.py build
${make_build_args}
11 if python3
-c 'import pytest' >/dev
/null
2>&1; then
12 if python3
-c 'import xdist' >/dev
/null
2>&1; then
13 testjobs
="-n $XBPS_MAKEJOBS"
15 PYTHONPATH
="$(cd build/lib* && pwd)" PY_IGNORE_IMPORTMISMATCH
=1 \
17 python3
-m pytest
${testjobs} ${make_check_args} ${make_check_target}
19 # Fall back to deprecated setup.py test orchestration without pytest
20 if [ -z "$make_check_target" ]; then
21 if ! python3 setup.py
--help test >/dev
/null
2>&1; then
22 msg_warn
"No command 'test' defined by setup.py.\n"
27 : ${make_check_target:=test}
28 ${make_check_pre} python3 setup.py ${make_check_target} ${make_check_args}
33 python3 setup.py
install --prefix=/usr
--root=${DESTDIR} ${make_install_args}