Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2022 14:39:42 +0930
From:      Shane Ambler <FreeBSD@ShaneWare.Biz>
To:        ports@freebsd.org
Subject:   Re: Python version dependencies in pkg
Message-ID:  <13cd8468-a7d4-8ffc-9568-c1ded4c62533@ShaneWare.Biz>
In-Reply-To: <f5929013-aaf6-5fdf-74dd-f0b9a9e9abac@FreeBSD.org>
References:  <8B490359-27A3-410C-AE98-C1362D4FA9F0@gushi.org> <CAN6yY1sGnDF-oReRMFeVz78oGoTfUvsvwUOQwoBZWN9ibjTw3A@mail.gmail.com> <B2A3A400-F21A-4E92-8116-41E7945E4E5C@gushi.org> <CAN6yY1ujCH9Xnv3QN-GF8hN75v%2BxGkOTHrsr25jzxGNGdYW2vQ@mail.gmail.com> <89D2B2D7-FA3D-46F5-A93B-4846950A157C@gushi.org> <65597c37-813b-d0ed-ea9f-8591b68cf097@gwdg.de> <20220929083939.Horde.Viq2uLBgUctcrsgmaJxN_1u@webmail.leidinger.net> <f5929013-aaf6-5fdf-74dd-f0b9a9e9abac@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?13cd8468-a7d4-8ffc-9568-c1ded4c62533>