Re: Python version dependencies in pkg

From: Shane Ambler <FreeBSD_at_ShaneWare.Biz>
Date: Fri, 30 Sep 2022 05:09:42 UTC
On 29/9/22 5:36 pm, Stefan Esser wrote:
> Am 29.09.22 um 08:39 schrieb Alexander Leidinger:

>> To extend a little bit on that:
>> "pkg info | grep py3" will give you a list of ports which are
>> depending on a specific python version. If it lists py37-xxx it means
>> the xxx port depends upon python 3.7. If you then delete python 3.7
>> pkg will also ask you if it is ok to delete all the py37-* ports.
> There are many ports that depend on some specific Python version without
> "py3" in their package names.
> The following command lists all installed packages that depend on the
> version of the python interpreter in the first column:
>     pkg query "%dn %n-%v" | grep -E "^python3[0-9]+ "

I have found using pkg annotate a good source of python flavoured ports

I don't think you can search for specific annotation values, but you
can get all flavour values and grep that for py or py version.

pkg annotate -aS flavor | grep py38

FreeBSD - the place to B...Software Developing

Shane Ambler