pkgextension

automatically provide build args from to setuptools.Extension with pkg-config.


License
MIT
Install
pip install pkgextension==0.1

Documentation

Provides a setuptools.Extension subclass that allows automatic
configuration of Extension arguments (libraries, library_dirs, include_dirs,
etc) using pkg-config.

example:

from pkgextension import Extension

# automatically populates the correct arguments using the output
# of pkg-config for package 'fuse'.

ext = Extension("example",
    sources=["example.c"].
    pkg_config=['fuse'])