New submission from Jeremy Huntwork: On my system, the C library (musl) intentionally does not include a SONAME entry.
This method in particular fails: http://hg.python.org/cpython/file/076705776bbe/Lib/ctypes/util.py#l133 The function seems to jump through some hoops which may not be necessary. Is there a reason for wanting particularly to use the SONAME entry for the lib? In my system the following works as a replacement for _get_soname: return os.path.basename(os.path.realpath(f)) ---------- components: ctypes messages: 219481 nosy: Jeremy.Huntwork priority: normal severity: normal status: open title: ctypes.util incorrectly fails for libraries without DT_SONAME type: behavior versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21622> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com