distutils.cygwinccompiler
index
/usr/lib/python1.6/distutils/cygwinccompiler.py

distutils.cygwinccompiler
 
Provides the CygwinCCompiler class, a subclass of UnixCCompiler that
handles the Cygwin port of the GNU C compiler to Windows.  It also contains
the Mingw32CCompiler class which handles the mingw32 port of GCC (same as
cygwin in no-cygwin mode).

 
Modules
            
copy
os
sys

 
Classes
            
distutils.unixccompiler.UnixCCompiler(distutils.ccompiler.CCompiler)
CygwinCCompiler
Mingw32CCompiler

 
class CygwinCCompiler(distutils.unixccompiler.UnixCCompiler)
       
  
__init__(self, verbose=0, dry_run=0, force=0)
_check_macro_definitions(self, definitions) from distutils.ccompiler.CCompiler
_find_macro(self, name) from distutils.ccompiler.CCompiler
_fix_compile_args(self, output_dir, macros, include_dirs) from distutils.ccompiler.CCompiler
_fix_lib_args(self, libraries, library_dirs, runtime_library_dirs) from distutils.ccompiler.CCompiler
_fix_object_args(self, objects, output_dir) from distutils.ccompiler.CCompiler
_need_link(self, objects, output_file) from distutils.ccompiler.CCompiler
_prep_compile(self, sources, output_dir) from distutils.ccompiler.CCompiler
add_include_dir(self, dir) from distutils.ccompiler.CCompiler
add_library(self, libname) from distutils.ccompiler.CCompiler
add_library_dir(self, dir) from distutils.ccompiler.CCompiler
add_link_object(self, object) from distutils.ccompiler.CCompiler
add_runtime_library_dir(self, dir) from distutils.ccompiler.CCompiler
announce(self, msg, level=1) from distutils.ccompiler.CCompiler
compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
create_static_lib(self, objects, output_libname, output_dir=None, debug=0) from distutils.unixccompiler.UnixCCompiler
debug_print(self, msg) from distutils.ccompiler.CCompiler
define_macro(self, name, value=None) from distutils.ccompiler.CCompiler
execute(self, func, args, msg=None, level=1) from distutils.ccompiler.CCompiler
find_library_file(self, dirs, lib, debug=0) from distutils.unixccompiler.UnixCCompiler
library_dir_option(self, dir) from distutils.unixccompiler.UnixCCompiler
library_filename(self, libname, lib_type='static', strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
library_option(self, lib) from distutils.unixccompiler.UnixCCompiler
link_executable(self, objects, output_progname, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, debug=0, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
link_shared_lib(self, objects, output_libname, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None) from distutils.unixccompiler.UnixCCompiler
link_shared_object(self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None)
mkpath(self, name, mode=511) from distutils.ccompiler.CCompiler
move_file(self, src, dst) from distutils.ccompiler.CCompiler
object_filenames(self, source_filenames, strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
preprocess(self, source, output_file=None, macros=None, include_dirs=None, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
runtime_library_dir_option(self, dir) from distutils.unixccompiler.UnixCCompiler
set_executable(self, key, value) from distutils.ccompiler.CCompiler
set_executables(self, **args) from distutils.ccompiler.CCompiler
set_include_dirs(self, dirs) from distutils.ccompiler.CCompiler
set_libraries(self, libnames) from distutils.ccompiler.CCompiler
set_library_dirs(self, dirs) from distutils.ccompiler.CCompiler
set_link_objects(self, objects) from distutils.ccompiler.CCompiler
set_runtime_library_dirs(self, dirs) from distutils.ccompiler.CCompiler
shared_object_filename(self, basename, strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
spawn(self, cmd) from distutils.ccompiler.CCompiler
undefine_macro(self, name) from distutils.ccompiler.CCompiler
warn(self, msg) from distutils.ccompiler.CCompiler

 
class Mingw32CCompiler(CygwinCCompiler)
      # the same as cygwin plus some additional parameters
 
  
__init__(self, verbose=0, dry_run=0, force=0)
_check_macro_definitions(self, definitions) from distutils.ccompiler.CCompiler
_find_macro(self, name) from distutils.ccompiler.CCompiler
_fix_compile_args(self, output_dir, macros, include_dirs) from distutils.ccompiler.CCompiler
_fix_lib_args(self, libraries, library_dirs, runtime_library_dirs) from distutils.ccompiler.CCompiler
_fix_object_args(self, objects, output_dir) from distutils.ccompiler.CCompiler
_need_link(self, objects, output_file) from distutils.ccompiler.CCompiler
_prep_compile(self, sources, output_dir) from distutils.ccompiler.CCompiler
add_include_dir(self, dir) from distutils.ccompiler.CCompiler
add_library(self, libname) from distutils.ccompiler.CCompiler
add_library_dir(self, dir) from distutils.ccompiler.CCompiler
add_link_object(self, object) from distutils.ccompiler.CCompiler
add_runtime_library_dir(self, dir) from distutils.ccompiler.CCompiler
announce(self, msg, level=1) from distutils.ccompiler.CCompiler
compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
create_static_lib(self, objects, output_libname, output_dir=None, debug=0) from distutils.unixccompiler.UnixCCompiler
debug_print(self, msg) from distutils.ccompiler.CCompiler
define_macro(self, name, value=None) from distutils.ccompiler.CCompiler
execute(self, func, args, msg=None, level=1) from distutils.ccompiler.CCompiler
find_library_file(self, dirs, lib, debug=0) from distutils.unixccompiler.UnixCCompiler
library_dir_option(self, dir) from distutils.unixccompiler.UnixCCompiler
library_filename(self, libname, lib_type='static', strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
library_option(self, lib) from distutils.unixccompiler.UnixCCompiler
link_executable(self, objects, output_progname, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, debug=0, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
link_shared_lib(self, objects, output_libname, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None) from distutils.unixccompiler.UnixCCompiler
link_shared_object(self, objects, output_filename, output_dir=None, libraries=None, library_dirs=None, runtime_library_dirs=None, export_symbols=None, debug=0, extra_preargs=None, extra_postargs=None, build_temp=None) from CygwinCCompiler
mkpath(self, name, mode=511) from distutils.ccompiler.CCompiler
move_file(self, src, dst) from distutils.ccompiler.CCompiler
object_filenames(self, source_filenames, strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
preprocess(self, source, output_file=None, macros=None, include_dirs=None, extra_preargs=None, extra_postargs=None) from distutils.unixccompiler.UnixCCompiler
runtime_library_dir_option(self, dir) from distutils.unixccompiler.UnixCCompiler
set_executable(self, key, value) from distutils.ccompiler.CCompiler
set_executables(self, **args) from distutils.ccompiler.CCompiler
set_include_dirs(self, dirs) from distutils.ccompiler.CCompiler
set_libraries(self, libnames) from distutils.ccompiler.CCompiler
set_library_dirs(self, dirs) from distutils.ccompiler.CCompiler
set_link_objects(self, objects) from distutils.ccompiler.CCompiler
set_runtime_library_dirs(self, dirs) from distutils.ccompiler.CCompiler
shared_object_filename(self, basename, strip_dir=0, output_dir='') from distutils.ccompiler.CCompiler
spawn(self, cmd) from distutils.ccompiler.CCompiler
undefine_macro(self, name) from distutils.ccompiler.CCompiler
warn(self, msg) from distutils.ccompiler.CCompiler

 
Functions
            
check_config_h()
Check if the current Python installation (specifically, config.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 config.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 "config.h" contains the string "__GNUC__".
get_versions()
 Try to find out the versions of gcc, ld and dllwrap.
If not possible it returns None for it.

 
Data
             CONFIG_H_NOTOK = 'not ok'
CONFIG_H_OK = 'ok'
CONFIG_H_UNCERTAIN = 'uncertain'
__file__ = '/usr/lib/python1.6/distutils/cygwinccompiler.pyc'
__name__ = 'distutils.cygwinccompiler'
__revision__ = '$Id: cygwinccompiler.py,v 1.6 2000/08/13 01:18:55 gward Exp $'