(name)
| 76 | |
| 77 | @cache |
| 78 | def get_lib(name): |
| 79 | print(f"Looking for {name} library path:") |
| 80 | if path := get_env(f"{name.upper()}_LIBRARY_PATH"): |
| 81 | return path |
| 82 | if prefix := get_library_prefix(name): |
| 83 | return os.path.join(prefix, "lib") |
| 84 | |
| 85 | def get_version(rel_path): |
| 86 | """Read version from a file via text parsing, following PyPA guide.""" |
no test coverage detected