Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #104801 > unrolled thread

ABI name tag for libpython

Started byRobert Snoeberger <robert.snoeberger@me.com>
First post2016-03-13 21:33 -0400
Last post2016-03-13 21:33 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  ABI name tag for libpython Robert Snoeberger <robert.snoeberger@me.com> - 2016-03-13 21:33 -0400

#104801 — ABI name tag for libpython

FromRobert Snoeberger <robert.snoeberger@me.com>
Date2016-03-13 21:33 -0400
SubjectABI 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!

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web