Making 'compiled' modules work with multiple python versions on Linux

Liste des GroupesRevenir à cl python 
Sujet : Making 'compiled' modules work with multiple python versions on Linux
De : perso.olivier.barthelemy (at) *nospam* gmail.com (Olivier B.)
Groupes : comp.lang.python
Date : 28. Mar 2024, 17:07:04
Autres entêtes
Message-ID : <mailman.29.1711642229.3468.python-list@python.org>
References : 1
I have a python module that includes some C++ code that links with the
Python C API

I have now modified the c++ code so that it only uses the Limited API,
and linked with python3.lib instead of python311.lib.

I can now use that python module with different python versions on Windows

But on Linux, it seems that linking to libpython3.so instead of
libpython3.11.so.1.0 does not have the same effect, and results in
many unresolved python symbols at link time

Is this functionality only available on Windows?

Date Sujet#  Auteur
28 Mar 24 o Making 'compiled' modules work with multiple python versions on Linux1Olivier B.

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal