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


Groups > comp.lang.python > #104801

ABI name tag for libpython

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Robert Snoeberger <robert.snoeberger@me.com>
Newsgroups comp.lang.python
Subject ABI name tag for libpython
Date Sun, 13 Mar 2016 21:33:47 -0400
Lines 19
Message-ID <mailman.88.1457944107.12893.python-list@python.org> (permalink)
Mime-Version 1.0 (Mac OS X Mail 9.0 \(3094\))
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de aR4y6R3IyY913aEtNZWzVgCmJidpiIkAvVxOZOGepUkQ==
Return-Path <robert.snoeberger@me.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'configure': 0.04; 'i\xe2\x80\x99ve': 0.09; 'library?': 0.09; 'python': 0.10; 'variables': 0.15; 'abi': 0.16; 'from:addr:me.com': 0.16; 'i\xe2\x80\x99m': 0.16; 'message-id:@me.com': 0.16; 'received:192.168.0.9': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'tagged': 0.16; 'library,': 0.18; 'variable': 0.18; '>>>': 0.20; 'library': 0.20; 'assuming': 0.22; 'trying': 0.22; 'bit': 0.23; 'specified': 0.23; 'example': 0.26; 'question': 0.27; 'received:17': 0.27; "skip:' 10": 0.28; 'pep': 0.29; 'skip:s 30': 0.31; 'noticed': 0.32; 'gives': 0.35; 'to:addr :python-list': 0.36; 'skip:s 50': 0.37; 'version': 0.38; 'skip:s 40': 0.38; 'thank': 0.38; 'shared': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'header:MIME-version:1': 0.60; 'determine': 0.61; 'skip:n 10': 0.62; 'skip:\xe2 10': 0.70
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-03-14_01:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=1 malwarescore=0 phishscore=17 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1603140019
X-Mailer Apple Mail (2.3094)
X-Mailman-Approved-At Mon, 14 Mar 2016 04:28:26 -0400
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:104801

Show key headers only | 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