instant.config

Package instant :: Module config |
[hide private]
[frames] | no frames]

# Module config

source code

This module contains helper functions for configuration using pkg-config.

Functions | [hide private]
get_swig_version() Return the current swig version in a 'str' | source code
check_swig_version(version, same=False) Check the swig version | source code
header_and_libs_from_pkgconfig(*packages, **kwargs) This function returns list of include files, flags, libraries and library directories obtain from a pkgconfig file. | source code

Variables | [hide private]
| __package__ = ``'``instant``'``

Function Details | [hide private]

### check_swig_version(version, same=False) | source code
    Check the swig version

    Returns True if the version of the installed swig is equal or greater than the
    version passed to the function.

    If same is True, the function returns True if and only if the two versions
    are the same.

    Usage:
    if instant.check_swig_version('1.3.36'):
        print "Swig version is greater than or equal to 1.3.36"
    else:
        print "Swig version is lower than 1.3.36"

### header_and_libs_from_pkgconfig(*packages, **kwargs) | source code
This function returns list of include files, flags, libraries and library directories obtain from a pkgconfig file. The usage is: (includes, flags, libraries, libdirs) = header_and_libs_from_pkgconfig(*list_of_packages)