On 28 Mar 2024, at 16:13, Olivier B. via Python-list <[email protected]> wrote:
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?
On 29 Mar 2024, at 16:09, Olivier B. <[email protected]> wrote:
It is not a symlink on my system, where i built python myself, but a
15KB so file. But it seems to lack lots of python symbols.
Maybe what i should do is actually make libpython.so a physical copy
of libpyton311.so before linking to it, so now on any system the
module would look to load libpython.so, which could be pointing to any version. I'll try that next
Le ven. 29 mars 2024 à 10:10, Barry <[email protected]> a écrit :
On 28 Mar 2024, at 16:13, Olivier B. via Python-list <[email protected]> wrote:
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?
Python limited API works on linux, but you do not link against the .so on linux I recall.
You will have missed that libpython3.so is a symlink to libpython3.11.so.10. >>
Windows build practices do not translate one-to-one to linux, or macOS.
Barry
On 1 Apr 2024, at 18:14, Left Right via Python-list <[email protected]> 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).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 12:29:04 |
| Calls: | 12,100 |
| Files: | 15,003 |
| Messages: | 6,517,999 |