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]
 
check_and_set_swig_binary(binary='swig', path='')
Check if a particular swig binary is available
source code
 
get_swig_binary()
Return any cached swig binary
source code
 
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]
  _swig_binary_cache = None
  _swig_version_cache = None
  _pkg_config_installed = None
  _header_and_library_cache = {}
  __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)
or:
    (includes, flags, libraries, libdirs, linkflags) =              header_and_libs_from_pkgconfig(*list_of_packages,              returnLinkFlags=True)