pkg_config¶
- extension_helpers.pkg_config(packages, default_libraries, executable='pkg-config')¶
Uses pkg-config to update a set of setuptools Extension arguments to include the flags necessary to link against the given packages.
If the pkg-config lookup fails, default_libraries is applied to libraries.
- Parameters:
- Returns:
config – A dictionary containing keyword arguments to
Extension
. These entries include:include_dirs
: A list of include directorieslibrary_dirs
: A list of library directorieslibraries
: A list of librariesdefine_macros
: A list of macro definesundef_macros
: A list of macros to undefineextra_compile_args
: A list of extra arguments to pass to the compiler
- Return type: