Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Robert Snoeberger Newsgroups: comp.lang.python Subject: ABI name tag for libpython Date: Sun, 13 Mar 2016 21:33:47 -0400 Lines: 19 Message-ID: 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: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:104801 On Debian, the shared library, libpython3.4m.so, is ABI version tagged = with an =E2=80=9Cm.=E2=80=9D I=E2=80=99m 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=E2=80=99ve also noticed that the configure variable =E2=80=98LDVERSION' = gives the =E2=80=983.4m=E2=80=99 bit in the library name. >>> sysconfig.get_config_var('LDVERSION') =E2=80=983.4m' My question is, are these configure variables a reliable way to = determine the name tag of the python shared library? I=E2=80=99m trying = to use ctypes.util.find_library to find libpython. Thank you!=