Closed
Description
Bug report
#44314 improves the support for find_library() under BSD systems.
Although, find_library() returns a filename instead of a full path, unlike the comment stated at the top of the implementation:
find_library(name) returns the pathname of a library, or None.
% python
Python 3.9.13 (main, May 26 2022, 16:26:43)
[Clang 13.0.0 ] on openbsd7
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> find_library('python3.9')
'libpython3.9.so.0.0'
>>>
Your environment
- CPython versions tested on: %
Python 3.9.13 - Operating system and architecture:
OpenBSD lap1.josuah.net 7.1 GENERIC.MP#3 amd64