MCPcopy Create free account
hub / github.com/libgit2/pygit2 / get_libgit2_paths

Function get_libgit2_paths

pygit2/_build.py:55–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54
55def 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 )

Callers 2

setup.pyFile · 0.90
_run.pyFile · 0.85

Calls 1

_get_libgit2_pathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…