MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_pkgconfig_dir

Function get_pkgconfig_dir

pybind11/commands.py:30–39  ·  view source on GitHub ↗

Return the path to the pybind11 pkgconfig directory.

()

Source from the content-addressed store, hash-verified

28
29
30def get_pkgconfig_dir() -> str:
31 """
32 Return the path to the pybind11 pkgconfig directory.
33 """
34 pkgconfig_installed_path = os.path.join(DIR, "share", "pkgconfig")
35 if os.path.exists(pkgconfig_installed_path):
36 return pkgconfig_installed_path
37
38 msg = "pybind11 not installed, installation required to access the pkgconfig files"
39 raise ImportError(msg)

Callers 1

mainFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected