{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools"}],"enrichment":{"capability":"pkgconfig wraps the pkg-config command-line tool to query system package metadata\u2014versions, compiler flags, library paths\u2014from Python code, typically for use in build scripts and extension configuration.","skillfed_tags":["build-tools","system-integration"],"use_cases":["Configure C extension builds in setup.py by querying CFLAGS and LDFLAGS for system libraries like GTK or GLib.","Check whether required system packages are installed and meet version constraints before proceeding with installation or build.","Discover all available pkg-config packages on a system and extract their metadata for dependency resolution.","Parse multiple packages in one call to build a unified set of compiler and linker flags for complex multi-library projects.","Extract custom variables defined in .pc files for packages that expose non-standard build metadata."],"what_it_does":"pkgconfig is a Python wrapper around the pkg-config command-line tool that lets you query system package metadata programmatically. It exposes functions to check package existence, retrieve versions, extract compiler flags (CFLAGS) and linker flags (LDFLAGS), list all available packages, and parse multiple packages at once. The module is particularly useful in build scripts and setup.py files where you need to dynamically configure C extensions based on installed system libraries.\n\nThe package requires Python 3.9 or later and has no Python dependencies\u2014it simply shells out to pkg-config or pkgconf on the system. It is licensed under MIT and marked as production/stable, with active maintenance and support for current Python versions through 3.14.","worth_installing":"Yes. pkgconfig is a lightweight, stable, actively maintained wrapper with no Python dependencies and permissive licensing. Install it if you need to query system package metadata from Python\u2014especially in build scripts or when configuring C extensions. The only prerequisite is that pkg-config or pkgconf be installed on the system; if that's not available, the module will raise an error at runtime."},"id":"pkgconfig","links":{"html":"https://skillfed.io/packages/pkgconfig","md":"https://skillfed.io/packages/pkgconfig.md","pypi":"https://pypi.org/project/pkgconfig/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-06","license_spdx":null,"license_treatment":"permissive","name":"pkgconfig","python_support":"supports_current","summary":"Interface Python with pkg-config"},"popularity":{"monthly_downloads":6648684,"position":1875,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.6.0"}
