1 |
On Tue, 03 Mar 2015 11:12:48 +0100 Helmut Jarausch wrote: |
2 |
> On 03/03/2015 10:47:46 AM, Andrew Savchenko wrote: |
3 |
> > Hello, |
4 |
> > |
5 |
> > On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote: |
6 |
> > > Hi, |
7 |
> > > |
8 |
> > > I'd like to install all packages which need Python, only for Python3 |
9 |
> > except those which cannot be installed for Python3. |
10 |
> > > How can I find out which of the packages installed on my machine |
11 |
> > have PYTHON_TARGETS=python2_7" (only). |
12 |
> > > I could loop over `qlist -IC` do an emerge -vp each grepping for |
13 |
> > this string. |
14 |
> > > But is there an easier way. |
15 |
> > |
16 |
> > You are almost there, just learn the power of mighty eix: |
17 |
> > |
18 |
> > EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U |
19 |
> > python_targets_python3_ -\) |
20 |
> > |
21 |
> > This will return you all installed packages having "python2_*" in |
22 |
> > their python targets, but not having "python3_*". |
23 |
> > |
24 |
> |
25 |
> Many thanks Andrew. |
26 |
> I have some problems, though. |
27 |
> |
28 |
> Your command shows media-libs/mesa (among many others) |
29 |
> but |
30 |
> emerge -vp media-libs/mesa doesn't show any python targets. |
31 |
|
32 |
Run plain: |
33 |
$ eix media-libs/mesa |
34 |
It has PYTHON_TARGETS="python2_7", though probably not in the |
35 |
version currently installed in your system. Please don't forget, |
36 |
that USE flag may appear and disappear during upgrades or |
37 |
downgrades. |
38 |
|
39 |
|
40 |
Best regards, |
41 |
Andrew Savchenko |