Miro Hrončok via python-devel venit, vidit, dixit 2026-08-12 12:05:18:
> On 12. 08. 26 10:59, Michael J Gruber wrote:
> > Miro Hrončok via python-devel venit, vidit, dixit 2026-08-12 10:53:55:
> >> Hello Pythonistas.
> >>
> >> tl;dr The python(abi) Requires are currently only generated for .py or .so
> >> files. I think that restriction is not useful and would like to drop it.
> >>
> >>
> >> I opened
> >> https://src.fedoraproject.org/rpms/python-rpm-generators/pull-request/80 in
> >> response to
> >> https://src.fedoraproject.org/rpms/python-coverage_pth/blob/0401cae6/f/python-coverage_pth.spec#_30
> >>
> >> It extends the generated python(abi) Requires for any (all?) files in 
> >> pythonX.Y
> >> directory regardless of their extension or type.
> >>
> >> It does not matter if the package installs .py, .so or different files.
> >>
> >> Packages that simply drop a .pth file to site-packages or even only carry
> >> dist-info folder still need to Require the package that owns
> >> /usr/lib(64)/pythonX.Y.
> >>
> >> Since the PR was opened couple months ago and received no feedback, I 
> >> decided
> >> to share it here as well. WDYT?
> > 
> > I'm sure you explained it concisely and I'm simply not getting it.
> 
> Or perhaps I did not :D
> 
> > But can you give an example of before vs after? I can't tell whether the
> > proposal is about *which packages* get those automatic requires, or
> > *what requires* get generated, or both. An example may help at least me.
> > Thanks!
> 
> 
> Before:
> 
> Package installs (only):
> 
>    /usr/lib/python3.15/site-packages/coverage_pth-0.0.2.dist-info
>    /usr/lib/python3.15/site-packages/coverage_pth.pth
> 
> It does not get automatic python(abi) = 3.15 Requires because nothing in 
> site-packages is a .py or .so file.
> 
> 
> After:
> 
> It gets automatic python(abi) = 3.15 Requires because packages should require 
> directory owners.
> 

Crystal clear now, thanks :)

Now, I'm not sure whether the existence of that path technically
qualifies as "abi", but it's clear that putting something at that path will
work with that python version only, so the change makes sense to me.

Michael
-- 
_______________________________________________
python-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to