Several pytest ebuilds include dev-python/setuptools as a build-time dependency. However, imports from the module "pkg_resources" which is part of setuptools[1]. Therefore, if setuptools is not installed on the system, pytest cannot be run, neither with "python -m pytest", not with the "pytest" command. The issue is reproducible with pytest-3.0.3. The following version have not been checked, but are probably also affected: dev-python/pytest-3.0.6 dev-python/pytest-3.0.7 dev-python/pytest-3.1.2 dev-python/pytest-3.2.2 dev-python/pytest-2.7.2 [1] https://setuptools.readthedocs.io/en/latest/pkg_resources.html Reproducible: Always Steps to Reproduce: 1. Install dev-python/pytest 2. Remove dev-python/setuptools 3. Run "pytest"
I am currently working to patch this.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2021b4da81d3fe59cd6b77317f11ec45c928e921 commit 2021b4da81d3fe59cd6b77317f11ec45c928e921 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2017-11-24 15:14:56 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2017-11-24 15:19:26 +0000 dev-python/pytest: depend on setuptools at runtime Closes: https://bugs.gentoo.org/638668 dev-python/pytest/pytest-3.0.3.ebuild | 2 +- dev-python/pytest/pytest-3.2.2.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Great, thanks!