/usr/lib64/python3.9/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc65870644editdlrm
archive_util.cpython-39.opt-2.pyc45450644editdlrm
archive_util.cpython-39.pyc65870644editdlrm
bcppcompiler.cpython-39.opt-1.pyc64980644editdlrm
bcppcompiler.cpython-39.opt-2.pyc62100644editdlrm
bcppcompiler.cpython-39.pyc64980644editdlrm
ccompiler.cpython-39.opt-1.pyc330970644editdlrm
ccompiler.cpython-39.opt-2.pyc167900644editdlrm
ccompiler.cpython-39.pyc331880644editdlrm
cmd.cpython-39.opt-1.pyc139260644editdlrm
cmd.cpython-39.opt-2.pyc80600644editdlrm
cmd.cpython-39.pyc139260644editdlrm
config.cpython-39.opt-1.pyc35290644editdlrm
config.cpython-39.opt-2.pyc31380644editdlrm
config.cpython-39.pyc35290644editdlrm
core.cpython-39.opt-1.pyc66540644editdlrm
core.cpython-39.opt-2.pyc32670644editdlrm
core.cpython-39.pyc66540644editdlrm
cygwinccompiler.cpython-39.opt-1.pyc85030644editdlrm
cygwinccompiler.cpython-39.opt-2.pyc68730644editdlrm
cygwinccompiler.cpython-39.pyc85030644editdlrm
debug.cpython-39.opt-1.pyc1960644editdlrm
debug.cpython-39.opt-2.pyc1960644editdlrm
debug.cpython-39.pyc1960644editdlrm
dep_util.cpython-39.opt-1.pyc27160644editdlrm
dep_util.cpython-39.opt-2.pyc12720644editdlrm
dep_util.cpython-39.pyc27160644editdlrm
dir_util.cpython-39.opt-1.pyc58170644editdlrm
dir_util.cpython-39.opt-2.pyc34390644editdlrm
dir_util.cpython-39.pyc58170644editdlrm
dist.cpython-39.opt-1.pyc343480644editdlrm
dist.cpython-39.opt-2.pyc250570644editdlrm
dist.cpython-39.pyc343480644editdlrm
errors.cpython-39.opt-1.pyc52520644editdlrm
errors.cpython-39.opt-2.pyc27040644editdlrm
errors.cpython-39.pyc52520644editdlrm
extension.cpython-39.opt-1.pyc69170644editdlrm
extension.cpython-39.opt-2.pyc34270644editdlrm
extension.cpython-39.pyc69170644editdlrm
fancy_getopt.cpython-39.opt-1.pyc105020644editdlrm
fancy_getopt.cpython-39.opt-2.pyc76990644editdlrm
fancy_getopt.cpython-39.pyc106250644editdlrm
filelist.cpython-39.opt-1.pyc97610644editdlrm
filelist.cpython-39.opt-2.pyc68900644editdlrm
filelist.cpython-39.pyc98350644editdlrm
file_util.cpython-39.opt-1.pyc59830644editdlrm
file_util.cpython-39.opt-2.pyc38460644editdlrm
file_util.cpython-39.pyc59830644editdlrm
log.cpython-39.opt-1.pyc23150644editdlrm
log.cpython-39.opt-2.pyc22540644editdlrm
log.cpython-39.pyc23150644editdlrm
msvc9compiler.cpython-39.opt-1.pyc174690644editdlrm
msvc9compiler.cpython-39.opt-2.pyc158480644editdlrm
msvc9compiler.cpython-39.pyc175120644editdlrm
msvccompiler.cpython-39.opt-1.pyc147070644editdlrm
msvccompiler.cpython-39.opt-2.pyc131340644editdlrm
msvccompiler.cpython-39.pyc147070644editdlrm
spawn.cpython-39.opt-1.pyc34410644editdlrm
spawn.cpython-39.opt-2.pyc23080644editdlrm
spawn.cpython-39.pyc34410644editdlrm
sysconfig.cpython-39.opt-1.pyc120640644editdlrm
sysconfig.cpython-39.opt-2.pyc85770644editdlrm
sysconfig.cpython-39.pyc120640644editdlrm
text_file.cpython-39.opt-1.pyc84410644editdlrm
text_file.cpython-39.opt-2.pyc33430644editdlrm
text_file.cpython-39.pyc84410644editdlrm
unixccompiler.cpython-39.opt-1.pyc71320644editdlrm
unixccompiler.cpython-39.opt-2.pyc65030644editdlrm
unixccompiler.cpython-39.pyc71320644editdlrm
util.cpython-39.opt-1.pyc155900644editdlrm
util.cpython-39.opt-2.pyc97060644editdlrm
util.cpython-39.pyc155900644editdlrm
version.cpython-39.opt-1.pyc73120644editdlrm
version.cpython-39.opt-2.pyc40270644editdlrm
version.cpython-39.pyc73410644editdlrm
versionpredicate.cpython-39.opt-1.pyc51250644editdlrm
versionpredicate.cpython-39.opt-2.pyc26450644editdlrm
versionpredicate.cpython-39.pyc51250644editdlrm
_msvccompiler.cpython-39.opt-1.pyc127840644editdlrm
_msvccompiler.cpython-39.opt-2.pyc116350644editdlrm
_msvccompiler.cpython-39.pyc128270644editdlrm
__init__.cpython-39.opt-1.pyc3860644editdlrm
__init__.cpython-39.opt-2.pyc2040644editdlrm
__init__.cpython-39.pyc3860644editdlrm
Edit: /usr/lib64/python3.9/distutils/__pycache__/util.cpython-39.pyc (15590B)
a ´i±Qã@s dZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl mZddlmZdd „Zd d „Zd d „Zdd„Zdadd„Zdd„Zd*dd„Zdaaadd„Zdd„Zd+dd„Zdd„Zd,d d!„Zd"d#„Z d-d$d%„Z!d.d&d'„Z"Gd(d)„d)ƒZ#dS)/zudistutils.util Miscellaneous utility functions -- anything that doesn't fit into one of the other *util.py modules. éN)ÚDistutilsPlatformError)Únewer)Úspawn)Úlog)ÚDistutilsByteCompileErrorc CsÚtjdkrFdtj ¡vrdSdtj ¡vr.dSdtj ¡vr@dStjSdtjvrZtjdStjd ksnttd ƒsttjSt ¡\}}}}}| ¡  d d ¡}|  d d¡}|  d d¡}|dd…dkrÊd||fS|dd…dk�r,|ddk�rÌd}dt |dƒd|dd…f}dddœ}|d|tj 7}n |dd…dk�rPdd l m }|ƒS|dd!…d"k�rŽd"}t d#tj¡}| |¡}|�rÌ| ¡}n>|dd!…d$k�rÌddl} ddl} |  | j ¡|||¡\}}}d%|||fS)&aúReturn a string that identifies the current platform. This is used mainly to distinguish platform-specific build directories and platform-specific built distributions. Typically includes the OS name and version and the architecture (as supplied by 'os.uname()'), although the exact information included depends on the OS; eg. on Linux, the kernel version isn't particularly important. Examples of returned values: linux-i586 linux-alpha (?) solaris-2.6-sun4u Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. ÚntZamd64ú win-amd64z(arm)ú win-arm32z(arm64)z win-arm64Z_PYTHON_HOST_PLATFORMÚposixÚunameú/Úú Ú_ú-NéÚlinuxz%s-%sZsunosrÚ5Zsolarisz%d.%sééZ32bitZ64bit)iÿÿÿlÿÿÿÿz.%sZaix)Ú aix_platforméÚcygwinz[\d.]+Údarwinz%s-%s-%s)ÚosÚnameÚsysÚversionÚlowerÚplatformÚenvironÚhasattrr ÚreplaceÚintÚmaxsizeZ _aix_supportrÚreÚcompileÚASCIIÚmatchÚgroupÚ _osx_supportZdistutils.sysconfigZget_platform_osxZ sysconfigZget_config_vars) ZosnameÚhostÚreleaserÚmachineZbitnessrZrel_reÚmr*Ú distutils©r0ú&/usr/lib64/python3.9/distutils/util.pyÚget_host_platformsP           þ r2cCs8tjdkr.ddddœ}| tj d¡¡p,tƒStƒSdS)NrÚwin32rr )Zx86Zx64ZarmZVSCMD_ARG_TGT_ARCH)rrÚgetr r2)ZTARGET_TO_PLATr0r0r1Ú get_platformbs ýr5cCsztjdkr|S|s|S|ddkr.td|ƒ‚|ddkrFtd|ƒ‚| d¡}d|vrd| d¡qP|sntjStjj|ŽS)aÎReturn 'pathname' as a name that will work on the native filesystem, i.e. split it on '/' and put it back together again using the current directory separator. Needed because filenames in the setup script are always supplied in Unix style, and have to be converted to the local convention before we can actually use them in the filesystem. Raises ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. r rzpath '%s' cannot be absoluteéÿÿÿÿzpath '%s' cannot end with '/'Ú.)rÚsepÚ ValueErrorÚsplitÚremoveÚcurdirÚpathÚjoin)ÚpathnameÚpathsr0r0r1Ú convert_pathms       rAcCsŽtjdkrÚ splitdriver)Znew_rootr?Údriver=r0r0r1Ú change_root‰s     rGc CsvtrdStjdkrXdtjvrXz$ddl}| t ¡¡dtjd<WnttfyVYn0dtjvrnt ƒtjd<dadS)aLEnsure that 'os.environ' has all the environment variables we guarantee that users can use in config files, command-line options, etc. Currently this includes: HOME - user's home directory (Unix only) PLAT - description of the current platform, including hardware and OS (see 'get_platform()') Nr ÚHOMErrZPLATrB) Ú_environ_checkedrrr ÚpwdÚgetpwuidÚgetuidÚ ImportErrorÚKeyErrorr5)rJr0r0r1Ú check_environ s   rOc CsXtƒ|fdd„}zt d||¡WStyR}ztd|ƒ‚WYd}~n d}~00dS)aàPerform shell/Perl-style variable substitution on 'string'. Every occurrence of '$' followed by a name is considered a variable, and variable is substituted by the value found in the 'local_vars' dictionary, or in 'os.environ' if it's not in 'local_vars'. 'os.environ' is first checked/augmented to guarantee that it contains certain values: see 'check_environ()'. Raise ValueError for any variables not found in either 'local_vars' or 'os.environ'. cSs,| d¡}||vrt||ƒStj|SdS)NrB)r)Ústrrr )r(Ú local_varsZvar_namer0r0r1Ú_substÅs  zsubst_vars.._substz\$([a-zA-Z_][a-zA-Z_0-9]*)zinvalid variable '$%s'N)rOr%ÚsubrNr9)ÚsrQrRÚvarr0r0r1Ú subst_vars»s  rVúerror: cCs |t|ƒS©N)rP)ÚexcÚprefixr0r0r1Úgrok_environment_errorÔsr[cCs(t dtj¡at d¡at d¡adS)Nz [^\\\'\"%s ]*z'(?:[^'\\]|\\.)*'z"(?:[^"\\]|\\.)*")r%r&ÚstringÚ whitespaceÚ _wordchars_reÚ _squote_reÚ _dquote_rer0r0r0r1Ú _init_regexÝs racCs„tdurtƒ| ¡}g}d}|�r€t ||¡}| ¡}|t|ƒkrZ| |d|…¡�q€||tjvr�| |d|…¡||d…  ¡}d}nÔ||dkrÂ|d|…||dd…}|d}n¢||dkrÜt  ||¡}n*||dkröt  ||¡}nt d||ƒ‚|du�r t d||ƒ‚| ¡\}}|d|…||d|d…||d…}| ¡d }|t|ƒkr| |¡�q€q|S) aSplit a string up according to Unix shell-like rules for quotes and backslashes. In short: words are delimited by spaces, as long as those spaces are not escaped by a backslash, or inside a quoted string. Single and double quotes are equivalent, and the quote characters can be backslash-escaped. The backslash is stripped from any two-character escape sequence, leaving only the escaped character. The quote characters are stripped from any quoted string. Returns a list of words. NrrCrBú'ú"z!this can't happen (bad char '%c')z"bad string (mismatched %s quotes?)r)r^raÚstripr(ÚendÚlenÚappendr\r]Úlstripr_r`Ú RuntimeErrorr9Úspan)rTÚwordsÚposr.reZbegr0r0r1Ú split_quotedãs>        ,   rmcCsP|dur6d|j|f}|dd…dkr6|dd…d}t |¡|sL||ŽdS)aœPerform some action that affects the outside world (eg. by writing to the filesystem). Such actions are special because they are disabled by the 'dry_run' flag. This method takes care of all that bureaucracy for you; all you have to do is supply the function to call and an argument tuple for it (to embody the "external action" being performed), and an optional message to print. Nz%s%réþÿÿÿz,)rú))Ú__name__rÚinfo)ÚfuncÚargsÚmsgÚverboseÚdry_runr0r0r1Úexecute s  rwcCs2| ¡}|dvrdS|dvr dStd|fƒ‚dS)zôConvert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if 'val' is anything else. )ÚyZyesÚtÚtrueZonÚ1rB)ÚnÚnoÚfZfalseZoffÚ0rzinvalid truth value %rN)rr9)Úvalr0r0r1Ú strtobool3s r�rBc Csjddl}tjrtdƒ‚|dur*do(|dk}|�sVzddlm} | dƒ\} } Wn,tyxddlm} d| dƒ} } Yn0t  d| ¡|�s| dur¢t   | d ¡} n t | d ƒ} | �L|   d ¡|   d  tt|ƒ¡d ¡|   d |||||f¡Wdƒn1�s0Ytjg}| | ¡¡| | ¡t||d�tt j| fd| |d��nddlm}|D]þ}|dd…dk�r€�qf|dk�r®|dk�r˜dn|}tjj||d�}n tj |¡}|}|�rú|dt|ƒ…|k�rêtd||fƒ‚|t|ƒd…}|�rt j ||¡}t j  |¡}|�rf|�s2t!||ƒ�rTt  d||¡|�sb||||ƒnt "d||¡�qfdS)a~Byte-compile a collection of Python source files to .pyc files in a __pycache__ subdirectory. 'py_files' is a list of files to compile; any files that don't end in ".py" are silently skipped. 'optimize' must be one of the following: 0 - don't optimize 1 - normal optimization (like "python -O") 2 - extra optimization (like "python -OO") If 'force' is true, all files are recompiled regardless of timestamps. The source filename encoded in each bytecode file defaults to the filenames listed in 'py_files'; you can modify these with 'prefix' and 'basedir'. 'prefix' is a string that will be stripped off of each source filename, and 'base_dir' is a directory name that will be prepended (after 'prefix' is stripped). You can supply either or both (or neither) of 'prefix' and 'base_dir', as you wish. If 'dry_run' is true, doesn't actually do anything that would affect the filesystem. Byte-compilation is either done directly in this interpreter process with the standard py_compile module, or indirectly by writing a temporary script and executing it. Normally, you should let 'byte_compile()' figure out to use direct compilation or not (see the source for details). The 'direct' flag is used by the script generated in indirect mode; unless you know what you're doing, leave it set to None. rNzbyte-compiling is disabled.T)Úmkstempú.py)Úmktempz$writing byte-compilation script '%s'Úwz2from distutils.util import byte_compile files = [ z, z] zŒ byte_compile(files, optimize=%r, force=%r, prefix=%r, base_dir=%r, verbose=%r, dry_run=0, direct=1) )rvz removing %s)r&éýÿÿÿr )Ú optimizationz1invalid prefix: filename %r doesn't start with %rzbyte-compiling %s to %sz%skipping byte-compilation of %s to %s)#Ú subprocessrÚdont_write_bytecoderÚtempfiler‚rMr„rrqrÚfdopenÚopenÚwriter>ÚmapÚreprÚ executableÚextendÚ"_optim_args_from_interpreter_flagsrgrrwr;Ú py_compiler&Ú importlibÚutilÚcache_from_sourcerfr9r=ÚbasenamerÚdebug)Zpy_filesÚoptimizeÚforcerZÚbase_dirrurvZdirectrˆr‚Z script_fdÚ script_namer„ZscriptÚcmdr&ÚfileÚoptÚcfileÚdfileZ cfile_baser0r0r1Ú byte_compileCst$         û&  ÿ   ÿ ÿ ÿr¢cCs| d¡}d}| |¡S)zŒReturn a version of the string escaped for inclusion in an RFC-822 header, by ensuring there are 8 spaces space after each newline. Ú z )r:r>)ÚheaderÚlinesr8r0r0r1Ú rfc822_escapeØs r¦cCsV|sdSddlm}m}Gdd„d|ƒ}|dur8|dƒ}|||d�}|j|dd �dS) a Invoke 2to3 on a list of Python files. The files should all come from the build area, as the modification is done in-place. To reduce the build time, only files modified since the last invocation of this function should be passed in the files argument.Nr)ÚRefactoringToolÚget_fixers_from_packagec@s$eZdZdd„Zdd„Zdd„ZdS)z*run_2to3..DistutilsRefactoringToolc_stj|g|¢RŽdSrX)rÚerror)ÚselfrtrsÚkwr0r0r1Ú log_errorïsz4run_2to3..DistutilsRefactoringTool.log_errorcWstj|g|¢RŽdSrX)rrq©rªrtrsr0r0r1Ú log_messageòsz6run_2to3..DistutilsRefactoringTool.log_messagecWstj|g|¢RŽdSrX)rr˜r­r0r0r1Ú log_debugõsz4run_2to3..DistutilsRefactoringTool.log_debugN)rpÚ __module__Ú __qualname__r¬r®r¯r0r0r0r1ÚDistutilsRefactoringToolîsr²z lib2to3.fixes)ÚoptionsT)r�)Zlib2to3.refactorr§r¨Zrefactor)ÚfilesÚ fixer_namesr³Úexplicitr§r¨r²Úrr0r0r1Úrun_2to3âs  r¸c Csddlm}ddlm}ddlm}|ƒ} t ¡} t |¡z|   ¡Wt | ¡n t | ¡0| j | j dd…<|rš|  ¡D]} |   ¡} | sŽq||  | ¡q|g} | j D]L} tj || ¡}|tj |¡ƒ|tj || ¡|dd�}|dr¤|  |¡q¤tdd „| Dƒ|||d �| S) zÏRecursively copy a directory, only copying new and changed files, running run_2to3 over all newly copied Python modules afterward. If you give a template string, it's parsed like a MANIFEST.in. r)Úmkpath)Ú copy_file)ÚFileListNrB)ÚupdatecSsg|]}| ¡ d¡r|‘qS)rƒ)rÚendswith)Ú.0Úfnr0r0r1Ú óz$copydir_run_2to3..)rµr³r¶)Zdistutils.dir_utilr¹Zdistutils.file_utilrºZdistutils.filelistr»rÚgetcwdÚchdirÚfindallZallfilesr´Ú splitlinesrdZprocess_template_liner=r>Údirnamergr¸)ÚsrcÚdestÚtemplaterµr³r¶r¹rºr»Zfilelistr<ÚlineZcopiedÚfilenameZoutnameÚresr0r0r1Úcopydir_run_2to3ýs2        ÿrÍc@s$eZdZdZdZdZdZdd„ZdS)Ú Mixin2to3zÀMixin class for commands that run 2to3. To configure 2to3, setup scripts may either change the class variables, or inherit from individual commands to override how 2to3 is invoked.NcCst||j|j|jƒSrX)r¸rµr³r¶)rªr´r0r0r1r¸.szMixin2to3.run_2to3)rpr°r±Ú__doc__rµr³r¶r¸r0r0r0r1rÎs rÎ)rW)Nrr)rrNNrBrN)NNN)NNNN)$rÏrr%Úimportlib.utilr”r\rZdistutils.errorsrZdistutils.dep_utilrZdistutils.spawnrr/rrr2r5rArGrIrOrVr[r^r_r`rarmrwr�r¢r¦r¸rÍrÎr0r0r0r1ÚsF     P   = ü  ÿ !