Gentoo Archives: gentoo-user

From: Helmut Jarausch <jarausch@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How to find all packages which need Python2_7
Date: Tue, 03 Mar 2015 10:12:57
Message-Id: zLf4fzGGQ/RMe2CptDRjdN@P5PtzPKoJNKiL2f438/4k
In Reply to: Re: [gentoo-user] How to find all packages which need Python2_7 by Andrew Savchenko
1 On 03/03/2015 10:47:46 AM, Andrew Savchenko wrote:
2 > Hello,
3 >
4 > On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote:
5 > > Hi,
6 > >
7 > > I'd like to install all packages which need Python, only for Python3
8 > except those which cannot be installed for Python3.
9 > > How can I find out which of the packages installed on my machine
10 > have PYTHON_TARGETS=python2_7" (only).
11 > > I could loop over `qlist -IC` do an emerge -vp each grepping for
12 > this string.
13 > > But is there an easier way.
14 >
15 > You are almost there, just learn the power of mighty eix:
16 >
17 > EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U
18 > python_targets_python3_ -\)
19 >
20 > This will return you all installed packages having "python2_*" in
21 > their python targets, but not having "python3_*".
22 >
23
24 Many thanks Andrew.
25 I have some problems, though.
26
27 Your command shows media-libs/mesa (among many others)
28 but
29 emerge -vp media-libs/mesa doesn't show any python targets.
30
31 Thanks again,
32 Helmut

Replies

Subject Author
Re: [gentoo-user] How to find all packages which need Python2_7 Andrew Savchenko <bircoph@g.o>