Return the platform-appropriate shared library filename for ``target_name``.
(target_name: str)
| 120 | |
| 121 | |
| 122 | def _platform_lib_filename(target_name: str) -> str: |
| 123 | """Return the platform-appropriate shared library filename for ``target_name``.""" |
| 124 | if sys.platform.startswith("win32"): |
| 125 | return f"{target_name}.dll" |
| 126 | if sys.platform.startswith("darwin"): |
| 127 | return f"lib{target_name}.dylib" |
| 128 | return f"lib{target_name}.so" |
| 129 | |
| 130 | |
| 131 | def test_find_library_by_basename_extra_lib_paths(tmp_path: Path) -> None: |
no outgoing calls
no test coverage detected