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


Groups > comp.lang.python > #104801

ABI name tag for libpython

From Robert Snoeberger <robert.snoeberger@me.com>
Newsgroups comp.lang.python
Subject ABI name tag for libpython
Date 2016-03-13 21:33 -0400
Message-ID <mailman.88.1457944107.12893.python-list@python.org> (permalink)

Show all headers | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web