bundle.pybind.services.pkgconfig¶
Defines PkgConfigService and PkgConfigResult (data class)
Attributes¶
Classes¶
Functions¶
|
Computes PKG_CONFIG_PATH and returns a modified copy of os.environ. |
Module Contents¶
- bundle.pybind.services.pkgconfig.log¶
- bundle.pybind.services.pkgconfig.get_env_with_pkg_config_path(extra_dirs: list[pathlib.Path] | None = None) dict[str, str][source]¶
Computes PKG_CONFIG_PATH and returns a modified copy of os.environ.
Parameters: - extra_dirs: Optional list of Path objects to prepend.
Returns: - A modified copy of os.environ with PKG_CONFIG_PATH set.
- class bundle.pybind.services.pkgconfig.PkgConfigService(executable: str = 'pkg-config')[source]¶
- executable = 'pkg-config'¶
- async query(package_name: str, option: str, extra_dirs: list[str] | None = None) list[str][source]¶
Runs pkg-config for a single package with the given option. Returns the output as a list of strings.
- async resolve_pkgconfig(pkg_name: str, extra_dirs: list[str] | None = None) bundle.pybind.resolved.PkgConfigResult[source]¶
- async resolve(spec: bundle.pybind.specs.PkgConfigSpec) bundle.pybind.resolved.PkgConfigResolved[source]¶
Resolves PkgConfigSpec to PkgConfigResolved by calling pkg-config for each package.