public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Last standing Python 2.7 dependency
@ 2020-05-01 17:45 José de Paula Rodrigues
  2020-05-01 17:49 ` Michał Górny
  0 siblings, 1 reply; 7+ messages in thread
From: José de Paula Rodrigues @ 2020-05-01 17:45 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Hi all,

I've cleared my system from Python 2.7 almost entirely, with the sole
exception being dev-lang/python-exec, which relies on a hack to absorb all
possible Python versions in python-utils-r1.eclass. Shouldn't python2_7 be
removed from _PYTHON_ALL_IMPLS there?

-- 
... et cognoscetis veritatem et veritas liberabit vos.

[-- Attachment #2: Type: text/html, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-01 17:45 [gentoo-dev] Last standing Python 2.7 dependency José de Paula Rodrigues
@ 2020-05-01 17:49 ` Michał Górny
  2020-05-03  5:28   ` Viktar Patotski
  0 siblings, 1 reply; 7+ messages in thread
From: Michał Górny @ 2020-05-01 17:49 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

On Fri, 2020-05-01 at 14:45 -0300, José de Paula Rodrigues wrote:
> Hi all,
> 
> I've cleared my system from Python 2.7 almost entirely, with the sole
> exception being dev-lang/python-exec, which relies on a hack to absorb all
> possible Python versions in python-utils-r1.eclass. Shouldn't python2_7 be
> removed from _PYTHON_ALL_IMPLS there?
> 

python-exec does not depend on the Python interpreter, so you can
depclean it.

-- 
Best regards,
Michał Górny


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-01 17:49 ` Michał Górny
@ 2020-05-03  5:28   ` Viktar Patotski
  2020-05-03  6:24     ` Brian Dolbec
  0 siblings, 1 reply; 7+ messages in thread
From: Viktar Patotski @ 2020-05-03  5:28 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 775 bytes --]

Hi all,

I'd also like to clean my system and have it Python 2.7 free. Are there any
guidelines to check which packages are still using pyton2_7 in my system?

Thanks,
Viktar

On Fri, May 1, 2020 at 7:50 PM Michał Górny <mgorny@gentoo.org> wrote:

> On Fri, 2020-05-01 at 14:45 -0300, José de Paula Rodrigues wrote:
> > Hi all,
> >
> > I've cleared my system from Python 2.7 almost entirely, with the sole
> > exception being dev-lang/python-exec, which relies on a hack to absorb
> all
> > possible Python versions in python-utils-r1.eclass. Shouldn't python2_7
> be
> > removed from _PYTHON_ALL_IMPLS there?
> >
>
> python-exec does not depend on the Python interpreter, so you can
> depclean it.
>
> --
> Best regards,
> Michał Górny
>
>

[-- Attachment #2: Type: text/html, Size: 1177 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-03  5:28   ` Viktar Patotski
@ 2020-05-03  6:24     ` Brian Dolbec
  2020-05-03  6:58       ` Fabian Groffen
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Dolbec @ 2020-05-03  6:24 UTC (permalink / raw
  To: gentoo-dev

On Sun, 3 May 2020 07:28:50 +0200
Viktar Patotski <xp.vit.blr@gmail.com> wrote:

> Hi all,
> 
> I'd also like to clean my system and have it Python 2.7 free. Are
> there any guidelines to check which packages are still using pyton2_7
> in my system?
> 
> Thanks,
> Viktar
> 

There are both equery and enalyze commands in gentoolkit that can give
you reports about what pkgs are installed.

equery hasuse
enalyze analyze [use|pkguse]

for help on them:
equery -h
equery hasuse -h
enalyze -h
enalyze a -h


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-03  6:24     ` Brian Dolbec
@ 2020-05-03  6:58       ` Fabian Groffen
  2020-05-03 12:37         ` Brian Evans
  0 siblings, 1 reply; 7+ messages in thread
From: Fabian Groffen @ 2020-05-03  6:58 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 805 bytes --]

On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote:
> On Sun, 3 May 2020 07:28:50 +0200
> Viktar Patotski <xp.vit.blr@gmail.com> wrote:
> 
> > Hi all,
> > 
> > I'd also like to clean my system and have it Python 2.7 free. Are
> > there any guidelines to check which packages are still using pyton2_7
> > in my system?
> > 
> > Thanks,
> > Viktar
> > 
> 
> There are both equery and enalyze commands in gentoolkit that can give
> you reports about what pkgs are installed.
> 
> equery hasuse
> enalyze analyze [use|pkguse]
> 
> for help on them:
> equery -h
> equery hasuse -h
> enalyze -h
> enalyze a -h

In addition to these great tools, portage-utils' quse might also be
useful:

% quse python2_7
...


Thanks,
Fabian

-- 
Fabian Groffen
Gentoo on a different level

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-03  6:58       ` Fabian Groffen
@ 2020-05-03 12:37         ` Brian Evans
  2020-05-03 13:51           ` Brian Dolbec
  0 siblings, 1 reply; 7+ messages in thread
From: Brian Evans @ 2020-05-03 12:37 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 1233 bytes --]

On 5/3/20 2:58 AM, Fabian Groffen wrote:
> On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote:
>> On Sun, 3 May 2020 07:28:50 +0200
>> Viktar Patotski <xp.vit.blr@gmail.com> wrote:
>>
>>> Hi all,
>>>
>>> I'd also like to clean my system and have it Python 2.7 free. Are
>>> there any guidelines to check which packages are still using pyton2_7
>>> in my system?
>>>
>>> Thanks,
>>> Viktar
>>>
>>
>> There are both equery and enalyze commands in gentoolkit that can give
>> you reports about what pkgs are installed.
>>
>> equery hasuse
>> enalyze analyze [use|pkguse]
>>
>> for help on them:
>> equery -h
>> equery hasuse -h
>> enalyze -h
>> enalyze a -h
> 
> In addition to these great tools, portage-utils' quse might also be
> useful:
> 
> % quse python2_7
> ...
> 
> 
> Thanks,
> Fabian
> 

All of the mentioned tools will show if packages have the flag but not
necessarily have it active.

eix has an option to search the active flag:

eix --installed-with-use <flag>

However, this still skips build-time dependencies that may keep python
2.7 around.

The most accurate way to see what's tied to python 2.7 is to pretend to
remove it:
emerge -pvc dev-lang/python:2.7

Brian


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 981 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-dev] Last standing Python 2.7 dependency
  2020-05-03 12:37         ` Brian Evans
@ 2020-05-03 13:51           ` Brian Dolbec
  0 siblings, 0 replies; 7+ messages in thread
From: Brian Dolbec @ 2020-05-03 13:51 UTC (permalink / raw
  To: gentoo-dev

On Sun, 3 May 2020 08:37:27 -0400
Brian Evans <grknight@gentoo.org> wrote:

> On 5/3/20 2:58 AM, Fabian Groffen wrote:
> > On 02-05-2020 23:24:42 -0700, Brian Dolbec wrote:  
> >> On Sun, 3 May 2020 07:28:50 +0200
> >> Viktar Patotski <xp.vit.blr@gmail.com> wrote:
> >>  
> >>> Hi all,
> >>>
> >>> I'd also like to clean my system and have it Python 2.7 free. Are
> >>> there any guidelines to check which packages are still using
> >>> pyton2_7 in my system?
> >>>
> >>> Thanks,
> >>> Viktar
> >>>  
> >>
> >> There are both equery and enalyze commands in gentoolkit that can
> >> give you reports about what pkgs are installed.
> >>
> >> equery hasuse
> >> enalyze analyze [use|pkguse]
> >>
> >> for help on them:
> >> equery -h
> >> equery hasuse -h
> >> enalyze -h
> >> enalyze a -h  
> > 
> > In addition to these great tools, portage-utils' quse might also be
> > useful:
> > 
> > % quse python2_7
> > ...
> > 
> > 
> > Thanks,
> > Fabian
> >   
> 
> All of the mentioned tools will show if packages have the flag but not
> necessarily have it active.

Not True:  

enalyze does strictly installed pkgs analysis, plus has the
ability to rebuild package.accept_keywords and package.use files after
profile changes or disaster (file loss, etc) 




> 
> eix has an option to search the active flag:
> 
> eix --installed-with-use <flag>
> 
> However, this still skips build-time dependencies that may keep python
> 2.7 around.
> 
> The most accurate way to see what's tied to python 2.7 is to pretend
> to remove it:
> emerge -pvc dev-lang/python:2.7
> 
> Brian
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-03 13:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-01 17:45 [gentoo-dev] Last standing Python 2.7 dependency José de Paula Rodrigues
2020-05-01 17:49 ` Michał Górny
2020-05-03  5:28   ` Viktar Patotski
2020-05-03  6:24     ` Brian Dolbec
2020-05-03  6:58       ` Fabian Groffen
2020-05-03 12:37         ` Brian Evans
2020-05-03 13:51           ` Brian Dolbec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox