* [gentoo-user] How to find all packages which need Python2_7
@ 2015-03-03 9:21 Helmut Jarausch
2015-03-03 9:47 ` Andrew Savchenko
0 siblings, 1 reply; 5+ messages in thread
From: Helmut Jarausch @ 2015-03-03 9:21 UTC (permalink / raw
To: gentoo-user
Hi,
I'd like to install all packages which need Python, only for Python3 except those which cannot be installed for Python3.
How can I find out which of the packages installed on my machine have PYTHON_TARGETS=python2_7" (only).
I could loop over `qlist -IC` do an emerge -vp each grepping for this string.
But is there an easier way.
Many thanks for a hint,
Helmut
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How to find all packages which need Python2_7
2015-03-03 9:21 [gentoo-user] How to find all packages which need Python2_7 Helmut Jarausch
@ 2015-03-03 9:47 ` Andrew Savchenko
2015-03-03 9:53 ` Andrew Savchenko
2015-03-03 10:12 ` Helmut Jarausch
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Savchenko @ 2015-03-03 9:47 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 740 bytes --]
Hello,
On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote:
> Hi,
>
> I'd like to install all packages which need Python, only for Python3 except those which cannot be installed for Python3.
> How can I find out which of the packages installed on my machine have PYTHON_TARGETS=python2_7" (only).
> I could loop over `qlist -IC` do an emerge -vp each grepping for this string.
> But is there an easier way.
You are almost there, just learn the power of mighty eix:
EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U python_targets_python3_ -\)
This will return you all installed packages having "python2_*" in
their python targets, but not having "python3_*".
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How to find all packages which need Python2_7
2015-03-03 9:47 ` Andrew Savchenko
@ 2015-03-03 9:53 ` Andrew Savchenko
2015-03-03 10:12 ` Helmut Jarausch
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Savchenko @ 2015-03-03 9:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 469 bytes --]
On Tue, 3 Mar 2015 12:47:46 +0300 Andrew Savchenko wrote:
> EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U python_targets_python3_ -\)
On second though parenthesis are surplus here:
EIX_LIMIT=0 eix -I --only-names -U python_targets_python2_ -! -U python_targets_python3_
Though be aware that some python2-only packages will require
python2 support from packages supporting multiple python
versions.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How to find all packages which need Python2_7
2015-03-03 9:47 ` Andrew Savchenko
2015-03-03 9:53 ` Andrew Savchenko
@ 2015-03-03 10:12 ` Helmut Jarausch
2015-03-03 19:46 ` Andrew Savchenko
1 sibling, 1 reply; 5+ messages in thread
From: Helmut Jarausch @ 2015-03-03 10:12 UTC (permalink / raw
To: gentoo-user
On 03/03/2015 10:47:46 AM, Andrew Savchenko wrote:
> Hello,
>
> On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote:
> > Hi,
> >
> > I'd like to install all packages which need Python, only for Python3
> except those which cannot be installed for Python3.
> > How can I find out which of the packages installed on my machine
> have PYTHON_TARGETS=python2_7" (only).
> > I could loop over `qlist -IC` do an emerge -vp each grepping for
> this string.
> > But is there an easier way.
>
> You are almost there, just learn the power of mighty eix:
>
> EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U
> python_targets_python3_ -\)
>
> This will return you all installed packages having "python2_*" in
> their python targets, but not having "python3_*".
>
Many thanks Andrew.
I have some problems, though.
Your command shows media-libs/mesa (among many others)
but
emerge -vp media-libs/mesa doesn't show any python targets.
Thanks again,
Helmut
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] How to find all packages which need Python2_7
2015-03-03 10:12 ` Helmut Jarausch
@ 2015-03-03 19:46 ` Andrew Savchenko
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Savchenko @ 2015-03-03 19:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1375 bytes --]
On Tue, 03 Mar 2015 11:12:48 +0100 Helmut Jarausch wrote:
> On 03/03/2015 10:47:46 AM, Andrew Savchenko wrote:
> > Hello,
> >
> > On Tue, 03 Mar 2015 10:21:19 +0100 Helmut Jarausch wrote:
> > > Hi,
> > >
> > > I'd like to install all packages which need Python, only for Python3
> > except those which cannot be installed for Python3.
> > > How can I find out which of the packages installed on my machine
> > have PYTHON_TARGETS=python2_7" (only).
> > > I could loop over `qlist -IC` do an emerge -vp each grepping for
> > this string.
> > > But is there an easier way.
> >
> > You are almost there, just learn the power of mighty eix:
> >
> > EIX_LIMIT=0 eix -I --only-names -\( -U python_targets_python2_ -! -U
> > python_targets_python3_ -\)
> >
> > This will return you all installed packages having "python2_*" in
> > their python targets, but not having "python3_*".
> >
>
> Many thanks Andrew.
> I have some problems, though.
>
> Your command shows media-libs/mesa (among many others)
> but
> emerge -vp media-libs/mesa doesn't show any python targets.
Run plain:
$ eix media-libs/mesa
It has PYTHON_TARGETS="python2_7", though probably not in the
version currently installed in your system. Please don't forget,
that USE flag may appear and disappear during upgrades or
downgrades.
Best regards,
Andrew Savchenko
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-03 19:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03 9:21 [gentoo-user] How to find all packages which need Python2_7 Helmut Jarausch
2015-03-03 9:47 ` Andrew Savchenko
2015-03-03 9:53 ` Andrew Savchenko
2015-03-03 10:12 ` Helmut Jarausch
2015-03-03 19:46 ` Andrew Savchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox