Skip to main content

Interface Python with pkg-config

Project description


`|Build Status| <>`_

``pkgconfig`` is a Python module to interface with the ``pkg-config``
command line tool and supports Python 2.6+.

It can be used to

- check if a package exists


>>> pkgconfig.exists('glib-2.0')

- check if a package meets certain version requirements


>>> pkgconfig.installed('glib-2.0', '< 2.26')

- 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')

The ``pkgconfig`` module is licensed under the MIT license.

.. |Build
Status| image::

Project details

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page