* [gentoo-user] About python_gen_cond_dep
@ 2022-08-29 9:14 Alexander Kurakin
2022-08-30 3:00 ` Bryan Gardiner
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kurakin @ 2022-08-29 9:14 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 952 bytes --]
As known, `python_gen_cond_dep` is for single implementation packages (either `python-single-r1` or `distutils-r1` with `DISTUTILS_SINGLE_IMPL=1`) where we're depending on Python packages which support multiple dependencies. (Thanks Sam James.)
But in dev-python/twisted [1] we have both: without `python_gen_cond_dep` (line 27) and with `python_gen_cond_dep` (line 58). Both of these dependencies are `PYTHON_COMPAT=( python3_{8..11} pypy3 )` + `inherit distutils-r1` + no set for `DISTUTILS_SINGLE_IMPL`: [2], [3].
What's the difference? Thanks!
Sincerely,
Alexander Kurakin.
---
[1]: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/twisted/twisted-22.4.0-r2.ebuild
[2]: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/zope-interface/zope-interface-5.4.0-r2.ebuild
[3]: https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-python/appdirs/appdirs-1.4.4-r2.ebuild
[-- Attachment #2: Type: text/html, Size: 1194 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] About python_gen_cond_dep
2022-08-29 9:14 [gentoo-user] About python_gen_cond_dep Alexander Kurakin
@ 2022-08-30 3:00 ` Bryan Gardiner
2022-08-30 15:53 ` [gentoo-user] Re: [gentoo-user] About python_gen_cond_dep Alexander Kurakin
0 siblings, 1 reply; 3+ messages in thread
From: Bryan Gardiner @ 2022-08-30 3:00 UTC (permalink / raw
To: gentoo-user
On Mon, 29 Aug 2022 12:14:59 +0300
Alexander Kurakin <kuraga333@mail.ru> wrote:
> As known, `python_gen_cond_dep` is for single implementation
> packages (either `python-single-r1` or `distutils-r1` with
> `DISTUTILS_SINGLE_IMPL=1`) where we're depending on Python packages
> which support multiple dependencies. (Thanks Sam James.)
>
> But in dev-python/twisted [1] we have both: without
> `python_gen_cond_dep` (line 27) and with `python_gen_cond_dep` (line
> 58). Both of these dependencies are `PYTHON_COMPAT=( python3_{8..11}
> pypy3 )` + `inherit distutils-r1` + no set for
> `DISTUTILS_SINGLE_IMPL`: [2], [3].
>
> What's the difference? Thanks!
In twisted's BDEPEND calls to python_gen_cond_dep, Python impl names
are passed after the depstring, and this looks like a way to limit
those dependencies to certain impls. python3_11 is omitted compared
to PYTHON_COMPAT so maybe the tests don't support that yet.
Note that python_gen_cond_dep from python-r1.eclass is different from
python-single-r1.eclass, it generates dependencies using
PYTHON_TARGETS instead of PYTHON_SINGLE_TARGETS.
Cheers,
Bryan
> Sincerely,
> Alexander Kurakin.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [gentoo-user] Re: [gentoo-user] About python_gen_cond_dep
2022-08-30 3:00 ` Bryan Gardiner
@ 2022-08-30 15:53 ` Alexander Kurakin
0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kurakin @ 2022-08-30 15:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 500 bytes --]
Bryan, thanks!
> In twisted's BDEPEND calls to python_gen_cond_dep, Python impl names
> are passed after the depstring, and this looks like a way to limit
> those dependencies to certain impls. python3_11 is omitted compared
> to PYTHON_COMPAT so maybe the tests don't support that yet.
So, `python_gen_cond_dep` wouldn’t be needed if impls didn’t want to be omitted?
Regardless of this situation, when is `python_gen_cond_dep` needed to use?
Sincerely,
Alexander Kurakin.
[-- Attachment #2: Type: text/html, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-30 15:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-29 9:14 [gentoo-user] About python_gen_cond_dep Alexander Kurakin
2022-08-30 3:00 ` Bryan Gardiner
2022-08-30 15:53 ` [gentoo-user] Re: [gentoo-user] About python_gen_cond_dep Alexander Kurakin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox