/opt/alt/python36/lib64/python3.6/distutils/command/__pycache__
NameSizeModeActions
bdist.cpython-36.opt-1.pyc37940644editdlrm
bdist.cpython-36.opt-2.pyc35820644editdlrm
bdist.cpython-36.pyc37940644editdlrm
bdist_dumb.cpython-36.opt-1.pyc37560644editdlrm
bdist_dumb.cpython-36.opt-2.pyc35380644editdlrm
bdist_dumb.cpython-36.pyc37560644editdlrm
bdist_msi.cpython-36.opt-1.pyc196920644editdlrm
bdist_msi.cpython-36.opt-2.pyc181330644editdlrm
bdist_msi.cpython-36.pyc197800644editdlrm
bdist_rpm.cpython-36.opt-1.pyc130170644editdlrm
bdist_rpm.cpython-36.opt-2.pyc126800644editdlrm
bdist_rpm.cpython-36.pyc130830644editdlrm
bdist_wininst.cpython-36.opt-1.pyc82750644editdlrm
bdist_wininst.cpython-36.opt-2.pyc81180644editdlrm
bdist_wininst.cpython-36.pyc83430644editdlrm
build.cpython-36.opt-1.pyc40780644editdlrm
build.cpython-36.opt-2.pyc39770644editdlrm
build.cpython-36.pyc40780644editdlrm
build_clib.cpython-36.opt-1.pyc49840644editdlrm
build_clib.cpython-36.opt-2.pyc44120644editdlrm
build_clib.cpython-36.pyc49840644editdlrm
build_ext.cpython-36.opt-1.pyc165710644editdlrm
build_ext.cpython-36.opt-2.pyc145950644editdlrm
build_ext.cpython-36.pyc165710644editdlrm
build_py.cpython-36.opt-1.pyc104720644editdlrm
build_py.cpython-36.opt-2.pyc92450644editdlrm
build_py.cpython-36.pyc105310644editdlrm
build_scripts.cpython-36.opt-1.pyc43470644editdlrm
build_scripts.cpython-36.opt-2.pyc39350644editdlrm
build_scripts.cpython-36.pyc43470644editdlrm
check.cpython-36.opt-1.pyc52380644editdlrm
check.cpython-36.opt-2.pyc46520644editdlrm
check.cpython-36.pyc52380644editdlrm
clean.cpython-36.opt-1.pyc21920644editdlrm
clean.cpython-36.opt-2.pyc20910644editdlrm
clean.cpython-36.pyc21920644editdlrm
config.cpython-36.opt-1.pyc103270644editdlrm
config.cpython-36.opt-2.pyc69930644editdlrm
config.cpython-36.pyc103270644editdlrm
install.cpython-36.opt-1.pyc141030644editdlrm
install.cpython-36.opt-2.pyc130280644editdlrm
install.cpython-36.pyc141030644editdlrm
install_data.cpython-36.opt-1.pyc23370644editdlrm
install_data.cpython-36.opt-2.pyc21740644editdlrm
install_data.cpython-36.pyc23370644editdlrm
install_egg_info.cpython-36.opt-1.pyc29980644editdlrm
install_egg_info.cpython-36.opt-2.pyc23010644editdlrm
install_egg_info.cpython-36.pyc29980644editdlrm
install_headers.cpython-36.opt-1.pyc17370644editdlrm
install_headers.cpython-36.opt-2.pyc15530644editdlrm
install_headers.cpython-36.pyc17370644editdlrm
install_lib.cpython-36.opt-1.pyc51890644editdlrm
install_lib.cpython-36.opt-2.pyc45980644editdlrm
install_lib.cpython-36.pyc51890644editdlrm
install_scripts.cpython-36.opt-1.pyc22030644editdlrm
install_scripts.cpython-36.opt-2.pyc20510644editdlrm
install_scripts.cpython-36.pyc22030644editdlrm
register.cpython-36.opt-1.pyc84250644editdlrm
register.cpython-36.opt-2.pyc71420644editdlrm
register.cpython-36.pyc84250644editdlrm
sdist.cpython-36.opt-1.pyc131220644editdlrm
sdist.cpython-36.opt-2.pyc99170644editdlrm
sdist.cpython-36.pyc131220644editdlrm
upload.cpython-36.opt-1.pyc50630644editdlrm
upload.cpython-36.opt-2.pyc49190644editdlrm
upload.cpython-36.pyc50630644editdlrm
__init__.cpython-36.opt-1.pyc5480644editdlrm
__init__.cpython-36.opt-2.pyc4210644editdlrm
__init__.cpython-36.pyc5480644editdlrm
Edit: /opt/alt/python36/lib64/python3.6/distutils/command/__pycache__/config.cpython-36.pyc (10327B)
3 jf3@sldZddlZddlZddlmZddlmZddlmZddl m Z ddd Z Gd d d eZ dd d Z dS)adistutils.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". N)Command)DistutilsExecError)customize_compiler)logz.cz.cxx)czc++c @seZdZdZd>d?d@dAdBdCdDdEdFg ZddZddZddZd d!Zd"d#Z d$d%Z d&d'Z d(d)Z d*d+Z dGd-d.ZdHd/d0ZdId1d2ZdJd3d4ZdKd5d6ZdLd8d9Zdddgfd:d;ZdMd  r)LANG_EXTopenwriteclose)r&bodyheaderslangfilenamefileheaderr'r'r(_gen_temp_sourcefileks       zconfig._gen_temp_sourcefilecCs<|j|||}d}|jj||g|jj|||d||fS)Nz _configtest.i)r!)rCr%extendr Z preprocess)r&r=r>r!r?srcoutr'r'r( _preprocessxs zconfig._preprocesscCs\|j|||}|jr"t|d||jj|g\}|jj||g|jj|g|d||fS)Nzcompiling '%s':)r!)rCr$ dump_filer Zobject_filenamesr%rDcompile)r&r=r>r!r?rEobjr'r'r(_compileszconfig._compilec Csr|j||||\}}tjjtjj|d} |jj|g| |||d|jjdk r\| |jj} |jj | ||| fS)Nr)r"r#Z target_lang) rKr-pathsplitextbasenamer Zlink_executableZ exe_extensionr%append) r&r=r>r!r"r#r?rErJprogr'r'r(_links    z config._linkc GsX|s|j}g|_tjddj|x0|D](}ytj|Wq(tk rNYq(Xq(WdS)Nz removing: %s )r%rinfojoinr-removeOSError)r& filenamesr@r'r'r(_cleans z config._cleanrc CsRddlm}|jd}y|j||||Wn|k rDd}YnX|j|S)aQConstruct 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.) r) CompileErrorTF)r4rYr5rGrX)r&r=r>r!r?rYokr'r'r(try_cpps  zconfig.try_cppc Csx|j|j||||\}}t|tr0tj|}t|}d} x&|j} | dkrPP|j| r>d} Pq>W|j |j | S)aConstruct 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. FT) r5rGr*r+rerIr:readlinesearchr<rX) r&patternr=r>r!r?rErFrAmatchliner'r'r( search_cpps    zconfig.search_cppc Csdddlm}|jy|j||||d}Wn|k rDd}YnXtj|rRdpTd|j|S)zwTry to compile a source file built from 'body' and 'headers'. Return true on success, false otherwise. r)rYTFzsuccess!zfailure.)r4rYr5rKrrSrX)r&r=r>r!r?rYrZr'r'r( try_compiles  zconfig.try_compilec Cspddlm}m}|jy|j||||||d} Wn||fk rPd} YnXtj| r^dp`d|j| S)zTry to compile and link a source file, built from 'body' and 'headers', to executable form. Return true on success, false otherwise. r)rY LinkErrorTFzsuccess!zfailure.)r4rYrer5rQrrSrX) r&r=r>r!r"r#r?rYrerZr'r'r(try_links   zconfig.try_linkc Csddlm}m}|jy.|j||||||\} } } |j| gd} Wn||tfk rdd} YnXtj| rrdptd|j | S)zTry to compile, link to an executable, and run a program built from 'body' and 'headers'. Return true on success, false otherwise. r)rYreTFzsuccess!zfailure.) r4rYrer5rQZspawnrrrSrX) r&r=r>r!r"r#r?rYrerErJZexerZr'r'r(try_runs   zconfig.try_runrc Cst|jg}|r|jd||jd|r<|jd|n|jd||jddj|d}|j|||||S)aDetermine 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. z int %s ();z int main () {z %s();z %s;}r7)r5rOrTrf) r&funcr>r!r"r#ZdeclZcallr=r'r'r( check_funcs   zconfig.check_funccCs |j|jd|||g||S)aDetermine 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. zint main (void) { })r5rf)r&Zlibraryr#r>r!Zother_librariesr'r'r( check_lib6s  zconfig.check_libcCs|jd|g|dS)zDetermine if the system header file named by 'header_file' exists and can be found by the preprocessor; return true if so, false otherwise. z /* No body */)r=r>r!)r[)r&rBr!r#r?r'r'r( check_headerDs zconfig.check_header)rNr )r Nr )r r r)rrr)rrr)rrr)rrr)rNr)rNr)NNNr)NNNr)NNr)NNNNr)NNNNr)NNNNrr)NNr)__name__ __module__ __qualname__Z descriptionZ user_optionsr)r/r0r5rCrGrKrQrXr[rcrdrfrgrjrkrlr'r'r'r(rsT         rc CsJ|dkrtjd|n tj|t|}ztj|jWd|jXdS)zjDumps a file content into log.info. If head is not None, will be dumped before the file content. Nz%s)rrSr:readr<)r@headrAr'r'r(rHNs rH)N)__doc__r-r]Zdistutils.corerZdistutils.errorsrZdistutils.sysconfigrZ distutilsrr9rrHr'r'r'r( s     ;