/usr/lib64/python2.6/distutils/command
NameSizeModeActions
bdist.py55610644editdlrm
bdist.pyc47100644editdlrm
bdist.pyo47100644editdlrm
bdist_dumb.py49010644editdlrm
bdist_dumb.pyc46270644editdlrm
bdist_dumb.pyo46270644editdlrm
bdist_msi.py313880644editdlrm
bdist_msi.pyc223090644editdlrm
bdist_msi.pyo222310644editdlrm
bdist_rpm.py202100644editdlrm
bdist_rpm.py.brprpm201890644editdlrm
bdist_rpm.pyc174480644editdlrm
bdist_rpm.pyo173600644editdlrm
bdist_wininst.py149300644editdlrm
bdist_wininst.pyc108140644editdlrm
bdist_wininst.pyo107360644editdlrm
build.py55980644editdlrm
build.pyc52200644editdlrm
build.pyo52200644editdlrm
build_clib.py86590644editdlrm
build_clib.pyc65790644editdlrm
build_clib.pyo65790644editdlrm
build_ext.py322790644editdlrm
build_ext.pyc197050644editdlrm
build_ext.pyo197050644editdlrm
build_py.py168200644editdlrm
build_py.pyc118680644editdlrm
build_py.pyo117910644editdlrm
build_scripts.py46920644editdlrm
build_scripts.pyc46090644editdlrm
build_scripts.pyo46090644editdlrm
clean.py29180644editdlrm
clean.pyc32330644editdlrm
clean.pyo32330644editdlrm
command_template7190644editdlrm
config.py133910644editdlrm
config.pyc127970644editdlrm
config.pyo127970644editdlrm
install.py267810644editdlrm
install.pyc172800644editdlrm
install.pyo172800644editdlrm
install_data.py29940644editdlrm
install_data.pyc32780644editdlrm
install_data.pyo32780644editdlrm
install_egg_info.py25870644editdlrm
install_egg_info.pyc37750644editdlrm
install_egg_info.pyo37750644editdlrm
install_headers.py14490644editdlrm
install_headers.pyc23660644editdlrm
install_headers.pyo23660644editdlrm
install_lib.py85770644editdlrm
install_lib.pyc69400644editdlrm
install_lib.pyo69400644editdlrm
install_scripts.py21810644editdlrm
install_scripts.pyc30630644editdlrm
install_scripts.pyo30630644editdlrm
register.py114540644editdlrm
register.pyc100690644editdlrm
register.pyo100690644editdlrm
sdist.py184520644editdlrm
sdist.pyc154630644editdlrm
sdist.pyo154630644editdlrm
upload.py66690644editdlrm
upload.pyc62110644editdlrm
upload.pyo61780644editdlrm
wininst-6.0.exe614400644editdlrm
wininst-7.1.exe655360644editdlrm
wininst-8.0.exe614400644editdlrm
wininst-9.0-amd64.exe2237440644editdlrm
wininst-9.0.exe1960960644editdlrm
__init__.py9150644editdlrm
__init__.pyc7040644editdlrm
__init__.pyo7040644editdlrm
Edit: /usr/lib64/python2.6/distutils/command/config.pyc (12797B)
Ńň Ťgc @sŔdZdZddkZddkZddkZddkZddkTddklZddk l Z ddk l Z ddk lZhd d 6d d 6Zd efd„ƒYZed„ZdS(sędistutils.command.config Implements the Distutils 'config' command, a (mostly) empty command class that exists mainly to be sub-classed by specific module distributions and applications. The idea is that while every "config" command is different, at least they're all named the same, and users always see "config" in the list of standard commands. Also, this is a good place to put common configure-like tasks: "try to compile this C code", or "figure out where this header file lives". s2$Id: config.py 37828 2004-11-10 22:23:15Z loewis $i˙˙˙˙N(t*(tCommand(tDistutilsExecError(tcustomize_compiler(tlogs.ctcs.cxxsc++tconfigc Bs.eZdZd,d-d.d/d0d1d2d3d4g Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z d„Z d „Z d+d+d+d!d"„Zd+d+d+d!d#„Zd+d+d!d$„Zd+d+d+d+d!d%„Zd+d+d+d+d!d&„Zd+d+d+d+d'd'd(„Zd+d+d+gd)„Zd+d+d!d*„ZRS(5sprepare to builds compiler=sspecify the compiler typescc=sspecify the compiler executables include-dirs=tIs.list of directories to search for header filessdefine=tDsC preprocessor macros to definesundef=tUs!C preprocessor macros to undefines libraries=tls!external C libraries to link withs library-dirs=tLs.directories to search for external C librariestnoisys1show every action (compile, link, run, ...) takens dump-sources=dump generated source files before attempting to compile themcCsLd|_d|_d|_d|_d|_d|_d|_g|_dS(Ni( tNonetcompilertcct include_dirst librariest library_dirsR t dump_sourcet temp_files(tself((s0/usr/lib64/python2.6/distutils/command/config.pytinitialize_options8s       cCsű|idjo|iipg|_n6t|iƒtjoti|itiƒ|_n|i djo g|_ n*t|i ƒtjo|i g|_ n|i djo g|_ n6t|i ƒtjoti|i tiƒ|_ ndS(N( RR t distributionttypet StringTypetstringtsplittostpathsepRR(R((s0/usr/lib64/python2.6/distutils/command/config.pytfinalize_optionsIs  cCsdS(N((R((s0/usr/lib64/python2.6/distutils/command/config.pytrunZscCsĹddkl}l}t|i|ƒp˜|d|id|iddƒ|_t|iƒ|io|ii|iƒn|i o|ii |i ƒn|i o|ii |i ƒqÁndS(s^Check that 'self.compiler' really is a CCompiler object; if not, make it one. i˙˙˙˙(t CCompilert new_compilerRtdry_runtforceiN( tdistutils.ccompilerR R!t isinstanceRR"RRtset_include_dirsRt set_librariesRtset_library_dirs(RR R!((s0/usr/lib64/python2.6/distutils/command/config.pyt_check_compilerbs    cCs”dt|}t|dƒ}|o3x|D]}|id|ƒq+W|idƒn|i|ƒ|ddjo|idƒn|iƒ|S(Nt _configtesttws#include <%s> s i˙˙˙˙(tLANG_EXTtopentwritetclose(Rtbodytheaderstlangtfilenametfiletheader((s0/usr/lib64/python2.6/distutils/command/config.pyt_gen_temp_sourcefileus  cCsT|i|||ƒ}d}|ii||gƒ|ii||d|ƒ||fS(Ns _configtest.iR(R6RtextendRt preprocess(RR0R1RR2tsrctout((s0/usr/lib64/python2.6/distutils/command/config.pyt _preprocess‚s cCs…|i|||ƒ}|iot|d|ƒn|ii|gƒ\}|ii||gƒ|ii|gd|ƒ||fS(Nscompiling '%s':R(R6Rt dump_fileRtobject_filenamesRR7tcompile(RR0R1RR2R9tobj((s0/usr/lib64/python2.6/distutils/command/config.pyt_compile‰s c CsŹ|i||||ƒ\}}tiitii|ƒƒd} |ii|g| d|d|d|ƒ|iidj o| |ii} n|i i | ƒ||| fS(NiRRt target_lang( R@RtpathtsplitexttbasenameRtlink_executablet exe_extensionR Rtappend( RR0R1RRRR2R9R?tprog((s0/usr/lib64/python2.6/distutils/command/config.pyt_link’s"cGsr|p|i}g|_ntidti|ƒƒx5|D]-}yti|ƒWq=tj oq=Xq=WdS(Ns removing: %s(RRtinfoRtjoinRtremovetOSError(Rt filenamesR3((s0/usr/lib64/python2.6/distutils/command/config.pyt_clean˘s  Rc Csdddkl}|iƒd}y|i||||ƒWn|j o d}nX|iƒ|S(sQConstruct a source file from 'body' (a string containing lines of C/C++ code) and 'headers' (a list of header files to include) and run it through the preprocessor. Return true if the preprocessor succeeded, false if there were any errors. ('body' probably isn't of much use, but what the heck.) i˙˙˙˙(t CompileErrorii(R$RPR)R;RO(RR0R1RR2RPtok((s0/usr/lib64/python2.6/distutils/command/config.pyttry_cpp¸s   c Csˇ|iƒ|i||||ƒ\}}t|ƒtjoti|ƒ}nt|ƒ}d} x<|iƒ} | djoPn|i| ƒo d} Pqcqc|i ƒ|i ƒ| S(s´Construct a source file (just like 'try_cpp()'), run it through the preprocessor, and return true if any line of the output matches 'pattern'. 'pattern' should either be a compiled regex object or a string containing a regex. If both 'body' and 'headers' are None, preprocesses an empty file -- which can be useful to determine the symbols the preprocessor and compiler set by default. iti( R)R;RRtreR>R-treadlinetsearchR/RO( RtpatternR0R1RR2R9R:R4tmatchtline((s0/usr/lib64/python2.6/distutils/command/config.pyt search_cppĘs      c Csddkl}|iƒy |i||||ƒd}Wn|j o d}nXti|odpdƒ|iƒ|S(swTry to compile a source file built from 'body' and 'headers'. Return true on success, false otherwise. i˙˙˙˙(RPiissuccess!sfailure.(R$RPR)R@RRJRO(RR0R1RR2RPRQ((s0/usr/lib64/python2.6/distutils/command/config.pyt try_compilečs    c Cs‘ddkl}l}|iƒy&|i||||||ƒd} Wn||fj o d} nXti| odpdƒ|iƒ| S(sžTry to compile and link a source file, built from 'body' and 'headers', to executable form. Return true on success, false otherwise. i˙˙˙˙(RPt LinkErroriissuccess!sfailure.(R$RPR\R)RIRRJRO( RR0R1RRRR2RPR\RQ((s0/usr/lib64/python2.6/distutils/command/config.pyttry_linkřs     c CsŻddkl}l}|iƒyA|i||||||ƒ\} } } |i| gƒd} Wn"||tfj o d} nXti| odpdƒ|i ƒ| S(sœTry to compile, link to an executable, and run a program built from 'body' and 'headers'. Return true on success, false otherwise. i˙˙˙˙(RPR\iissuccess!sfailure.( R$RPR\R)RItspawnRRRJRO( RR0R1RRRR2RPR\R9R?texeRQ((s0/usr/lib64/python2.6/distutils/command/config.pyttry_run s    ic Cs˘|iƒg}|o|id|ƒn|idƒ|o|id|ƒn|id|ƒ|idƒti|dƒd}|i|||||ƒS(sŰDetermine if function 'func' is available by constructing a source file that refers to 'func', and compiles and links it. If everything succeeds, returns true; otherwise returns false. The constructed source file starts out by including the header files listed in 'headers'. If 'decl' is true, it then declares 'func' (as "int func()"); you probably shouldn't supply 'headers' and set 'decl' true in the same call, or you might get errors about a conflicting declarations for 'func'. Finally, the constructed 'main()' function either references 'func' or (if 'call' is true) calls it. 'libraries' and 'library_dirs' are used when linking. s int %s ();s int main () {s %s();s %s;t}s (R)RGRRKR]( RtfuncR1RRRtdecltcallR0((s0/usr/lib64/python2.6/distutils/command/config.pyt check_func(s   cCs*|iƒ|id|||g||ƒS(sáDetermine if 'library' is available to be linked against, without actually checking that any particular symbols are provided by it. 'headers' will be used in constructing the source file to be compiled, but the only effect of this is to check if all the header files listed are available. Any libraries listed in 'other_libraries' will be included in the link, in case 'library' has symbols that depend on other libraries. sint main (void) { }(R)R](RtlibraryRR1Rtother_libraries((s0/usr/lib64/python2.6/distutils/command/config.pyt check_libLs  cCs|iddd|gd|ƒS(s¤Determine if the system header file named by 'header_file' exists and can be found by the preprocessor; return true if so, false otherwise. R0s /* No body */R1R(RR(RR5RRR2((s0/usr/lib64/python2.6/distutils/command/config.pyt check_header[sN(s compiler=Nsspecify the compiler type(scc=Nsspecify the compiler executable(s include-dirs=Rs.list of directories to search for header files(sdefine=RsC preprocessor macros to define(sundef=R s!C preprocessor macros to undefine(s libraries=R s!external C libraries to link with(s library-dirs=R s.directories to search for external C libraries(snoisyNs1show every action (compile, link, run, ...) taken(s dump-sourceNs=dump generated source files before attempting to compile them(t__name__t __module__t descriptionR t user_optionsRRRR)R6R;R@RIRORRRZR[R]R`ReRhRi(((s0/usr/lib64/python2.6/distutils/command/config.pyRsZ          !cCsO|djo |dGHn|GHt|ƒ}tii|iƒƒ|iƒdS(Nt:(R R-tsyststdoutR.treadR/(R3theadR4((s0/usr/lib64/python2.6/distutils/command/config.pyR<hs    (t__doc__t __revision__RoRRRTttypestdistutils.coreRtdistutils.errorsRtdistutils.sysconfigRt distutilsRR,RR R<(((s0/usr/lib64/python2.6/distutils/command/config.pyt s0   ˙O