1 |
commit: dfcf995c2d729f04fdfbec8d23b60b4a6cbc579b |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 21 22:04:35 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 21 22:04:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfcf995c |
7 |
|
8 |
dev-python/pythran: Run tests in parallel |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pythran/pythran-0.9.11.ebuild | 8 ++++++-- |
13 |
1 file changed, 6 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/pythran/pythran-0.9.11.ebuild b/dev-python/pythran/pythran-0.9.11.ebuild |
16 |
index 20e8e8c81ad..1e70b667c25 100644 |
17 |
--- a/dev-python/pythran/pythran-0.9.11.ebuild |
18 |
+++ b/dev-python/pythran/pythran-0.9.11.ebuild |
19 |
@@ -4,7 +4,7 @@ |
20 |
EAPI=7 |
21 |
|
22 |
PYTHON_COMPAT=( python3_{8..9} ) |
23 |
-inherit distutils-r1 |
24 |
+inherit distutils-r1 multiprocessing |
25 |
|
26 |
DESCRIPTION="Ahead of Time compiler for numeric kernels" |
27 |
HOMEPAGE=" |
28 |
@@ -26,6 +26,10 @@ RDEPEND=" |
29 |
dev-python/numpy[${PYTHON_USEDEP}] |
30 |
>=dev-python/ply-3.4[${PYTHON_USEDEP}] |
31 |
dev-python/six[${PYTHON_USEDEP}]" |
32 |
+BDEPEND=" |
33 |
+ test? ( |
34 |
+ dev-python/pytest-xdist[${PYTHON_USEDEP}] |
35 |
+ )" |
36 |
|
37 |
distutils_enable_tests pytest |
38 |
|
39 |
@@ -36,5 +40,5 @@ src_prepare() { |
40 |
|
41 |
python_test() { |
42 |
local -x COLUMNS=80 |
43 |
- epytest |
44 |
+ epytest -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")" |
45 |
} |