class documentation

class config(old_config):

View In Hierarchy

Undocumented

Method ​_check​_compiler Undocumented
Method ​_compile Undocumented
Method ​_link Undocumented
Method ​_wrap​_method Undocumented
Method check​_compiler​_gcc Return True if the C compiler is gcc
Method check​_decl Undocumented
Method check​_func Undocumented
Method check​_funcs​_once Check a list of functions at once.
Method check​_gcc​_function​_attribute Undocumented
Method check​_gcc​_function​_attribute​_with​_intrinsics Undocumented
Method check​_gcc​_variable​_attribute Undocumented
Method check​_gcc​_version​_at​_least Return True if the GCC version is greater than or equal to the specified version.
Method check​_header Undocumented
Method check​_inline Return the inline keyword recognized by the compiler, empty string otherwise.
Method check​_macro​_true Undocumented
Method check​_restrict Return the restrict keyword recognized by the compiler, empty string otherwise.
Method check​_type Check type availability. Return True if the type can be compiled, False otherwise
Method check​_type​_size Check size of a given type.
Method get​_output Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output.
Method initialize​_options Undocumented
Instance Variable compiler Undocumented
Instance Variable fcompiler Undocumented
def _check_compiler(self):

Undocumented

def _compile(self, body, headers, include_dirs, lang):

Undocumented

def _link(self, body, headers, include_dirs, libraries, library_dirs, lang):

Undocumented

def _wrap_method(self, mth, lang, args):

Undocumented

def check_compiler_gcc(self):
Return True if the C compiler is gcc
def check_decl(self, symbol, headers=None, include_dirs=None):

Undocumented

def check_func(self, func, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None):

Undocumented

def check_funcs_once(self, funcs, headers=None, include_dirs=None, libraries=None, library_dirs=None, decl=False, call=False, call_args=None):

Check a list of functions at once.

This is useful to speed up things, since all the functions in the funcs list will be put in one compilation unit.

Arguments

funcs : seq
list of functions to test
include_dirs : seq
list of header paths
libraries : seq
list of libraries to link the code snippet to
library_dirs : seq
list of library paths
decl : dict
for every (key, value), the declaration in the value will be used for function in key. If a function is not in the dictionary, no declaration will be used.
call : dict
for every item (f, value), if the value is True, a call will be done to the function f.
def check_gcc_function_attribute(self, attribute, name):

Undocumented

def check_gcc_function_attribute_with_intrinsics(self, attribute, name, code, include):

Undocumented

def check_gcc_variable_attribute(self, attribute):

Undocumented

def check_gcc_version_at_least(self, major, minor=0, patchlevel=0):
Return True if the GCC version is greater than or equal to the specified version.
def check_header(self, header, include_dirs=None, library_dirs=None, lang='c'):

Undocumented

def check_inline(self):
Return the inline keyword recognized by the compiler, empty string otherwise.
def check_macro_true(self, symbol, headers=None, include_dirs=None):

Undocumented

def check_restrict(self):
Return the restrict keyword recognized by the compiler, empty string otherwise.
def check_type(self, type_name, headers=None, include_dirs=None, library_dirs=None):
Check type availability. Return True if the type can be compiled, False otherwise
def check_type_size(self, type_name, headers=None, include_dirs=None, library_dirs=None, expected=None):
Check size of a given type.
def get_output(self, body, headers=None, include_dirs=None, libraries=None, library_dirs=None, lang='c', use_tee=None):
Try to compile, link to an executable, and run a program built from 'body' and 'headers'. Returns the exit status code of the program and its output.
def initialize_options(self):

Undocumented

compiler =

Undocumented

fcompiler =

Undocumented