Interface Python with pkg-config
Project description
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') Truecheck if a package meets certain version requirements
>>> pkgconfig.installed('glib-2.0', '< 2.26') Falsequery 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'parse the output to build extensions with setup.py
>>> d = pkgconfig.parse('glib-2.0') >>> d['libraries'] set([u'glib-2.0'])
The pkgconfig module is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pkgconfig-1.0.0.tar.gz
(3.7 kB
view details)
File details
Details for the file pkgconfig-1.0.0.tar.gz.
File metadata
- Download URL: pkgconfig-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87d5dbf85c0f4c0ec22547d4c979fbecaedd35a934fec6741334a4957368ff7a
|
|
| MD5 |
bd6d9ad1943535ffd9c0f5ae7398f8bb
|
|
| BLAKE2b-256 |
6f0b1d3498423cfcac1db48eca7fc867d4dba17feb76247ee06f7f46bd8b2836
|