Return the path to the pybind11 pkgconfig directory.
()
| 28 | |
| 29 | |
| 30 | def 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) |