Gentoo Archives: gentoo-dev

From: Martin Kletzander <nert.pinx@×××××.com>
To: Andrew Ammerlaan <andrewammerlaan@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Question about python compatibility in dev-python/pathlib2
Date: Fri, 02 Dec 2022 15:53:39
Message-Id: Y4offTJK5orQ7+i0@wheatley
In Reply to: Re: [gentoo-dev] Question about python compatibility in dev-python/pathlib2 by Andrew Ammerlaan
1 Thanks, I now understand what pathlib2 does, but more importantly found
2 out it is not really needed in that case making the fix even easier =)
3
4 On Fri, Dec 02, 2022 at 11:35:06AM +0100, Andrew Ammerlaan wrote:
5 >Hi,
6 >
7 >Pathlib2 is a backport, as such it doesn't really make sense to add 3.10 and 3.11 to compat. The package from the overlay probably should adjust its dependencies to only depend on pathlib2 when instaling for 3.9 or 3.8. This can be accomplished with the python_gen_cond_dep function (see docmenttion of python-r1.eclass).
8 >
9 >Best regards,
10 >Andrew
11 >
12 >
13 >On December 2, 2022 10:04:02 AM GMT+01:00, Martin Kletzander <nert.pinx@×××××.com> wrote:
14 >>Hi all,
15 >>
16 >>I noticed that a package from an overlay fails to install due to it
17 >>requiring pathlib2 with python_targets with 3.10 and/or 3.11. So I
18 >>checked pathlib2's setup.py [0] that it supports newer python versions
19 >>and wanted to update the ebuild, but noticed
20 >>
21 >>My question is whether I should:
22 >>
23 >>1) do some more research/work to bump the versions or
24 >>
25 >>2) update the upstream in case this is something deprecated order
26 >>
27 >>3) whether the updated ebuild with newer python versions should live in
28 >> the overlay instead.
29 >>
30 >>Thanks for any (non-null) pointers,
31 >>Martin
32 >>
33 >>[0] https://github.com/jazzband/pathlib2/blob/develop/setup.py#L39
34 >>