diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-11-16 14:12:23 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-11-16 14:12:44 +0100 |
commit | 5d317f7ac973875931dac437daba4fc388e4a359 (patch) | |
tree | 193a0946ac5014d116bbfcf372de2f532bf956b2 /dev-python/mypy | |
parent | www-client/firefox: enable wasm on 132.0.2 (diff) | |
download | gentoo-5d317f7ac973875931dac437daba4fc388e4a359.tar.gz gentoo-5d317f7ac973875931dac437daba4fc388e4a359.tar.bz2 gentoo-5d317f7ac973875931dac437daba4fc388e4a359.zip |
dev-python/mypy: Fix testing with EPYTEST_JOBS=1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/mypy')
-rw-r--r-- | dev-python/mypy/mypy-1.13.0.ebuild | 7 |
1 files changed, 7 insertions, 0 deletions
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 |