commit: 5d317f7ac973875931dac437daba4fc388e4a359 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Nov 16 13:12:23 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Nov 16 13:12:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d317f7a
dev-python/mypy: Fix testing with EPYTEST_JOBS=1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/mypy/mypy-1.13.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/mypy/mypy-1.13.0.ebuild b/dev-python/mypy/mypy-1.13.0.ebuild index efcb38ff536c..11cd237cb444 100644 --- a/dev-python/mypy/mypy-1.13.0.ebuild +++ b/dev-python/mypy/mypy-1.13.0.ebuild @@ -56,6 +56,13 @@ distutils_enable_tests pytest # test files (https://github.com/mypyc/mypyc/issues/1014) export CCACHE_DISABLE=1 +src_prepare() { + distutils-r1_src_prepare + + # don't force pytest-xdist, in case user asked for EPYTEST_JOBS=1 + sed -i -e '/addopts/s:-nauto::' pyproject.toml || die +} + python_compile() { local -x MYPY_USE_MYPYC=$(usex native-extensions 1 0) case ${EPYTHON} in
