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

Bug 656148

Summary: dev-python/netaddr pulls complete dev-python/ipython via "cli" use flag
Product: Gentoo Linux Reporter: Roland Ramthun <bts>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: enhancement CC: ave, sam, slawomir.nizio
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 831045    
Bug Blocks:    

Description Roland Ramthun 2018-05-20 09:10:13 UTC
I use app-admin/ansible which depends on dev-python/netaddr. netaddr pulls ipython and all its deps (more than 60 packages) by default, because of the default enabled "cli" use flag.

Would it make sense to make "cli" not a default for dev-python/netaddr to avoid pulling all these 60+ deps? I imagine cli use of netaddr is a rather special use case, but this is obviously a decision the package maintainer has to make.
Comment 1 Sławomir Nizio 2018-10-29 18:45:54 UTC
I was surprised to find this large number of dependencies, noticed cli flag does nothing useful and found this bug.

I'm with the bug reporter.

Please remove it being default. See also https://devmanual.gentoo.org/general-concepts/use-flags/ (mentions that it USE flags shouldn't be used for runtime dependencies.)
Comment 2 Yury Katuar 2024-02-12 11:39:07 UTC
Newly added dev-python/netaddr-1.0.0 again has enabled by default "cli" flag, causing the same unexpected dependencies to be introduced during the update.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-02-18 07:37:17 UTC
commit 30f5a5def590108f228d7697aaec0b9935581a8e
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sun Feb 18 04:32:11 2024 +0100

    dev-python/netaddr: Bump to 1.2.1

    Signed-off-by: Michał Górny <mgorny@gentoo.org>