/opt/alt/python27/lib64/python2.7/distutils/command
NameSizeModeActions
bdist.py55960644editdlrm
bdist.pyc52470644editdlrm
bdist.pyo52470644editdlrm
bdist_dumb.py51960644editdlrm
bdist_dumb.pyc50480644editdlrm
bdist_dumb.pyo50480644editdlrm
bdist_msi.py351930644editdlrm
bdist_msi.pyc241820644editdlrm
bdist_msi.pyo240750644editdlrm
bdist_rpm.py210490644editdlrm
bdist_rpm.pyc177250644editdlrm
bdist_rpm.pyo176410644editdlrm
bdist_wininst.py149990644editdlrm
bdist_wininst.pyc108550644editdlrm
bdist_wininst.pyo107760644editdlrm
build.py54560644editdlrm
build.pyc52760644editdlrm
build.pyo52760644editdlrm
build_clib.py81310644editdlrm
build_clib.pyc64770644editdlrm
build_clib.pyo64770644editdlrm
build_ext.py325020644editdlrm
build_ext.py.debug-build322700644editdlrm
build_ext.pyc195910644editdlrm
build_ext.pyo195910644editdlrm
build_py.py163380644editdlrm
build_py.pyc117660644editdlrm
build_py.pyo116940644editdlrm
build_scripts.py45980644editdlrm
build_scripts.pyc45680644editdlrm
build_scripts.pyo45680644editdlrm
check.py56720644editdlrm
check.pyc64180644editdlrm
check.pyo64180644editdlrm
clean.py28140644editdlrm
clean.pyc31340644editdlrm
clean.pyo31340644editdlrm
command_template7190644editdlrm
config.py131300644editdlrm
config.pyc129450644editdlrm
config.pyo129450644editdlrm
install.py262640644editdlrm
install.pyc171300644editdlrm
install.pyo171300644editdlrm
install_data.py28450644editdlrm
install_data.pyc32090644editdlrm
install_data.pyo32090644editdlrm
install_egg_info.py25870644editdlrm
install_egg_info.pyc38610644editdlrm
install_egg_info.pyo38610644editdlrm
install_headers.py13460644editdlrm
install_headers.pyc23460644editdlrm
install_headers.pyo23460644editdlrm
install_lib.py83380644editdlrm
install_lib.pyc68370644editdlrm
install_lib.pyo68370644editdlrm
install_scripts.py20680644editdlrm
install_scripts.pyc30190644editdlrm
install_scripts.pyo30190644editdlrm
register.py118390644editdlrm
register.pyc103770644editdlrm
register.pyo103770644editdlrm
sdist.py185570644editdlrm
sdist.pyc169300644editdlrm
sdist.pyo169300644editdlrm
upload.py70000644editdlrm
upload.pyc63860644editdlrm
upload.pyo63860644editdlrm
wininst-6.0.exe614400644editdlrm
wininst-7.1.exe655360644editdlrm
wininst-8.0.exe614400644editdlrm
wininst-9.0-amd64.exe2237440644editdlrm
wininst-9.0.exe1960960644editdlrm
__init__.py8220644editdlrm
__init__.pyc6780644editdlrm
__init__.pyo6780644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/distutils/command/config.pyo (12945B)
ó Þ[ bc@sždZdZddlZddlZddlmZddlmZddlm Z ddl m Z idd 6d d 6Z d efd „ƒYZ ed„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". s$Id$iÿÿÿÿN(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((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pytinitialize_options6s       cCsß|jdkr'|jjpg|_n-t|jtƒrT|jjtjƒ|_n|jdkrog|_n$t|jtƒr“|jg|_n|j dkr®g|_ n-t|j tƒrÛ|j jtjƒ|_ ndS(N( RR t distributiont isinstancetstrtsplittostpathsepRR(R((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pytfinalize_optionsEs  cCsdS(N((R((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pytrunUscCs½ddlm}m}t|j|ƒs¹|d|jd|jddƒ|_t|jƒ|jrx|jj|jƒn|j r—|jj |j ƒn|j r¹|jj |j ƒq¹ndS(s^Check that 'self.compiler' really is a CCompiler object; if not, make it one. iÿÿÿÿ(t CCompilert new_compilerR tdry_runtforceiN( tdistutils.ccompilerRRRR R RRtset_include_dirsRt set_librariesRtset_library_dirs(RRR((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt_check_compiler]s    cCsdt|}t|dƒ}|rUx|D]}|jd|ƒq*W|jdƒn|j|ƒ|ddkr‚|jdƒn|jƒ|S(Nt _configtesttws#include <%s> s iÿÿÿÿ(tLANG_EXTtopentwritetclose(Rtbodytheaderstlangtfilenametfiletheader((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt_gen_temp_sourcefileps   cCsT|j|||ƒ}d}|jj||gƒ|jj||d|ƒ||fS(Ns _configtest.iR(R3RtextendR t preprocess(RR-R.RR/tsrctout((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt _preprocess}s cCsƒ|j|||ƒ}|jr2t|d|ƒn|jj|gƒ\}|jj||gƒ|jj|gd|ƒ||fS(Nscompiling '%s':R(R3Rt dump_fileR tobject_filenamesRR4tcompile(RR-R.RR/R6tobj((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt_compile„s c Csª|j||||ƒ\}}tjjtjj|ƒƒd} |jj|g| d|d|d|ƒ|jjdk r| |jj} n|j j | ƒ||| fS(NiRRt target_lang( R=RtpathtsplitexttbasenameR tlink_executablet exe_extensionR Rtappend( RR-R.RRRR/R6R<tprog((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt_links"cGsn|s|j}g|_ntjddj|ƒƒx3|D]+}ytj|ƒWq;tk req;Xq;WdS(Ns removing: %st (RRtinfotjoinRtremovetOSError(Rt filenamesR0((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt_cleanœs    RcCsbddlm}|jƒd}y|j||||ƒWn|k rSd}nX|jƒ|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"RNR&R8RM(RR-R.RR/RNtok((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyttry_cpp²s    c Cs¯|jƒ|j||||ƒ\}}t|tƒrItj|ƒ}nt|ƒ}d} x9|jƒ} | dkrzPn|j| ƒr^d} Pq^q^W|j ƒ|j ƒ| 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&R8RRtreR;R*treadlinetsearchR,RM( RtpatternR-R.RR/R6R7R1tmatchtline((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt search_cppÄs      cCs{ddlm}|jƒy |j||||ƒd}Wn|k rSd}nXtj|rfdpidƒ|jƒ|S(swTry to compile a source file built from 'body' and 'headers'. Return true on success, false otherwise. iÿÿÿÿ(RNiissuccess!sfailure.(R"RNR&R=RRHRM(RR-R.RR/RNRO((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt try_compileás     c Csddlm}m}|jƒy&|j||||||ƒd} Wn||fk red} nXtj| rxdp{dƒ|jƒ| 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ÿÿÿÿ(RNt LinkErroriissuccess!sfailure.(R"RNRZR&RFRRHRM( RR-R.RRRR/RNRZRO((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyttry_linkñs     c Cs«ddlm}m}|jƒyA|j||||||ƒ\} } } |j| gƒd} Wn ||tfk rƒd} nXtj| r–dp™dƒ|j ƒ| 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ÿÿÿÿ(RNRZiissuccess!sfailure.( R"RNRZR&RFtspawnRRRHRM( RR-R.RRRR/RNRZR6R<texeRO((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyttry_runs    ic Cs›|jƒg}|r*|jd|ƒn|jdƒ|rQ|jd|ƒn|jd|ƒ|jdƒdj|ƒd}|j|||||ƒ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&RDRIR[( RtfuncR.RRRtdecltcallR-((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt check_funcs   cCs*|jƒ|jd|||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[(RtlibraryRR.Rtother_libraries((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt check_lib?s  cCs|jddd|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. R-s /* No body */R.R(RP(RR2RRR/((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt check_headerNsN(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=Rs!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(R Ns1show 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&R3R8R=RFRMRPRXRYR[R^RcRfRg(((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyRsT            !cCsb|dkr tjd|ƒn tj|ƒt|ƒ}ztj|jƒƒWd|jƒXdS(sjDumps a file content into log.info. If head is not None, will be dumped before the file content. s%sN(R RRHR*treadR,(R0theadR1((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyR9Xs   (t__doc__t __revision__RRRtdistutils.coreRtdistutils.errorsRtdistutils.sysconfigRt distutilsRR)RR R9(((s=/opt/alt/python27/lib64/python2.7/distutils/command/config.pyt s  ÿA