()
| 41 | # Utility functions to get the paths required for building extensions |
| 42 | # |
| 43 | def _get_libgit2_path() -> Path: |
| 44 | # LIBGIT2 environment variable takes precedence |
| 45 | libgit2_path = os.getenv('LIBGIT2') |
| 46 | if libgit2_path is not None: |
| 47 | return Path(libgit2_path) |
| 48 | |
| 49 | # Default |
| 50 | if os.name == 'nt': |
| 51 | return Path(r'%s\libgit2' % os.getenv('ProgramFiles')) |
| 52 | return Path('/usr/local') |
| 53 | |
| 54 | |
| 55 | def get_libgit2_paths() -> tuple[Path, dict[str, list[str]]]: |
no outgoing calls
no test coverage detected
searching dependent graphs…