Closed lijunsong closed 11 months ago
libpython3 exists to (re)export the stable subset of the Python API. See https://peps.python.org/pep-0652/.
Applications coding against the stable Python API may link against python3
instead of python3.x
.
The library is in our distributions because it is part of standard Python distributions and some consumers expect it to exist.
If your application doesn't use the library, then it can be safely deleted.
I want to say that Python extension modules shouldn't be linking against libpython3
- only binaries wanting to link against Python. But stranger things have happened. If your application allows loading custom extension modules, you may want to keep libpython3
around just in case.
Does this answer your question? If so, feel free to close this issue.
We want to create a slim python package (remove all unnecessary Build, man pages, test modules, etc.), so we're considering to delete it. Suggestions?
It's unclear what this
install/lib/libpython3.so
is and how import are those by inspecting it's symbol table: