The current find_library implementation in scc/tools.py relies on hardcoded relative paths and os.path.exists(), which bypasses the standard OS library search paths. This causes the tests to fail in many Linux distribution build environments (like Void Linux) because the compiled binaries are placed in a temporary build directory that isn't explicitly checked by the function. Replacing this with (or implementing in it) ctypes.util:find_library would make the package more portable and compliant with Python standards.
The current
find_libraryimplementation inscc/tools.pyrelies on hardcoded relative paths andos.path.exists(), which bypasses the standard OS library search paths. This causes the tests to fail in many Linux distribution build environments (like Void Linux) because the compiled binaries are placed in a temporary build directory that isn't explicitly checked by the function. Replacing this with (or implementing in it)ctypes.util:find_librarywould make the package more portable and compliant with Python standards.