diff --git a/common/build-style/python3-module.sh b/common/build-style/python3-module.sh index 9cae520b1d0..8bf3433ddd6 100644 --- a/common/build-style/python3-module.sh +++ b/common/build-style/python3-module.sh @@ -17,6 +17,18 @@ do_build() { fi } +do_check() { + if [ -z "$make_check_target" ]; then + if ! python3 setup.py --help test >/dev/null 2>&1; then + msg_warn "No command 'test' defined by setup.py.\n" + return 0 + fi + fi + + : ${make_check_target:=test} + python3 setup.py ${make_check_target} ${make_check_args} +} + do_install() { if [ -n "$CROSS_BUILD" ]; then PYPREFIX="$XBPS_CROSS_BASE"