On 5/6/25 11:06 AM, Grant Edwards wrote:
> On 2025-05-05, Adam Carter <adamcart...@gmail.com> wrote:
>> On Tue, May 6, 2025 at 12:12 AM Grant Edwards <grant.b.edwa...@gmail.com>
>> wrote:
>>
>>> How do I get a list of installed packages that are preventing
>>> switching to Python 3.13.
>>>
>>
>> Just one package blocking 3.13 for me
>> # emerge -pv --emptytree world | grep PYTHON_SINGLE | grep -v 'python3_13'
> 
> That dosn't quite work. On my machine that has 15 packages that are
> preventing switching to 3_13, the line above doesn't show any of them.
> None of those packages have the PYTHON_SINGLE_TARGET flag.  They all
> use PYTHON_TARGETS.
> 
> I've tried this:
> 
>   emerge -pv --emptytree world | grep PYTHON_TARGETS | grep -v '[ 
> "]python_3_13 '
> 
> But that doesn't work either. emerge finds all sorts of cascading
> problems and then gives up early.


Install "pkgcore".

Run:

pquery -I \
    --has-use python_targets_python3_12 \
    --has-use python_single_target_python3_12 \
    --attr use | grep -v python3_13


It will list all *installed* packages with either "targets" or "single
target" that *do* support Python 3.12...

... but don't support Python 3.13


- They may have a fixed version available that you haven't yet
  installed. If you've recently done a world update with --newuse
  (--changed-use is not good enough) then it won't have any false
  reports.

- They may have USE="-python", in which case it doesn't matter which
  python versions the optional USE supports. If the USE flag is enabled,
  you may be able to just disable it, too. e.g. boost, vim, file,
  util-linux, pax-utils.



-- 
Eli Schwartz

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to