Making 'compiled' modules work with multiple python versions on Linux
Barry
barry at barrys-emacs.org
Tue Apr 2 11:16:09 EDT 2024
> On 1 Apr 2024, at 18:14, Left Right via Python-list <python-list at python.org> wrote:
>
> It sounds weird that symbols from Limited API are _missing_ (I'd
> expect them to be there no matter what library version you link with).
You have to specify the version of the limited API that you want to use.
Each release adds more symbols to the limited API.
So if you compile against 3.10 version it works with 3.10, 3.11, 3.12 etc,
but not with 3.9.
My pycxx project has test code that I use to verify pycxx’s use of python API.
You could check out the source and run my tests to see how things work.
It is on https://sourceforge.net/projects/cxx/
Barry
More information about the Python-list
mailing list