()
| 53 | |
| 54 | |
| 55 | def get_libgit2_paths() -> tuple[Path, dict[str, list[str]]]: |
| 56 | # Base path |
| 57 | path = _get_libgit2_path() |
| 58 | |
| 59 | # Library dirs |
| 60 | libgit2_lib = os.getenv('LIBGIT2_LIB') |
| 61 | if libgit2_lib is None: |
| 62 | library_dirs = [path / 'lib', path / 'lib64'] |
| 63 | else: |
| 64 | library_dirs = [Path(libgit2_lib)] |
| 65 | |
| 66 | include_dirs = [path / 'include'] |
| 67 | return ( |
| 68 | path / 'bin', |
| 69 | { |
| 70 | 'libraries': ['git2'], |
| 71 | 'include_dirs': [str(x) for x in include_dirs], |
| 72 | 'library_dirs': [str(x) for x in library_dirs], |
| 73 | }, |
| 74 | ) |
no test coverage detected
searching dependent graphs…