summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-06-22 00:04:35 +0200
committerMichał Górny <mgorny@gentoo.org>2021-06-22 00:04:52 +0200
commitdfcf995c2d729f04fdfbec8d23b60b4a6cbc579b (patch)
tree92f5058429e708f5d911c08bca015b4988f3306d /dev-python/pythran
parentsys-devel/crossdev: bump up to 20210621 (diff)
downloadgentoo-dfcf995c2d729f04fdfbec8d23b60b4a6cbc579b.tar.gz
gentoo-dfcf995c2d729f04fdfbec8d23b60b4a6cbc579b.tar.bz2
gentoo-dfcf995c2d729f04fdfbec8d23b60b4a6cbc579b.zip
dev-python/pythran: Run tests in parallel
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pythran')
-rw-r--r--dev-python/pythran/pythran-0.9.11.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-python/pythran/pythran-0.9.11.ebuild b/dev-python/pythran/pythran-0.9.11.ebuild
index 20e8e8c81ad8..1e70b667c252 100644
--- a/dev-python/pythran/pythran-0.9.11.ebuild
+++ b/dev-python/pythran/pythran-0.9.11.ebuild
@@ -4,7 +4,7 @@
EAPI=7
PYTHON_COMPAT=( python3_{8..9} )
-inherit distutils-r1
+inherit distutils-r1 multiprocessing
DESCRIPTION="Ahead of Time compiler for numeric kernels"
HOMEPAGE="
@@ -26,6 +26,10 @@ RDEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
>=dev-python/ply-3.4[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ )"
distutils_enable_tests pytest
@@ -36,5 +40,5 @@ src_prepare() {
python_test() {
local -x COLUMNS=80
- epytest
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
}