[Rpm-maint] [rpm-software-management/rpm] WIP: Use Python Stable ABI for the bindings (PR #2674)

Panu Matilainen notifications at github.com
Fri Sep 29 12:31:52 UTC 2023


I think, if we go for the stable ABI we should then stick to it too, meaning simply cut off support for versions where not available. 

Requiring Python >= 3.7 is not a problem, I'm just curious as to what makes that particular version special. Cmake >= 3.26 is too new for us to require though, but this shouldn't be hard to do manually. Looking at the cmake's FindPython module, something like `target_compile_definitions(_rpm PRIVATE Py_LIMITED_API=x)` in python/CMakeLists.txt I suppose.  There's something about linking to a specific library too, but according to https://docs.python.org/3/c-api/stable.html that's a Windows-only thing.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2674#issuecomment-1740817395
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2674/c1740817395 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230929/8f147ebb/attachment.html>


More information about the Rpm-maint mailing list