commit:     0fe085d7abd16f4ff3ae38ae02c71098904cb845
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 21 13:32:16 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Aug 21 13:35:02 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fe085d7

dev-python/dask: Respect MAKEOPTS for parallel tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/dask/dask-2.23.0.ebuild | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-python/dask/dask-2.23.0.ebuild 
b/dev-python/dask/dask-2.23.0.ebuild
index b4855c7b782..1930b91f340 100644
--- a/dev-python/dask/dask-2.23.0.ebuild
+++ b/dev-python/dask/dask-2.23.0.ebuild
@@ -4,7 +4,7 @@
 EAPI=7
 PYTHON_COMPAT=( python3_{6..9} )
 
-inherit distutils-r1
+inherit distutils-r1 multiprocessing
 
 DESCRIPTION="Task scheduling and blocked algorithms for parallel processing"
 HOMEPAGE="https://dask.org/";
@@ -48,6 +48,7 @@ src_prepare() {
 }
 
 python_test() {
-       pytest -vv -m "not network" -n auto ||
+       pytest -vv -m "not network" \
+               -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" ||
                die "Tests failed with ${EPYTHON}"
 }

Reply via email to