build-style/python3-module.sh: add do_check

closes #8969

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
Piotr Wójcik 2019-02-20 13:51:47 +01:00 committed by maxice8
parent e318423403
commit 9291e28d14
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B

View file

@ -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"