Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638668 - dev-python/pytest: Setuptools should be a runtime dependency
Summary: dev-python/pytest: Setuptools should be a runtime dependency
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-24 07:11 UTC by Michael Seifert
Modified: 2017-11-24 15:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Seifert 2017-11-24 07:11:43 UTC
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"
Comment 1 Michael Seifert 2017-11-24 07:14:05 UTC
I am currently working to patch this.
Comment 2 Larry the Git Cow gentoo-dev 2017-11-24 15:19:40 UTC
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(-)
Comment 3 Michael Seifert 2017-11-24 15:44:22 UTC
Great, thanks!