bundle.pybind.services.pkgconfig ================================ .. py:module:: bundle.pybind.services.pkgconfig .. autoapi-nested-parse:: Defines PkgConfigService and PkgConfigResult (data class) Attributes ---------- .. autoapisummary:: bundle.pybind.services.pkgconfig.log Classes ------- .. autoapisummary:: bundle.pybind.services.pkgconfig.PkgConfigService Functions --------- .. autoapisummary:: bundle.pybind.services.pkgconfig.get_env_with_pkg_config_path Module Contents --------------- .. py:data:: log .. py:function:: get_env_with_pkg_config_path(extra_dirs: list[pathlib.Path] | None = None) -> dict[str, str] 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. .. py:class:: PkgConfigService(executable: str = 'pkg-config') .. py:attribute:: executable :value: 'pkg-config' .. py:method:: query(package_name: str, option: str, extra_dirs: list[str] | None = None) -> list[str] :async: Runs pkg-config for a single package with the given option. Returns the output as a list of strings. .. py:method:: resolve_pkgconfig(pkg_name: str, extra_dirs: list[str] | None = None) -> bundle.pybind.resolved.PkgConfigResult :async: .. py:method:: resolve(spec: bundle.pybind.specs.PkgConfigSpec) -> bundle.pybind.resolved.PkgConfigResolved :async: Resolves PkgConfigSpec to PkgConfigResolved by calling pkg-config for each package.