diff --git a/dev-python/yarl/yarl-0.7.0.ebuild b/dev-python/yarl/yarl-0.7.0.ebuild index 260259aa619ae..07320e7adbc59 100644 --- a/dev-python/yarl/yarl-0.7.0.ebuild +++ b/dev-python/yarl/yarl-0.7.0.ebuild @@ -19,6 +19,12 @@ IUSE="test" DEPEND="test? ( dev-python/pytest-runner[${PYTHON_USEDEP}] ) dev-python/setuptools[${PYTHON_USEDEP}]" +src_prepare() { + # pytest-runner is not really required unless tests are enabled + sed -e "s:'pytest-runner',\\?::" -i setup.py || die + distutils-r1_src_prepare +} + python_test() { esetup.py test || die }