Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #104801 > unrolled thread
| Started by | Robert Snoeberger <robert.snoeberger@me.com> |
|---|---|
| First post | 2016-03-13 21:33 -0400 |
| Last post | 2016-03-13 21:33 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
ABI name tag for libpython Robert Snoeberger <robert.snoeberger@me.com> - 2016-03-13 21:33 -0400
| From | Robert Snoeberger <robert.snoeberger@me.com> |
|---|---|
| Date | 2016-03-13 21:33 -0400 |
| Subject | ABI name tag for libpython |
| Message-ID | <mailman.88.1457944107.12893.python-list@python.org> |
On Debian, the shared library, libpython3.4m.so, is ABI version tagged with an “m.” I’m assuming that this is the ABI version tag specified in PEP 3149. The PEP give an example of using sysconfig.get_config_var to get the name tag.
>>> sysconfig.get_config_var('SOABI')
'cpython-34m'
I’ve also noticed that the configure variable ‘LDVERSION' gives the ‘3.4m’ bit in the library name.
>>> sysconfig.get_config_var('LDVERSION')
‘3.4m'
My question is, are these configure variables a reliable way to determine the name tag of the python shared library? I’m trying to use ctypes.util.find_library to find libpython.
Thank you!
Back to top | Article view | comp.lang.python
csiph-web