summaryrefslogtreecommitdiff
path: root/eclass/python-utils-r1.eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-03 20:16:30 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-07 06:29:07 +0100
commitefb3420408bcf988abe78f92ab8aa93069dba566 (patch)
treecc50484b6b8611f473e81c3b3c773e6699ea9535 /eclass/python-utils-r1.eclass
parent186cdb9d71af03645861ff0cc08ded5eff5fd0c0 (diff)
downloadgentoo-efb3420408bcf988abe78f92ab8aa93069dba566.tar.gz
gentoo-efb3420408bcf988abe78f92ab8aa93069dba566.tar.bz2
gentoo-efb3420408bcf988abe78f92ab8aa93069dba566.zip
distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is set
Make `distutils_enable_tests pytest` automatically add the `dev-python/pytest-xdist` dependency if `EPYTEST_XDIST` is set. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 48963728cc2f..80abe974f9df 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1311,7 +1311,9 @@ _python_check_occluded_packages() {
# @DEFAULT_UNSET
# @DESCRIPTION:
# If set to a non-empty value, enables running tests in parallel
-# via pytest-xdist plugin.
+# via pytest-xdist plugin. If this variable is set prior to calling
+# distutils_enable_tests in distutils-r1, a test dependency
+# on dev-python/pytest-xdist is added automatically.
# @ECLASS_VARIABLE: EPYTEST_JOBS
# @USER_VARIABLE