python-pkgconfig
Port variant v13
Summary Interface Python with pkg-config (3.13)
Package version 1.6.0
Homepage https://github.com/matze/pkgconfig
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 24 MAR 2026, 14:46:45 UTC
Port created 23 FEB 2022, 04:20:44 UTC
Subpackage Descriptions
single pkgconfig ========= pkgconfig is a Python module to interface with the ``pkg-config`` command-line tool for Python 3.9+. The ``pkg-config`` command-line tool typically comes from a package either called ``pkg-config`` (the original implementation) or pkgconf (a more recent, improved reimplementation intended as a drop-in replacement). The pkgconfig module can be used to - find all pkg-config packages :: >>> packages = pkgconfig.list_all() - check if a package exists :: >>> pkgconfig.exists('glib-2.0') True - check if a package meets certain version requirements :: >>> pkgconfig.installed('glib-2.0', '< 2.26') False - return the version :: >>> pkgconfig.modversion('glib-2.0') '2.56.3' - query CFLAGS and LDFLAGS :: >>> pkgconfig.cflags('glib-2.0') '-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include' >>> pkgconfig.libs('glib-2.0') '-lglib-2.0' - get all variables defined for a package:: >>> pkgconfig.variables('glib-2.0') {u'exec_prefix': u'/usr'} - parse the output to build extensions with setup.py :: >>> d = pkgconfig.parse('glib-2.0 gtk+-2.0') >>> d['libraries'] [u'gtk+-2.0', u'glib-2.0'] or :: >>> ext = Extension('foo', ['foo.c']) >>> # sets extension attributes as needed >>> pkgconfig.configure_extension(ext, 'glib-2.0 gtk+-2.0') The ``pkgconfig.parse`` function returns a dictionary of lists. The lists returned are accurate representations of the equivalent ``pkg-config`` call's results, both in content and order. If ``pkg-config`` is not on the PATH, an EnvironmentError is raised. The pkgconfig module is licensed under the MIT license. Changelog --------- Version 1.6.0 ~~~~~~~~~~~~~ - Drop support for Python < 3.9, support 3.9 .. 3.14. - README: clarify pkg-config and pkgconf, #75 - Switch CI from Travis to GitHub Actions; test on all supported Python versions. - Use src/ layout for project, fixes #36. Also move tests and test data to tests/. - Replace deprecated distutils with setuptools to make tests work on Python 3.12; fixes #64. - Fix configure_extension for empty cflags or libs. Version 1.5.5 ~~~~~~~~~~~~~ - Make tests more robust by sorting. Version 1.5.4 ~~~~~~~~~~~~~ - Adjust pyproject.toml and drop Python 2 support Version 1.5.3 ~~~~~~~~~~~~~ - Add configure_extension API Version 1.5.2 ~~~~~~~~~~~~~ - Update poetry dependency - Improve CI
Configuration Switches (platform-specific settings discarded)
PY313 ON Build using Python 3.13 PY314 OFF Build using Python 3.14
Package Dependencies by Type
Build (only) python313:dev:std
python-pip:single:v13
autoselect-python:single:std
Build and Runtime pkgconf:primary:std
python313:primary:std
Download groups
main mirror://PYPIWHL/75/6f/f7ec07fba48f07c555cc4099481df644fbbc12067879072c17ac229f6556
Distribution File Information
98e71754855e9563838d952a160eb577edabb57782e49853edb5381927e6bea1 7086 python-src/pkgconfig-1.6.0-py3-none-any.whl
Ports that require python-pkgconfig:v13
python-aiohttp:v13 Async http client/server framework (3.13)
python-borgbackup:v13 Deduplicated, encrypted, compressed backups (3.13)
python-uharfbuzz:v13 Steamlined harfbuzz cpython bindings (3.13)