Martin Panter added the comment:

On Linux, the find_library() function is documented to return “the filename of 
the library file”, but in reality it seems it return the soname, and therefore 
breaks if there is no soname. I do not know why we extract the soname, but it 
has been that way at least since ctypes was added to Python 2.5.

What do you intend to do with the result of find_library()? See also Issue 
9998, especially about searching LD_LIBRARY_PATH. I am struggling to see robust 
use cases for find_library().

----------
nosy: +martin.panter

_______________________________________
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

Reply via email to