Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 748138

Summary: dev-python/pipenv-2020.6.2: missing dependencies on dev-python/six and dev-python/appdirs
Product: Gentoo Linux Reporter: Dave Wiltshire <davew>
Component: Current packagesAssignee: OzTiram <oz.tiram>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18187
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
pipenv --help stack trace
pipenv --version stack trace

Description Dave Wiltshire 2020-10-13 05:27:14 UTC
Created attachment 664939 [details]
emerge --info

pipenv won't run without dev-python/six and dev-python/appdirs.

Attached are stack traces of pipenv --help and pipenv --version (pipenv shell also crashes).

python --version is 3.7.8
Comment 1 Dave Wiltshire 2020-10-13 05:28:02 UTC
Created attachment 664942 [details]
pipenv --help stack trace
Comment 2 Dave Wiltshire 2020-10-13 05:28:20 UTC
Created attachment 664945 [details]
pipenv --version stack trace
Comment 3 OzTiram 2020-10-13 08:11:53 UTC
The stacktrace clearly says:


pkg_resources.DistributionNotFound: The 'six<2,>=1.9.0' distribution was not found and is required by virtualenv

virtualenv already has this dependency in gentoo. Can you please uninstall and install this package and show the logs?
Comment 4 Dave Wiltshire 2020-10-13 11:01:19 UTC
dev-python/six is not in RDEPEND or BDEPEND for virtualenv-16-7.10-r1 and doesn't get pulled in.

That is the version of virtualenv that gets selected when I emerge dev-python/pipenv-2020.6.2
Comment 5 OzTiram 2020-10-13 11:56:28 UTC
In this case, the bug fix should be pinning the version of virtualenv to later than 16.
All later versions pull appdirs and six properly.

https://github.com/gentoo/gentoo/blob/master/dev-python/virtualenv/virtualenv-20.0.31-r1.ebuild

I will submit a patch for that.

Thank you for pointing the issue!
Comment 6 Larry the Git Cow gentoo-dev 2020-11-11 21:26:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5a4470582c02d92f494de00bcd1c256528fbd9e

commit b5a4470582c02d92f494de00bcd1c256528fbd9e
Author:     Oz N Tiram <oz.tiram@gmail.com>
AuthorDate: 2020-11-08 17:59:06 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2020-11-11 21:26:39 +0000

    dev-python/pipenv: bump version to 2020.11.4.
    
    Also, improve dependency declarations.
    
    Closes: https://bugs.gentoo.org/748138
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/18187
    Signed-off-by: Patrice Clement <monsieurp@gentoo.org>

 dev-python/pipenv/Manifest                |  1 +
 dev-python/pipenv/pipenv-2020.11.4.ebuild | 52 +++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)