/usr/lib64/python2.6/distutils
NameSizeModeActions
command/-0755rm
archive_util.py63190644editdlrm
archive_util.pyc54970644editdlrm
archive_util.pyo54970644editdlrm
bcppcompiler.py150910644editdlrm
bcppcompiler.pyc81050644editdlrm
bcppcompiler.pyo81050644editdlrm
ccompiler.py488630644editdlrm
ccompiler.pyc378260644editdlrm
ccompiler.pyo376330644editdlrm
cmd.py192530644editdlrm
cmd.pyc169300644editdlrm
cmd.pyo169300644editdlrm
config.py41640644editdlrm
config.pyc36940644editdlrm
config.pyo36940644editdlrm
core.py90810644editdlrm
core.pyc76980644editdlrm
core.pyo76980644editdlrm
cygwinccompiler.py172920644editdlrm
cygwinccompiler.pyc95290644editdlrm
cygwinccompiler.pyo95290644editdlrm
debug.py2650644editdlrm
debug.pyc2990644editdlrm
debug.pyo2990644editdlrm
dep_util.py36320644editdlrm
dep_util.pyc32000644editdlrm
dep_util.pyo32000644editdlrm
dir_util.py81220644editdlrm
dir_util.pyc69040644editdlrm
dir_util.pyo69040644editdlrm
dist.py480070644editdlrm
dist.pyc381640644editdlrm
dist.pyo381640644editdlrm
emxccompiler.py119120644editdlrm
emxccompiler.pyc75500644editdlrm
emxccompiler.pyo75500644editdlrm
errors.py37200644editdlrm
errors.pyc63580644editdlrm
errors.pyo63580644editdlrm
extension.py103250644editdlrm
extension.pyc74080644editdlrm
extension.pyo71830644editdlrm
fancy_getopt.py184270644editdlrm
fancy_getopt.pyc124940644editdlrm
fancy_getopt.pyo123000644editdlrm
filelist.py128720644editdlrm
filelist.pyc108150644editdlrm
filelist.pyo108150644editdlrm
file_util.py83160644editdlrm
file_util.pyc68710644editdlrm
file_util.pyo68710644editdlrm
log.py16060644editdlrm
log.pyc25710644editdlrm
log.pyo25710644editdlrm
msvc9compiler.py287010644editdlrm
msvc9compiler.pyc205030644editdlrm
msvc9compiler.pyo204310644editdlrm
msvccompiler.py237600644editdlrm
msvccompiler.pyc177950644editdlrm
msvccompiler.pyo177950644editdlrm
mwerkscompiler.py103390644editdlrm
mwerkscompiler.pyc76740644editdlrm
mwerkscompiler.pyo76740644editdlrm
README10140644editdlrm
spawn.py69910644editdlrm
spawn.pyc55980644editdlrm
spawn.pyo55980644editdlrm
sysconfig.py228690644editdlrm
sysconfig.pyc160110644editdlrm
sysconfig.pyo160110644editdlrm
text_file.py151450644editdlrm
text_file.pyc112510644editdlrm
text_file.pyo112510644editdlrm
unixccompiler.py144940644editdlrm
unixccompiler.pyc90970644editdlrm
unixccompiler.pyo90970644editdlrm
util.py219780644editdlrm
util.pyc164260644editdlrm
util.pyo164260644editdlrm
version.py114860644editdlrm
version.pyc72440644editdlrm
version.pyo72440644editdlrm
versionpredicate.py50950644editdlrm
versionpredicate.pyc55970644editdlrm
versionpredicate.pyo55970644editdlrm
__init__.py6700644editdlrm
__init__.pyc4390644editdlrm
__init__.pyo4390644editdlrm
Edit: /usr/lib64/python2.6/distutils/ccompiler.pyc (37826B)
gc@sdZdZddkZddkZddkZddkTddklZddkTddkl Z ddk l Z ddk l Z dd klZlZdd klZlZdd klZd fd YZddfddfddfddfddffZeedZhdddfd6dddfd6ddd fd!6dd"d#fd$6d%d&d'fd(6d)d*d+fd6d,d-d.fd6Zd/Zeed0d0d0d1Zd2Zd3ZdS(4sdistutils.ccompiler Contains CCompiler, an abstract base class that defines the interface for the Distutils compiler abstraction model.s:$Id: ccompiler.py 77425 2010-01-11 22:54:57Z tarek.ziade $iN(t*(tcopy(tspawn(t move_file(tmkpath(tnewer_pairwiset newer_group(t split_quotedtexecute(tlogt CCompilerc Bs%eZdZdBZdBZdBZdBZdBZdBZ dBZ dBZ hdd6dd6dd6dd6dd6Z dddgZ d d d d Zd Zd Zd ZdZdBdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!dBdZ"dZ#d Z$d!Z%d"Z&dBdBdBdBdBd#Z'dBdBdBd dBdBdBd$Z(d%Z)dBd dBd&Z*d'Z+d(Z,d)Z-dBdBdBdBdBd dBdBdBdBd* Z.dBdBdBdBdBd dBdBdBdBd+ Z/dBdBdBdBdBd dBdBdBdBd, Z0dBdBdBdBd dBdBdBd-Z1d.Z2d/Z3d0Z4dBdBdBdBd1Z5d d2Z6d d3d4Z7d d3d5Z8d d3d6Z9d7d d3d8Z:d9d:Z;d;Z<d<Z=dBd9d=Z>d>Z?d?Z@d@dAZARS(CsAbstract base class to define the interface that must be implemented by real compiler classes. Also has some utility methods used by several compiler classes. The basic idea behind a compiler abstraction class is that each instance can be used for all the compile/link steps in building a single project. Thus, attributes common to all of those compile and link steps -- include directories, macros to define, libraries to link against, etc. -- are attributes of the compiler instance. To allow for variability in how individual files are treated, most of those attributes may be varied on a per-compilation or per-link basis. tcs.csc++s.ccs.cpps.cxxtobjcs.micCs||_||_||_d|_g|_g|_g|_g|_g|_ g|_ x.|i i D]}|i ||i |qjWdS(N(tdry_runtforcetverbosetNonet output_dirtmacrost include_dirst librariest library_dirstruntime_library_dirstobjectst executablestkeystset_executable(tselfRR Rtkey((s+/usr/lib64/python2.6/distutils/ccompiler.pyt__init__[s          cKs\xU|iD]G}||ijotd||iifn|i|||q WdS(sDefine the executables (and options for them) that will be run to perform the various stages of compilation. The exact set of executables that may be specified here depends on the compiler class (via the 'executables' class attribute), but most will have: compiler the C/C++ compiler linker_so linker used to create shared objects and libraries linker_exe linker used to create binary executables archiver static library creator On platforms with a command-line (Unix, DOS/Windows), each of these is a string that will be split into executable name and (optional) list of arguments. (Splitting the string is done similarly to how Unix shells operate: words are delimited by spaces, but quotes and backslashes can override this. See 'distutils.util.split_quoted()'.) s$unknown executable '%s' for class %sN(RRt ValueErrort __class__t__name__R(RtargsR((s+/usr/lib64/python2.6/distutils/ccompiler.pytset_executabless cCsAt|tjot||t|nt|||dS(N(ttypet StringTypetsetattrR(RRtvalue((s+/usr/lib64/python2.6/distutils/ccompiler.pyRscCs>d}x1|iD]&}|d|jo|S|d}qWdS(Nii(RR(Rtnametitdefn((s+/usr/lib64/python2.6/distutils/ccompiler.pyt _find_macros cCsx|D]}t|tjobt|djp;t|djo<t|dtjp|ddjot|dtjptd|ddqqWdS(sEnsures that every element of 'definitions' is a valid macro definition, ie. either (name,value) 2-tuple or a (name,) tuple. Do nothing if all definitions are OK, raise TypeError otherwise. iiisinvalid macro definition '%s': s.must be tuple (string,), (string, string), or s(string, None)N(R#t TupleTypetlenR$Rt TypeError(Rt definitionsR)((s+/usr/lib64/python2.6/distutils/ccompiler.pyt_check_macro_definitionss( cCsJ|i|}|dj o|i|=n||f}|ii|dS(s_Define a preprocessor macro for all compilations driven by this compiler object. The optional parameter 'value' should be a string; if it is not supplied, then the macro will be defined without an explicit value and the exact outcome depends on the compiler used (XXX true? does ANSI say anything about this?) N(R*RRtappend(RR'R&R(R)((s+/usr/lib64/python2.6/distutils/ccompiler.pyt define_macros   cCsG|i|}|dj o|i|=n|f}|ii|dS(sUndefine a preprocessor macro for all compilations driven by this compiler object. If the same macro is defined by 'define_macro()' and undefined by 'undefine_macro()' the last call takes precedence (including multiple redefinitions or undefinitions). If the macro is redefined/undefined on a per-compilation basis (ie. in the call to 'compile()'), then that takes precedence. N(R*RRR0(RR'R(tundefn((s+/usr/lib64/python2.6/distutils/ccompiler.pytundefine_macros   cCs|ii|dS(sAdd 'dir' to the list of directories that will be searched for header files. The compiler is instructed to search directories in the order in which they are supplied by successive calls to 'add_include_dir()'. N(RR0(Rtdir((s+/usr/lib64/python2.6/distutils/ccompiler.pytadd_include_dirscCst||_dS(sySet the list of directories that will be searched to 'dirs' (a list of strings). Overrides any preceding calls to 'add_include_dir()'; subsequence calls to 'add_include_dir()' add to the list passed to 'set_include_dirs()'. This does not affect any list of standard include directories that the compiler may search by default. N(RR(Rtdirs((s+/usr/lib64/python2.6/distutils/ccompiler.pytset_include_dirsscCs|ii|dS(sAdd 'libname' to the list of libraries that will be included in all links driven by this compiler object. Note that 'libname' should *not* be the name of a file containing a library, but the name of the library itself: the actual filename will be inferred by the linker, the compiler, or the compiler class (depending on the platform). The linker will be instructed to link against libraries in the order they were supplied to 'add_library()' and/or 'set_libraries()'. It is perfectly valid to duplicate library names; the linker will be instructed to link against libraries as many times as they are mentioned. N(RR0(Rtlibname((s+/usr/lib64/python2.6/distutils/ccompiler.pyt add_libraryscCst||_dS(sSet the list of libraries to be included in all links driven by this compiler object to 'libnames' (a list of strings). This does not affect any standard system libraries that the linker may include by default. N(RR(Rtlibnames((s+/usr/lib64/python2.6/distutils/ccompiler.pyt set_librariesscCs|ii|dS(s'Add 'dir' to the list of directories that will be searched for libraries specified to 'add_library()' and 'set_libraries()'. The linker will be instructed to search for libraries in the order they are supplied to 'add_library_dir()' and/or 'set_library_dirs()'. N(RR0(RR4((s+/usr/lib64/python2.6/distutils/ccompiler.pytadd_library_dirscCst||_dS(sSet the list of library search directories to 'dirs' (a list of strings). This does not affect any standard library search path that the linker may search by default. N(RR(RR6((s+/usr/lib64/python2.6/distutils/ccompiler.pytset_library_dirs&scCs|ii|dS(slAdd 'dir' to the list of directories that will be searched for shared libraries at runtime. N(RR0(RR4((s+/usr/lib64/python2.6/distutils/ccompiler.pytadd_runtime_library_dir.scCst||_dS(sSet the list of directories to search for shared libraries at runtime to 'dirs' (a list of strings). This does not affect any standard search path that the runtime linker may search by default. N(RR(RR6((s+/usr/lib64/python2.6/distutils/ccompiler.pytset_runtime_library_dirs4scCs|ii|dS(sAdd 'object' to the list of object files (or analogues, such as explicitly named library files or the output of "resource compilers") to be included in every link driven by this compiler object. N(RR0(Rtobject((s+/usr/lib64/python2.6/distutils/ccompiler.pytadd_link_object=scCst||_dS(sSet the list of object files (or analogues) to be included in every link to 'objects'. This does not affect any standard object files that the linker may include by default (such as system libraries). N(RR(RR((s+/usr/lib64/python2.6/distutils/ccompiler.pytset_link_objectsEscCs|djo |i}n!t|tj o tdn|djo |i}n5t|tjo||ipg}n td|djo |i}nAt|ttfjot ||ipg}n td|djo g}n|i |ddd|}t |t |jpt t ||}h} xmtt |D]Y} || } || } tii| d} |itii| | | f| |                cCs>|dg}|odg|d*n|o||d*n|S(Ns-cs-gi((RRStdebugtbeforetcc_args((s+/usr/lib64/python2.6/distutils/ccompiler.pyt _get_cc_argss  cCs|djo |i}n!t|tj o tdn|djo |i}n5t|tjo||ipg}n td|djo |i}nAt|ttfjot ||ipg}n td|||fS(s'Typecheck and fix-up some of the arguments to the 'compile()' method, and return fixed-up values. Specifically: if 'output_dir' is None, replaces it with 'self.output_dir'; ensures that 'macros' is a list, and augments it with 'self.macros'; ensures that 'include_dirs' is a list, and augments it with 'self.include_dirs'. Guarantees that the returned values are of the correct type, i.e. for 'output_dir' either string or None, and for 'macros' and 'include_dirs' either list or None. s%'output_dir' must be a string or Nones/'macros' (if supplied) must be a list of tupless6'include_dirs' (if supplied) must be a list of stringsN( RRR#R$R-RRDRR+RE(RRRR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt_fix_compile_argss        cCs?|i|d|}t|t|jpt|hfS(s+Decide which souce files must be recompiled. Determine the list of object files corresponding to 'sources', and figure out which ones really need to be recompiled. Return a list of all object files and a dictionary telling which source files can be skipped. R(RFR,RG(RRPRRQR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt _prep_compiles  cCsvt|ttfjo tdnt|}|djo |i}n!t|tj o tdn||fS(sTypecheck and fix up some arguments supplied to various methods. Specifically: ensure that 'objects' is a list; if output_dir is None, replace with self.output_dir. Return fixed versions of 'objects' and 'output_dir'. s,'objects' must be a list or tuple of stringss%'output_dir' must be a string or NoneN(R#RDR+R-RERRR$(RRR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt_fix_object_argss     cCs|djo |i}nAt|ttfjot||ipg}n td|djo |i}nAt|ttfjot||ipg}n td|djo |i}nEt|ttfjot||ipg}ntdd|||fS(s;Typecheck and fix up some of the arguments supplied to the 'link_*' methods. Specifically: ensure that all arguments are lists, and augment them with their permanent versions (eg. 'self.libraries' augments 'libraries'). Return a tuple with fixed versions of all arguments. s3'libraries' (if supplied) must be a list of stringss6'library_dirs' (if supplied) must be a list of stringss%'runtime_library_dirs' (if supplied) smust be a list of stringsN( RRR#RDR+RER-RR(RRRR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt _fix_lib_argss*       cCsI|iodS|iot||dd}nt||}|SdS(sjReturn true if we need to relink the files listed in 'objects' to recreate 'output_file'. itmissingtnewerN(RR R(RRt output_fileRb((s+/usr/lib64/python2.6/distutils/ccompiler.pyt _need_links   c Cst|tj o |g}nd}t|i}x|D]y}tii|\}}|ii |}y3|ii |}||jo|}|}nWq<t j oq<Xq<W|S(s|Detect the language of a given file, or list of files. Uses language_map, and language_order to do the job. N( R#RDRR,tlanguage_orderRJRKRLt language_maptgettindexR( RRPtlangRhtsourcetbaseRWtextlangtextindex((s+/usr/lib64/python2.6/distutils/ccompiler.pytdetect_languages    cCsdS(sPreprocess a single C/C++ source file, named in 'source'. Output will be written to file named 'output_file', or stdout if 'output_file' not supplied. 'macros' is a list of macro definitions as for 'compile()', which will augment the macros set with 'define_macro()' and 'undefine_macro()'. 'include_dirs' is a list of directory names that will be added to the default list. Raises PreprocessError on failure. N((RRjRcRRt extra_preargstextra_postargs((s+/usr/lib64/python2.6/distutils/ccompiler.pyt preprocesssc  Cs|i||||||\}} }} } |i| ||} xW| D]O} y| | \}}Wntj o qInX|i| ||| || qIW| S(sK Compile one or more source files. 'sources' must be a list of filenames, most likely C/C++ files, but in reality anything that can be handled by a particular compiler and compiler class (eg. MSVCCompiler can handle resource files in 'sources'). Return a list of object filenames, one per source filename in 'sources'. Depending on the implementation, not all source files will necessarily be compiled, but all corresponding object filenames will be returned. If 'output_dir' is given, object files will be put under it, while retaining their original path component. That is, "foo/bar.c" normally compiles to "foo/bar.o" (for a Unix implementation); if 'output_dir' is "build", then it would compile to "build/foo/bar.o". 'macros', if given, must be a list of macro definitions. A macro definition is either a (name, value) 2-tuple or a (name,) 1-tuple. The former defines a macro; if the value is None, the macro is defined without an explicit value. The 1-tuple case undefines a macro. Later definitions/redefinitions/ undefinitions take precedence. 'include_dirs', if given, must be a list of strings, the directories to add to the default include file search path for this compilation only. 'debug' is a boolean; if true, the compiler will be instructed to output debug symbols in (or alongside) the object file(s). 'extra_preargs' and 'extra_postargs' are implementation- dependent. On platforms that have the notion of a command-line (e.g. Unix, DOS/Windows), they are most likely lists of strings: extra command-line arguments to prepand/append to the compiler command line. On other platforms, consult the implementation class documentation. In any event, they are intended as an escape hatch for those occasions when the abstract compiler framework doesn't cut the mustard. 'depends', if given, is a list of filenames that all targets depend on. If a source file is older than any file in depends, then the source file will be recompiled. This supports dependency tracking, but only at a coarse granularity. Raises CompileError on failure. (RXR\tKeyErrort_compile(RRPRRRRYRoRpRQRRSRTR[RVRURW((s+/usr/lib64/python2.6/distutils/ccompiler.pytcompile-s7 cCsdS(sCompile 'src' to product 'obj'.N((RRVRURWR[RpRS((s+/usr/lib64/python2.6/distutils/ccompiler.pyRsrscCsdS(s&Link a bunch of stuff together to create a static library file. The "bunch of stuff" consists of the list of object files supplied as 'objects', the extra object files supplied to 'add_link_object()' and/or 'set_link_objects()', the libraries supplied to 'add_library()' and/or 'set_libraries()', and the libraries supplied as 'libraries' (if any). 'output_libname' should be a library name, not a filename; the filename will be inferred from the library name. 'output_dir' is the directory where the library file will be put. 'debug' is a boolean; if true, debugging information will be included in the library (note that on most platforms, it is the compile step where this matters: the 'debug' flag is included here just for consistency). 'target_lang' is the target language for which the given objects are being compiled. This allows specific linkage time treatment of certain languages. Raises LibError on failure. N((RRtoutput_libnameRRYt target_lang((s+/usr/lib64/python2.6/distutils/ccompiler.pytcreate_static_libyst shared_objecttshared_libraryt executablecCs tdS(suLink a bunch of stuff together to create an executable or shared library file. The "bunch of stuff" consists of the list of object files supplied as 'objects'. 'output_filename' should be a filename. If 'output_dir' is supplied, 'output_filename' is relative to it (i.e. 'output_filename' can provide directory components if needed). 'libraries' is a list of libraries to link against. These are library names, not filenames, since they're translated into filenames in a platform-specific way (eg. "foo" becomes "libfoo.a" on Unix and "foo.lib" on DOS/Windows). However, they can include a directory component, which means the linker will look in that specific directory rather than searching all the normal locations. 'library_dirs', if supplied, should be a list of directories to search for libraries that were specified as bare library names (ie. no directory component). These are on top of the system default and those supplied to 'add_library_dir()' and/or 'set_library_dirs()'. 'runtime_library_dirs' is a list of directories that will be embedded into the shared library and used to search for other shared libraries that *it* depends on at run-time. (This may only be relevant on Unix.) 'export_symbols' is a list of symbols that the shared library will export. (This appears to be relevant only on Windows.) 'debug' is as for 'compile()' and 'create_static_lib()', with the slight distinction that it actually matters on most platforms (as opposed to 'create_static_lib()', which includes a 'debug' flag mostly for form's sake). 'extra_preargs' and 'extra_postargs' are as for 'compile()' (except of course that they supply command-line arguments for the particular linker being used). 'target_lang' is the target language for which the given objects are being compiled. This allows specific linkage time treatment of certain languages. Raises LinkError on failure. N(tNotImplementedError(Rt target_descRtoutput_filenameRRRRtexport_symbolsRYRoRpt build_tempRv((s+/usr/lib64/python2.6/distutils/ccompiler.pytlinks9c CsG|iti||i|dd||||||| | | | dS(Ntlib_typetshared(RR tSHARED_LIBRARYtlibrary_filename( RRRuRRRRR~RYRoRpRRv((s+/usr/lib64/python2.6/distutils/ccompiler.pytlink_shared_libs  c Cs8|iti||||||||| | | | dS(N(RR t SHARED_OBJECT( RRR}RRRRR~RYRoRpRRv((s+/usr/lib64/python2.6/distutils/ccompiler.pytlink_shared_objects  c CsA|iti||i|||||d||| d| dS(N(RR t EXECUTABLEtexecutable_filenameR( RRtoutput_prognameRRRRRYRoRpRv((s+/usr/lib64/python2.6/distutils/ccompiler.pytlink_executables  cCs tdS(skReturn the compiler option to add 'dir' to the list of directories searched for libraries. N(R{(RR4((s+/usr/lib64/python2.6/distutils/ccompiler.pytlibrary_dir_optionscCs tdS(ssReturn the compiler option to add 'dir' to the list of directories searched for runtime libraries. N(R{(RR4((s+/usr/lib64/python2.6/distutils/ccompiler.pytruntime_library_dir_option scCs tdS(sReturn the compiler option to add 'dir' to the list of libraries linked into the shared library or executable. N(R{(Rtlib((s+/usr/lib64/python2.6/distutils/ccompiler.pytlibrary_option&sc CsIddk}|djo g}n|djo g}n|djo g}n|djo g}n|id|dt\}}ti|d} x|D]} | id| qW| id|| iy|i|gd|} Wnt j ot SXy |i | d d |d |Wnt t fj ot SXtS( sReturn a boolean indicating whether funcname is supported on the current platform. The optional arguments can be used to augment the compilation environment. iNs.cttexttws#include "%s" s+main (int argc, char **argv) { %s(); } Rsa.outRR(ttempfileRtmkstemptTrueRJtfdopentwritetcloseRtt CompileErrortFalseRt LinkErrorR-( RtfuncnametincludesRRRRtfdtfnametftinclR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt has_function,s8            cCs tdS(sHSearch the specified list of directories for a static or shared library file 'lib' and return the full path to that file. If 'debug' true, look for a debugging version (if that makes sense on the current platform). Return None if 'lib' wasn't found in any of the specified directories. N(R{(RR6RRY((s+/usr/lib64/python2.6/distutils/ccompiler.pytfind_library_fileYstcCs|djo d}ng}x|D]}tii|\}}tii|d}|tii|}||ijotd||fn|otii|}n|i tii |||i q$W|S(NRis"unknown file type '%s' (from '%s')( RRJRKRLt splitdrivetisabstsrc_extensionstUnknownFileErrortbasenameR0tjoint obj_extension(Rtsource_filenamesRCRt obj_namestsrc_nameRkRW((s+/usr/lib64/python2.6/distutils/ccompiler.pyRFs   cCsK|dj pt|otii|}ntii|||iS(N(RRGRJRKRRtshared_lib_extension(RRRCR((s+/usr/lib64/python2.6/distutils/ccompiler.pytshared_object_filenamescCsR|dj pt|otii|}ntii|||ipdS(NR(RRGRJRKRRt exe_extension(RRRCR((s+/usr/lib64/python2.6/distutils/ccompiler.pyRststaticc Cs|dj pt|djo tdnt||d}t||d}tii|\}}|||f} |o d}ntii||| S( NRRtdylibs0'lib_type' must be "static", "shared" or "dylib"t _lib_formatt_lib_extensionR(RssharedR(RRGRtgetattrRJRKtsplitR( RR8RRCRtfmtRWR4Rktfilename((s+/usr/lib64/python2.6/distutils/ccompiler.pyRs   icCsti|dS(N(R RY(Rtmsgtlevel((s+/usr/lib64/python2.6/distutils/ccompiler.pytannouncescCs$ddkl}|o |GHndS(Ni(tDEBUG(tdistutils.debugR(RRR((s+/usr/lib64/python2.6/distutils/ccompiler.pyt debug_printscCstiid|dS(Ns warning: %s (tsyststderrR(RR((s+/usr/lib64/python2.6/distutils/ccompiler.pytwarnscCst||||idS(N(RR (RtfuncR!RR((s+/usr/lib64/python2.6/distutils/ccompiler.pyRscCst|d|idS(NR (RR (Rtcmd((s+/usr/lib64/python2.6/distutils/ccompiler.pyRscCst||d|iS(NR (RR (RRUtdst((s+/usr/lib64/python2.6/distutils/ccompiler.pyRsicCst||d|idS(NR (RR (RR'tmode((s+/usr/lib64/python2.6/distutils/ccompiler.pyRsN(BR t __module__t__doc__Rt compiler_typeRRtstatic_lib_extensionRtstatic_lib_formattshared_lib_formatRRfReRR"RR*R/R1R3R5R7R9R;R<R=R>R?RARBRXR\R]R^R_R`RdRnRqRtRsRwRRRRRRRRRRRRRFRRRRRRRRRR(((s+/usr/lib64/python2.6/distutils/ccompiler.pyR s     ( $            , "   &    C   4      ) +     scygwin.*tunixtos2emxtemxtposixtnttmsvctmactmwerkscCs|djo ti}n|djo ti}nxKtD]C\}}ti||dj pti||dj o|Sq;WdS(sr Determine the default compiler to use for the given platform. osname should be one of the standard Python OS names (i.e. the ones returned by os.name) and platform the common value returned by sys.platform for the platform in question. The default values are os.name and sys.platform in case the parameters are not given. RN(RRJR'Rtplatformt_default_compilerstretmatch(tosnameRtpatterntcompiler((s+/usr/lib64/python2.6/distutils/ccompiler.pytget_default_compilers      t unixccompilert UnixCCompilersstandard UNIX-style compilert msvccompilert MSVCCompilersMicrosoft Visual C++tcygwinccompilertCygwinCCompilers'Cygwin port of GNU C Compiler for Win32tcygwintMingw32CCompilers(Mingw32 port of GNU C Compiler for Win32tmingw32t bcppcompilert BCPPCompilersBorland C++ CompilertbcpptmwerkscompilertMWerksCompilersMetroWerks CodeWarriort emxccompilert EMXCCompilers#EMX port of GNU C Compiler for OS/2cCsvddkl}g}x6tiD](}|id|dt|dfq#W|i||}|iddS(syPrint list of available compilers (used by the "--help-compiler" options to "build", "build_ext", "build_clib"). i(t FancyGetopts compiler=isList of available compilers:N(tdistutils.fancy_getoptRtcompiler_classRR0Rtsortt print_help(Rt compilersRtpretty_printer((s+/usr/lib64/python2.6/distutils/ccompiler.pytshow_compilers s   ic Cs'|djo ti}ny4|djot|}nt|\}}}WnEtj o9d|}|dj o|d|}nt|nXy5d|}t|ti |} t | |} WnIt j ot d|n+tj ot dd||fnX| d||S(s[Generate an instance of some CCompiler subclass for the supplied platform/compiler combination. 'plat' defaults to 'os.name' (eg. 'posix', 'nt'), and 'compiler' defaults to the default compiler for that platform. Currently only 'posix' and 'nt' are supported, and the default compilers are "traditional Unix interface" (UnixCCompiler class) and Visual C++ (MSVCCompiler class). Note that it's perfectly possible to ask for a Unix compiler object under Windows, and a Microsoft compiler object under Unix -- if you supply a value for 'compiler', 'plat' is ignored. s5don't know how to compile C/C++ code on platform '%s's with '%s' compilers distutils.s4can't compile C/C++ code: unable to load module '%s's4can't compile C/C++ code: unable to find class '%s' sin module '%s'N( RRJR'RRRrtDistutilsPlatformErrort __import__Rtmodulestvarst ImportErrortDistutilsModuleError( tplatRRR Rt module_namet class_nametlong_descriptionRtmoduletklass((s+/usr/lib64/python2.6/distutils/ccompiler.pyt new_compilers2         cCsg}x|D]}t|tjo!dt|jo djnptdd|nt|djo|id|dq t|djo?|dd jo|id|dq|id|q q Wx|D]}|id |qW|S( sGenerate C pre-processor options (-D, -U, -I) as used by at least two types of compilers: the typical Unix compiler and Visual C++. 'macros' is the usual thing, a list of 1- or 2-tuples, where (name,) means undefine (-U) macro 'name', and (name,value) means define (-D) macro 'name' to 'value'. 'include_dirs' is just a list of directory names to be added to the header file search path (-I). Returns a list of command-line options suitable for either Unix compilers or Visual C++. iisbad macro definition '%s': s5each element of 'macros' list must be a 1- or 2-tuples-U%sis-D%ss-D%s=%ss-I%sN(R#R+R,R-R0R(RRRStmacroR4((s+/usr/lib64/python2.6/distutils/ccompiler.pyRHNs&$ c Csg}x$|D]}|i|i|q WxK|D]C}|i|}t|tjo||}q4|i|q4Wx|D]}}tii|\}} |oB|i|g| } | o|i| q|i d|q|i|i |qW|S(scGenerate linker options for searching library directories and linking with specific libraries. 'libraries' and 'library_dirs' are, respectively, lists of library names (not filenames!) and search directories. Returns a list of command-line options suitable for use with some compiler (depending on the two format strings passed in). s6no library file corresponding to '%s' found (skipping)( R0RRR#RDRJRKRRRR( RRRRtlib_optsR4toptRtlib_dirtlib_nametlib_file((s+/usr/lib64/python2.6/distutils/ccompiler.pytgen_lib_optionss*  (Rt __revision__RRJRttypesRtdistutils.errorstdistutils.spawnRtdistutils.file_utilRtdistutils.dir_utilRtdistutils.dep_utilRRtdistutils.utilRRt distutilsR R RRRRRRRHR(((s+/usr/lib64/python2.6/distutils/ccompiler.pytsV$                - 3