Package distutils :: Module emxccompiler
[hide private]
[frames] | no frames]

Module emxccompiler

distutils.emxccompiler

Provides the EMXCCompiler class, a subclass of UnixCCompiler that handles the EMX port of the GNU C compiler to OS/2.

Classes [hide private]
EMXCCompiler
Functions [hide private]
 
check_config_h()
Check if the current Python installation (specifically, pyconfig.h) appears amenable to building extensions with GCC.
 
get_versions()
Try to find out the versions of gcc and ld.
Variables [hide private]
  __revision__ = '$Id: emxccompiler.py 34786 2003-12-02 12:17:59...
  CONFIG_H_OK = 'ok'
  CONFIG_H_NOTOK = 'not ok'
  CONFIG_H_UNCERTAIN = 'uncertain'

Imports: os, sys, copy, gen_preprocess_options, gen_lib_options, UnixCCompiler, write_file, DistutilsExecError, CompileError, UnknownFileError, log


Function Details [hide private]

check_config_h()

 
Check if the current Python installation (specifically, pyconfig.h)
appears amenable to building extensions with GCC.  Returns a tuple
(status, details), where 'status' is one of the following constants:
  CONFIG_H_OK
    all is well, go ahead and compile
  CONFIG_H_NOTOK
    doesn't look good
  CONFIG_H_UNCERTAIN
    not sure -- unable to read pyconfig.h
'details' is a human-readable string explaining the situation.

Note there are two ways to conclude "OK": either 'sys.version' contains
the string "GCC" (implying that this Python was built with GCC), or the
installed "pyconfig.h" contains the string "__GNUC__".

get_versions()

 

Try to find out the versions of gcc and ld. If not possible it returns None for it.


Variables Details [hide private]

__revision__

Value:
'$Id: emxccompiler.py 34786 2003-12-02 12:17:59Z aimacintyre $'