/opt/imh-python/lib/python3.9/distutils/command/__pycache__
NameSizeModeActions
bdist.cpython-39.opt-1.pyc36140644editdlrm
bdist.cpython-39.opt-2.pyc34200644editdlrm
bdist.cpython-39.pyc36140644editdlrm
bdist_dumb.cpython-39.opt-1.pyc35970644editdlrm
bdist_dumb.cpython-39.opt-2.pyc33970644editdlrm
bdist_dumb.cpython-39.pyc35970644editdlrm
bdist_msi.cpython-39.opt-1.pyc197120644editdlrm
bdist_msi.cpython-39.opt-2.pyc181710644editdlrm
bdist_msi.cpython-39.pyc197790644editdlrm
bdist_rpm.cpython-39.opt-1.pyc121840644editdlrm
bdist_rpm.cpython-39.opt-2.pyc118650644editdlrm
bdist_rpm.cpython-39.pyc122340644editdlrm
bdist_wininst.cpython-39.opt-1.pyc85040644editdlrm
bdist_wininst.cpython-39.opt-2.pyc83650644editdlrm
bdist_wininst.cpython-39.pyc85540644editdlrm
build.cpython-39.opt-1.pyc38900644editdlrm
build.cpython-39.opt-2.pyc38070644editdlrm
build.cpython-39.pyc38900644editdlrm
build_clib.cpython-39.opt-1.pyc48090644editdlrm
build_clib.cpython-39.opt-2.pyc42550644editdlrm
build_clib.cpython-39.pyc48090644editdlrm
build_ext.cpython-39.opt-1.pyc162000644editdlrm
build_ext.cpython-39.opt-2.pyc142430644editdlrm
build_ext.cpython-39.pyc162000644editdlrm
build_py.cpython-39.opt-1.pyc103900644editdlrm
build_py.cpython-39.opt-2.pyc91830644editdlrm
build_py.cpython-39.pyc104420644editdlrm
build_scripts.cpython-39.opt-1.pyc43390644editdlrm
build_scripts.cpython-39.opt-2.pyc39450644editdlrm
build_scripts.cpython-39.pyc43390644editdlrm
check.cpython-39.opt-1.pyc49180644editdlrm
check.cpython-39.opt-2.pyc42870644editdlrm
check.cpython-39.pyc49180644editdlrm
clean.cpython-39.opt-1.pyc20910644editdlrm
clean.cpython-39.opt-2.pyc20080644editdlrm
clean.cpython-39.pyc20910644editdlrm
config.cpython-39.opt-1.pyc102210644editdlrm
config.cpython-39.opt-2.pyc68840644editdlrm
config.cpython-39.pyc102210644editdlrm
install.cpython-39.opt-1.pyc135490644editdlrm
install.cpython-39.opt-2.pyc124940644editdlrm
install.cpython-39.pyc135490644editdlrm
install_data.cpython-39.opt-1.pyc22940644editdlrm
install_data.cpython-39.opt-2.pyc21490644editdlrm
install_data.cpython-39.pyc22940644editdlrm
install_egg_info.cpython-39.opt-1.pyc30290644editdlrm
install_egg_info.cpython-39.opt-2.pyc23500644editdlrm
install_egg_info.cpython-39.pyc30290644editdlrm
install_headers.cpython-39.opt-1.pyc17190644editdlrm
install_headers.cpython-39.opt-2.pyc15530644editdlrm
install_headers.cpython-39.pyc17190644editdlrm
install_lib.cpython-39.opt-1.pyc50910644editdlrm
install_lib.cpython-39.opt-2.pyc45100644editdlrm
install_lib.cpython-39.pyc50910644editdlrm
install_scripts.cpython-39.opt-1.pyc21420644editdlrm
install_scripts.cpython-39.opt-2.pyc20080644editdlrm
install_scripts.cpython-39.pyc21420644editdlrm
register.cpython-39.opt-1.pyc84620644editdlrm
register.cpython-39.opt-2.pyc71970644editdlrm
register.cpython-39.pyc84620644editdlrm
sdist.cpython-39.opt-1.pyc144890644editdlrm
sdist.cpython-39.opt-2.pyc111300644editdlrm
sdist.cpython-39.pyc144890644editdlrm
upload.cpython-39.opt-1.pyc52380644editdlrm
upload.cpython-39.opt-2.pyc51120644editdlrm
upload.cpython-39.pyc52380644editdlrm
__init__.cpython-39.opt-1.pyc4840644editdlrm
__init__.cpython-39.opt-2.pyc3750644editdlrm
__init__.cpython-39.pyc4840644editdlrm
Edit: /opt/imh-python/lib/python3.9/distutils/command/__pycache__/config.cpython-39.pyc (10221B)
a dæh=3ã@sldZddlZddlZddlmZddlmZddlmZddl m Z ddd œZ Gd d „d eƒZ dd d „Z dS)aê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". éN)ÚCommand)ÚDistutilsExecError)Úcustomize_compiler)Úlogz.cz.cxx)Úczc++c@s¸eZdZdZgd¢Zdd„Zdd„Zdd„Zd d „Zd d „Z d d„Z dd„Z dd„Z dd„Z d(dd„Zd)dd„Zd*dd„Zd+dd„Zd,dd „Zd-d"d#„Zdddgfd$d%„Zd.d&d'„ZdS)/Úconfigzprepare to build) )z compiler=Nzspecify the compiler type)zcc=Nzspecify the compiler executable)z include-dirs=ÚIz.list of directories to search for header files)zdefine=ÚDzC preprocessor macros to define)zundef=ÚUz!C preprocessor macros to undefine)z libraries=Úlz!external C libraries to link with)z library-dirs=ÚLz.directories to search for external C libraries)ÚnoisyNz1show every action (compile, link, run, ...) taken)z dump-sourceNz=dump generated source files before attempting to compile themcCs4d|_d|_d|_d|_d|_d|_d|_g|_dS)Né)ÚcompilerZccÚ include_dirsÚ librariesÚ library_dirsr Ú dump_sourceÚ temp_files©Úself©rú9/opt/imh-python/lib/python3.9/distutils/command/config.pyÚinitialize_options3szconfig.initialize_optionscCs|jdur|jjpg|_nt|jtƒr6|j tj¡|_|jdurHg|_nt|jtƒr^|jg|_|jdurpg|_nt|jtƒrŒ|j tj¡|_dS©N) rZ distributionÚ isinstanceÚstrÚsplitÚosÚpathseprrrrrrÚfinalize_optionsBs       zconfig.finalize_optionscCsdSrrrrrrÚrunRsz config.runcCszddlm}m}t|j|ƒsv||j|jdd|_t|jƒ|jrN|j |j¡|j rb|j  |j ¡|j rv|j  |j ¡dS)z^Check that 'self.compiler' really is a CCompiler object; if not, make it one. r)Ú CCompilerÚ new_compilerr)rÚdry_runÚforceN) Údistutils.ccompilerr"r#rrr$rrZset_include_dirsrZ set_librariesrZset_library_dirs)rr"r#rrrÚ_check_compilerYs ÿ zconfig._check_compilercCs€dt|}t|dƒV}|r>|D]}| d|¡q | d¡| |¡|ddkr^| d¡Wdƒn1sr0Y|S)NZ _configtestÚwz#include <%s> Ú éÿÿÿÿ)ÚLANG_EXTÚopenÚwrite)rÚbodyÚheadersÚlangÚfilenameÚfileÚheaderrrrÚ_gen_temp_sourcefileks     (zconfig._gen_temp_sourcefilecCs<| |||¡}d}|j ||g¡|jj|||d||fS)Nz _configtest.i©r)r4rÚextendrZ preprocess)rr.r/rr0ÚsrcÚoutrrrÚ _preprocessws zconfig._preprocesscCs\| |||¡}|jr"t|d|ƒ|j |g¡\}|j ||g¡|jj|g|d||fS)Nzcompiling '%s':r5)r4rÚ dump_filerZobject_filenamesrr6Úcompile)rr.r/rr0r7ÚobjrrrÚ_compile~szconfig._compilec Csr| ||||¡\}}tj tj |¡¡d} |jj|g| |||d|jjdur\| |jj} |j  | ¡||| fS)Nr)rrZ target_lang) r=rÚpathÚsplitextÚbasenamerZlink_executableZ exe_extensionrÚappend) rr.r/rrrr0r7r<ÚprogrrrÚ_link‡s ý   z config._linkc GsR|s|j}g|_t dd |¡¡|D]&}zt |¡Wq&tyJYq&0q&dS)Nz removing: %sú )rrÚinfoÚjoinrÚremoveÚOSError)rÚ filenamesr1rrrÚ_clean–s z config._cleanNrcCsPddlm}| ¡d}z| ||||¡Wn|yBd}Yn0| ¡|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)r&rLr'r9rJ©rr.r/rr0rLÚokrrrÚtry_cpp¬s   zconfig.try_cppc CsŒ| ¡| ||||¡\}}t|tƒr0t |¡}t|ƒ8}d} | ¡} | dkrPqb| | ¡r>d} qbq>Wdƒn1sv0Y|  ¡| S)a´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. FÚTN) r'r9rrÚrer;r,ÚreadlineÚsearchrJ) rÚpatternr.r/rr0r7r8r2ÚmatchÚlinerrrÚ search_cpp¾s     "zconfig.search_cppcCsbddlm}| ¡z| ||||¡d}Wn|yBd}Yn0t |rPdpRd¡| ¡|S)zwTry to compile a source file built from 'body' and 'headers'. Return true on success, false otherwise. rrKTFúsuccess!úfailure.)r&rLr'r=rrErJrMrrrÚ try_compileÚs   zconfig.try_compilec Csnddlm}m}| ¡z| ||||||¡d} Wn||fyNd} Yn0t | r\dp^d¡| ¡| S)zžTry to compile and link a source file, built from 'body' and 'headers', to executable form. Return true on success, false otherwise. r©rLÚ LinkErrorTFrXrY)r&rLr\r'rCrrErJ) rr.r/rrrr0rLr\rNrrrÚtry_linkês ÿ zconfig.try_linkc Cs‚ddlm}m}| ¡z.| ||||||¡\} } } | | g¡d} Wn||tfybd} Yn0t | rpdprd¡|  ¡| S)zœTry to compile, link to an executable, and run a program built from 'body' and 'headers'. Return true on success, false otherwise. rr[TFrXrY) r&rLr\r'rCÚspawnrrrErJ) rr.r/rrrr0rLr\r7r<ZexerNrrrÚtry_runýs ÿ   zconfig.try_runrc Cst| ¡g}|r| d|¡| d¡|r<| d|¡n| d|¡| d¡d |¡d}| |||||¡S)aÛ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. z int %s ();z int main () {z %s();z %s;ú}r))r'rArFr]) rÚfuncr/rrrZdeclÚcallr.rrrÚ check_funcs   ÿzconfig.check_funccCs | ¡| d|||g||¡S)aá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. zint main (void) { })r'r])rZlibraryrr/rZother_librariesrrrÚ check_lib4s   ÿzconfig.check_libcCs|jd|g|dS)z¤Determine 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)rO)rr3rrr0rrrÚ check_headerBs ÿzconfig.check_header)NNNr)NNNr)NNr)NNNNr)NNNNr)NNNNrr)NNr)Ú__name__Ú __module__Ú __qualname__Ú descriptionZ user_optionsrr r!r'r4r9r=rCrJrOrWrZr]r_rcrdrerrrrrs>   ÿ  ÿ ÿ ÿ ÿ ÿrcCsR|durt d|¡n t |¡t|ƒ}zt | ¡¡W| ¡n | ¡0dS)zjDumps a file content into log.info. If head is not None, will be dumped before the file content. Nz%s)rrEr,ÚreadÚclose)r1Úheadr2rrrr:Ks r:)N)Ú__doc__rrQZdistutils.corerZdistutils.errorsrZdistutils.sysconfigrZ distutilsrr+rr:rrrrÚs      8