build-style/python3-module.sh: add do_check
closes #8969 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
e318423403
commit
9291e28d14
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue