New comment by classabbyamp on void-packages repository https://github.com/void-linux/void-packages/pull/37099#issuecomment-1126247483 Comment: something like this works in my testing ```diff --- a/common/build-style/python3-module.sh +++ b/common/build-style/python3-module.sh @@ -25,9 +25,14 @@ do_build() { do_check() { if python3 -c 'import pytest' >/dev/null 2>&1; then + if python3 -c 'import xdist' >/dev/null 2>&1; then + makejobs="-n $XBPS_MAKEJOBS" + else + makejobs= + fi PYTHONPATH="$(cd build/lib* && pwd)" \ ${make_check_pre} \ - python3 -m pytest ${make_check_args} ${make_check_target} + python3 -m pytest ${makejobs} ${make_check_args} ${make_check_target} else # Fall back to deprecated setup.py test orchestration without pytest if [ -z "$make_check_target" ]; then ```