[issue43886] Extending/embedding Python documentation outdated/incomplete

Federico Pellegrin report at bugs.python.org
Mon Apr 19 05:11:00 EDT 2021


Federico Pellegrin <fede.evol at gmail.com> added the comment:

Just a small addition:

Specifically in the documentation it talks about embedding:

"
It is not necessarily trivial to find the right flags to pass to your compiler (and linker) in order to embed the Python interpreter into your application, particularly because Python needs to load library modules implemented as C dynamic extensions (.so files) linked against it.


To find out the required compiler and linker flags, you can execute the pythonX.Y-config script which is generated as part of the installation process (a python3-config script may also be available). This script has several options, of which the following will be directly useful to you:
"

But doesn't really say anything about extensions. Is the same python-config used therefore for extensions as well?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43886>
_______________________________________


More information about the Python-bugs-list mailing list