/opt/alt/python38/lib64/python3.8/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-38.opt-1.pyc65540644editdlrm
archive_util.cpython-38.opt-2.pyc45120644editdlrm
archive_util.cpython-38.pyc65540644editdlrm
bcppcompiler.cpython-38.opt-1.pyc65380644editdlrm
bcppcompiler.cpython-38.opt-2.pyc62500644editdlrm
bcppcompiler.cpython-38.pyc65380644editdlrm
ccompiler.cpython-38.opt-1.pyc331850644editdlrm
ccompiler.cpython-38.opt-2.pyc168790644editdlrm
ccompiler.cpython-38.pyc333120644editdlrm
cmd.cpython-38.opt-1.pyc139630644editdlrm
cmd.cpython-38.opt-2.pyc80970644editdlrm
cmd.cpython-38.pyc139630644editdlrm
config.cpython-38.opt-1.pyc35240644editdlrm
config.cpython-38.opt-2.pyc31330644editdlrm
config.cpython-38.pyc35240644editdlrm
core.cpython-38.opt-1.pyc66290644editdlrm
core.cpython-38.opt-2.pyc32420644editdlrm
core.cpython-38.pyc66290644editdlrm
cygwinccompiler.cpython-38.opt-1.pyc86270644editdlrm
cygwinccompiler.cpython-38.opt-2.pyc69970644editdlrm
cygwinccompiler.cpython-38.pyc86270644editdlrm
debug.cpython-38.opt-1.pyc2090644editdlrm
debug.cpython-38.opt-2.pyc2090644editdlrm
debug.cpython-38.pyc2090644editdlrm
dep_util.cpython-38.opt-1.pyc27290644editdlrm
dep_util.cpython-38.opt-2.pyc12850644editdlrm
dep_util.cpython-38.pyc27290644editdlrm
dir_util.cpython-38.opt-1.pyc58380644editdlrm
dir_util.cpython-38.opt-2.pyc34600644editdlrm
dir_util.cpython-38.pyc58380644editdlrm
dist.cpython-38.opt-1.pyc345070644editdlrm
dist.cpython-38.opt-2.pyc252160644editdlrm
dist.cpython-38.pyc345070644editdlrm
errors.cpython-38.opt-1.pyc52650644editdlrm
errors.cpython-38.opt-2.pyc27170644editdlrm
errors.cpython-38.pyc52650644editdlrm
extension.cpython-38.opt-1.pyc69380644editdlrm
extension.cpython-38.opt-2.pyc34480644editdlrm
extension.cpython-38.pyc69380644editdlrm
fancy_getopt.cpython-38.opt-1.pyc105270644editdlrm
fancy_getopt.cpython-38.opt-2.pyc77240644editdlrm
fancy_getopt.cpython-38.pyc106710644editdlrm
filelist.cpython-38.opt-1.pyc97920644editdlrm
filelist.cpython-38.opt-2.pyc69210644editdlrm
filelist.cpython-38.pyc98820644editdlrm
file_util.cpython-38.opt-1.pyc59480644editdlrm
file_util.cpython-38.opt-2.pyc38110644editdlrm
file_util.cpython-38.pyc59480644editdlrm
log.cpython-38.opt-1.pyc23300644editdlrm
log.cpython-38.opt-2.pyc22690644editdlrm
log.cpython-38.pyc23300644editdlrm
msvc9compiler.cpython-38.opt-1.pyc174660644editdlrm
msvc9compiler.cpython-38.opt-2.pyc158450644editdlrm
msvc9compiler.cpython-38.pyc175250644editdlrm
msvccompiler.cpython-38.opt-1.pyc147380644editdlrm
msvccompiler.cpython-38.opt-2.pyc131630644editdlrm
msvccompiler.cpython-38.pyc147380644editdlrm
spawn.cpython-38.opt-1.pyc51210644editdlrm
spawn.cpython-38.opt-2.pyc38170644editdlrm
spawn.cpython-38.pyc51210644editdlrm
sysconfig.cpython-38.opt-1.pyc121520644editdlrm
sysconfig.cpython-38.opt-2.pyc86670644editdlrm
sysconfig.cpython-38.pyc121520644editdlrm
text_file.cpython-38.opt-1.pyc84540644editdlrm
text_file.cpython-38.opt-2.pyc33560644editdlrm
text_file.cpython-38.pyc84540644editdlrm
unixccompiler.cpython-38.opt-1.pyc69990644editdlrm
unixccompiler.cpython-38.opt-2.pyc63700644editdlrm
unixccompiler.cpython-38.pyc69990644editdlrm
util.cpython-38.opt-1.pyc155610644editdlrm
util.cpython-38.opt-2.pyc96770644editdlrm
util.cpython-38.pyc155610644editdlrm
version.cpython-38.opt-1.pyc72810644editdlrm
version.cpython-38.opt-2.pyc39960644editdlrm
version.cpython-38.pyc73260644editdlrm
versionpredicate.cpython-38.opt-1.pyc51500644editdlrm
versionpredicate.cpython-38.opt-2.pyc26700644editdlrm
versionpredicate.cpython-38.pyc51500644editdlrm
_msvccompiler.cpython-38.opt-1.pyc129220644editdlrm
_msvccompiler.cpython-38.opt-2.pyc117720644editdlrm
_msvccompiler.cpython-38.pyc129810644editdlrm
__init__.cpython-38.opt-1.pyc3990644editdlrm
__init__.cpython-38.opt-2.pyc2170644editdlrm
__init__.cpython-38.pyc3990644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/distutils/__pycache__/util.cpython-38.opt-1.pyc (15561B)
U ifQ@s dZddlZddlZddlZddlZddlZddlmZddl m Z ddl m Z ddl mZddlmZdd Zd d Zd d ZddZdaddZddZd*ddZdaaaddZddZd+ddZddZd,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 CstjdkrFdtjkrdSdtjkr.dSdtjkr@dStjSdtjkrZtjdStjd ksnttd sttjSt\}}}}}| d d }| d d}| d d}|dddkrd||fS|dddkr,|ddkrd}dt |dd|ddf}ddd}|d|tj 7}n|dddkrLd |||fS|dd!d"krd"}t d#t j}||}|r|}n>|dd!d$krddl}ddl} || j|||\}}}d%|||fS)&aReturn 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_PLATFORMposixuname/ _-NZlinuxz%s-%sZsunosr5Zsolarisz%d.%sZ32bitZ64bit)ilz.%sZaixz%s-%s.%scygwinz[\d.]+darwinz%s-%s-%s)osnamesysversionlowerplatformenvironhasattrr replaceintmaxsizerecompileASCIImatchgroup _osx_supportZdistutils.sysconfigZget_platform_osxZ sysconfigZget_config_vars) ZosnameZhostreleasermachineZbitnessZrel_remr( distutilsr-3/opt/alt/python38/lib64/python3.8/distutils/util.pyget_host_platformsR           r/cCs8tjdkr.dddd}|tjdp,tStSdS)NrZwin32rr )Zx86Zx64ZarmZVSCMD_ARG_TGT_ARCH)rrgetrr/)ZTARGET_TO_PLATr-r-r. get_platformas r1cCsztjdkr|S|s|S|ddkr.td||ddkrFtd||d}d|krd|dqP|sntjStjj|S)aReturn '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 absolutezpath '%s' cannot end with '/'.)rsep ValueErrorsplitremovecurdirpathjoin)pathnamepathsr-r-r. convert_pathls       r=cCstjdkr) _environ_checkedrrrpwdgetpwuidgetuid ImportErrorKeyErrorr1)rEr-r-r. check_environs   rJc CsVt|fdd}ztd||WStk rP}ztd|W5d}~XYnXdS)aPerform 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}||krt||Stj|SdS)Nr>)r'strrr)r& local_varsZvar_namer-r-r._substs  zsubst_vars.._substz\$([a-zA-Z_][a-zA-Z_0-9]*)zinvalid variable '$%s'N)rJr#subrIr5)srLrMvarr-r-r. subst_varss  rQerror: cCs |t|SN)rK)excprefixr-r-r.grok_environment_errorsrVcCs(tdtjatdatdadS)Nz [^\\\'\"%s ]*z'(?:[^'\\]|\\.)*'z"(?:[^"\\]|\\.)*")r#r$string whitespace _wordchars_re _squote_re _dquote_rer-r-r-r. _init_regexs r\cCstdkrt|}g}d}|rt||}|}|t|krZ||d|q||tjkr||d|||d }d}n||dkr|d|||dd}|d}n||dkrt ||}n*||dkrt ||}nt d|||dkr t d|||\}}|d|||d|d||d}|d }|t|kr||qq|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. Nrr?r>'"z!this can't happen (bad char '%c')z"bad string (mismatched %s quotes?)r)rYr\stripr&endlenappendrWrXlstriprZr[ RuntimeErrorr5span)rOZwordsposr+r`Zbegr-r-r. split_quoteds@        ,   rgcCsP|dkr6d|j|f}|dddkr6|ddd}t||sL||dS)aPerform 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%rz,)r))__name__rinfo)funcargsmsgverbosedry_runr-r-r.executes  rqcCs2|}|dkrdS|dkr dStd|fdS)zConvert 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. )yZyesttrueZon1r>)nZnofZfalseZoff0rzinvalid truth value %rN)rr5)valr-r-r. strtobool2s rzr>c CsTddl}tjrtd|dkr*do(|dk}|s@zddlm} | d\} } Wn.tk rzddlm} d| d} } YnXt d| |s| dk rt | d } n t | d } | B| d | d tt|d | d |||||fW5QRXtjg}|||| t||dtt j| fd| |dnddlm}|D]}|dddkrjqP|dkr|dkrdn|}tjj||d}n tj|}|}|r|dt||krtd||f|t|d}|rt j||}t j |}|rP|st!||r>t d|||sL||||nt"d||qPdS)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.F)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) )rpz removing %s)r$r ) optimizationz1invalid prefix: filename %r doesn't start with %rzbyte-compiling %s to %sz%skipping byte-compilation of %s to %s)# subprocessrdont_write_bytecoderZtempfiler{rHr}rrkrfdopenopenwriter:maprepr executableextendZ"_optim_args_from_interpreter_flagsrbrrqr7 py_compiler$ importlibutilcache_from_sourcerar5r9basenamerdebug)Zpy_filesoptimizeZforcerUZbase_dirrorpZdirectrr{Z script_fdZ script_namer}Zscriptcmdr$fileoptcfiledfileZ cfile_baser-r-r. byte_compileBsx$               rcCs|d}d}||S)zReturn a version of the string escaped for inclusion in an RFC-822 header, by ensuring there are 8 spaces space after each newline.  z )r6r:)headerlinesr4r-r-r. rfc822_escapes rcCsV|sdSddlm}m}Gddd|}|dkr8|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)RefactoringToolget_fixers_from_packagec@s$eZdZddZddZddZdS)z*run_2to3..DistutilsRefactoringToolc_stj|f|dSrS)rerror)selfrnrmkwr-r-r. log_errorsz4run_2to3..DistutilsRefactoringTool.log_errorcWstj|f|dSrS)rrkrrnrmr-r-r. log_messagesz6run_2to3..DistutilsRefactoringTool.log_messagecWstj|f|dSrS)rrrr-r-r. log_debugsz4run_2to3..DistutilsRefactoringTool.log_debugN)rj __module__ __qualname__rrrr-r-r-r.DistutilsRefactoringToolsrz lib2to3.fixes)optionsT)r)Zlib2to3.refactorrrZrefactor)files fixer_namesrexplicitrrrrr-r-r.run_2to3s  rc Csddlm}ddlm}ddlm}|} t} t|z | W5t| X| j | j dd<|r| D]} | } | sqr| | qrg} | j D]L} tj|| }|tj||tj|| |dd}|dr| |qtdd | D|||d | S) zRecursively 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)FileListNr>)updatecSsg|]}|dr|qS)r|)rendswith).0fnr-r-r. sz$copydir_run_2to3..)rrr)Zdistutils.dir_utilrZdistutils.file_utilrZdistutils.filelistrrgetcwdchdirfindallZallfilesr splitlinesr_Zprocess_template_liner9r:dirnamerbr)srcdesttemplaterrrrrrZfilelistr8lineZcopiedfilenameZoutnameresr-r-r.copydir_run_2to3s:          rc@s$eZdZdZdZdZdZddZdS) Mixin2to3zMixin 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|jSrS)rrrr)rrr-r-r.r-szMixin2to3.run_2to3)rjrr__doc__rrrrr-r-r-r.rs r)rR)Nrr)rrNNr>rN)NNN)NNNN)$rrr#importlib.utilrrWrZdistutils.errorsrZdistutils.dep_utilrZdistutils.spawnrr,rrr/r1r=rBrDrJrQrVrYrZr[r\rgrqrzrrrrrr-r-r-r.sN     O   =    !