/opt/alt/python311/lib64/python3.11/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-311.opt-1.pyc106640644editdlrm
archive_util.cpython-311.opt-2.pyc86560644editdlrm
archive_util.cpython-311.pyc106640644editdlrm
bcppcompiler.cpython-311.opt-1.pyc130570644editdlrm
bcppcompiler.cpython-311.opt-2.pyc127670644editdlrm
bcppcompiler.cpython-311.pyc130570644editdlrm
ccompiler.cpython-311.opt-1.pyc443560644editdlrm
ccompiler.cpython-311.opt-2.pyc282840644editdlrm
ccompiler.cpython-311.pyc446110644editdlrm
cmd.cpython-311.opt-1.pyc187970644editdlrm
cmd.cpython-311.opt-2.pyc130490644editdlrm
cmd.cpython-311.pyc187970644editdlrm
config.cpython-311.opt-1.pyc63830644editdlrm
config.cpython-311.opt-2.pyc60220644editdlrm
config.cpython-311.pyc63830644editdlrm
core.cpython-311.opt-1.pyc90530644editdlrm
core.cpython-311.opt-2.pyc56790644editdlrm
core.cpython-311.pyc90530644editdlrm
cygwinccompiler.cpython-311.opt-1.pyc141220644editdlrm
cygwinccompiler.cpython-311.opt-2.pyc125370644editdlrm
cygwinccompiler.cpython-311.pyc141220644editdlrm
debug.cpython-311.opt-1.pyc2920644editdlrm
debug.cpython-311.opt-2.pyc2920644editdlrm
debug.cpython-311.pyc2920644editdlrm
dep_util.cpython-311.opt-1.pyc39670644editdlrm
dep_util.cpython-311.opt-2.pyc25440644editdlrm
dep_util.cpython-311.pyc39670644editdlrm
dir_util.cpython-311.opt-1.pyc100340644editdlrm
dir_util.cpython-311.opt-2.pyc76940644editdlrm
dir_util.cpython-311.pyc100340644editdlrm
dist.cpython-311.opt-1.pyc547440644editdlrm
dist.cpython-311.opt-2.pyc456060644editdlrm
dist.cpython-311.pyc547440644editdlrm
errors.cpython-311.opt-1.pyc67550644editdlrm
errors.cpython-311.opt-2.pyc41390644editdlrm
errors.cpython-311.pyc67550644editdlrm
extension.cpython-311.opt-1.pyc101550644editdlrm
extension.cpython-311.opt-2.pyc66680644editdlrm
extension.cpython-311.pyc101550644editdlrm
fancy_getopt.cpython-311.opt-1.pyc168280644editdlrm
fancy_getopt.cpython-311.opt-2.pyc140930644editdlrm
fancy_getopt.cpython-311.pyc171090644editdlrm
filelist.cpython-311.opt-1.pyc158840644editdlrm
filelist.cpython-311.opt-2.pyc130600644editdlrm
filelist.cpython-311.pyc161710644editdlrm
file_util.cpython-311.opt-1.pyc103760644editdlrm
file_util.cpython-311.opt-2.pyc82650644editdlrm
file_util.cpython-311.pyc103760644editdlrm
log.cpython-311.opt-1.pyc39000644editdlrm
log.cpython-311.opt-2.pyc38400644editdlrm
log.cpython-311.pyc39000644editdlrm
msvc9compiler.cpython-311.opt-1.pyc330810644editdlrm
msvc9compiler.cpython-311.opt-2.pyc315080644editdlrm
msvc9compiler.cpython-311.pyc331640644editdlrm
msvccompiler.cpython-311.opt-1.pyc266480644editdlrm
msvccompiler.cpython-311.opt-2.pyc251280644editdlrm
msvccompiler.cpython-311.pyc266480644editdlrm
spawn.cpython-311.opt-1.pyc56090644editdlrm
spawn.cpython-311.opt-2.pyc44890644editdlrm
spawn.cpython-311.pyc56090644editdlrm
sysconfig.cpython-311.opt-1.pyc120990644editdlrm
sysconfig.cpython-311.opt-2.pyc102810644editdlrm
sysconfig.cpython-311.pyc120990644editdlrm
text_file.cpython-311.opt-1.pyc115060644editdlrm
text_file.cpython-311.opt-2.pyc64530644editdlrm
text_file.cpython-311.pyc115060644editdlrm
unixccompiler.cpython-311.opt-1.pyc132610644editdlrm
unixccompiler.cpython-311.opt-2.pyc126360644editdlrm
unixccompiler.cpython-311.pyc132610644editdlrm
util.cpython-311.opt-1.pyc246630644editdlrm
util.cpython-311.opt-2.pyc188610644editdlrm
util.cpython-311.pyc246770644editdlrm
version.cpython-311.opt-1.pyc103480644editdlrm
version.cpython-311.opt-2.pyc70590644editdlrm
version.cpython-311.pyc103710644editdlrm
versionpredicate.cpython-311.opt-1.pyc72210644editdlrm
versionpredicate.cpython-311.opt-2.pyc47670644editdlrm
versionpredicate.cpython-311.pyc72210644editdlrm
_msvccompiler.cpython-311.opt-1.pyc242610644editdlrm
_msvccompiler.cpython-311.opt-2.pyc231240644editdlrm
_msvccompiler.cpython-311.pyc243440644editdlrm
__init__.cpython-311.opt-1.pyc8210644editdlrm
__init__.cpython-311.opt-2.pyc6380644editdlrm
__init__.cpython-311.pyc8210644editdlrm
Edit: /opt/alt/python311/lib64/python3.11/distutils/__pycache__/cmd.cpython-311.pyc (18797B)
źIlpdZddlZddlZddlZddlmZddlmZmZm Z m Z m Z ddlm Z GddZ dS)ztdistutils.cmd Provides the Command class, the base class for the command classes in the distutils.command package. N)DistutilsOptionError)utildir_util file_util archive_utildep_utillogceZdZdZgZdZdZdZdZdZ d%d Z d Z d&d Z d Z d'dZd'dZdZ d'dZdZdZdZdZd&dZd(dZdZdZdZd)dZd*dZ d+dZ d,d Zd&d!Zd-d"Z d.d#Z! d/d$Z"dS)0Commanda}Abstract base class for defining command classes, the "worker bees" of the Distutils. A useful analogy for command classes is to think of them as subroutines with local variables called "options". The options are "declared" in 'initialize_options()' and "defined" (given their final values, aka "finalized") in 'finalize_options()', both of which must be defined by every command class. The distinction between the two is necessary because option values might come from the outside world (command line, config file, ...), and any options dependent on other options must be computed *after* these outside influences have been processed -- hence 'finalize_options()'. The "body" of the subroutine, where it does all its work based on the values of its options, is the 'run()' method, which must also be implemented by every command class. cddlm}t||std|jt urt d||_|d|_ |j |_ d|_ d|_ d|_ dS)zCreate and initialize a new Command object. Most importantly, invokes the 'initialize_options()' method, which is the real initializer and depends on the actual command being instantiated. r) Distributionz$dist must be a Distribution instancezCommand is an abstract classN)distutils.distr isinstance TypeError __class__r RuntimeError distributioninitialize_options_dry_runverboseforcehelp finalized)selfdistrs 4/opt/alt/python311/lib64/python3.11/distutils/cmd.py__init__zCommand.__init__/s 0/////$ -- DBCC C >W $ $=>> >  !!! |   c|dkr,t|d|z}|t|j|S|St|)Ndry_run_)getattrrAttributeError)rattrmyvals r __getattr__zCommand.__getattr___sK 9  D#*--E}t0$777  && &rcJ|js|d|_dSN)rfinalize_optionsrs rensure_finalizedzCommand.ensure_finalizedis)~ $  ! ! # # #rc0td|jz)aSet default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, 'initialize_options()' implementations are just a bunch of "self.foo = None" assignments. This method must be implemented by all command classes. ,abstract method -- subclass %s must overriderrr,s rrzCommand.initialize_options{#I!^,-- -rc0td|jz)aSet final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if 'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as long as 'foo' still has the same value it was assigned in 'initialize_options()'. This method must be implemented by all command classes. r/r0r,s rr+zCommand.finalize_optionss#I!^,-- -rNczddlm}|d|z}|||ztj|dz}|jD]j\}}}||}|ddkr |dd}t||}|||d|ztjkdS) Nr) longopt_xlatezcommand options for '%s':)levelz =z = ) distutils.fancy_getoptr5get_command_nameannouncer INFO user_options translater#)rheaderindentr5optionr"values r dump_optionszCommand.dump_optionss888888 >043H3H3J3JJF fvoSX 666$"/ * *NVQ%%m44FbzS  D&))E MM&#>> #  * * * *  * *rc0td|jz)aA command's raison d'etre: carry out the action it exists to perform, controlled by the options initialized in 'initialize_options()', customized by other commands, the setup script, the command-line, and config files, and finalized in 'finalize_options()'. All terminal output and filesystem interaction should be done by 'run()'. This method must be implemented by all command classes. r/r0r,s rrunz Command.runr1rr*c0tj||dS)zmIf the current verbosity level is of greater than or equal to 'level' print 'msg' to stdout. Nr )rmsgr6s rr;zCommand.announces srctddlm}|r/t|tjdSdS)z~Print 'msg' to stdout if the global DEBUG (taken from the DISTUTILS_DEBUG environment variable) flag is true. r)DEBUGN)distutils.debugrIprintsysstdoutflush)rrGrIs r debug_printzCommand.debug_printsM *)))))   #JJJ J         rc t||}|t||||St|tst d|d|d|d|S)N'z ' must be a z (got `z`))r#setattrrstrr)rrAwhatdefaultvals r_ensure_stringlikezCommand._ensure_stringlikesqdF## ; D&' * * *NC%% >&&*0&&$$$(=>> > rc4||d|dS)zWEnsure that 'option' is a string; if not defined, set it to 'default'. stringN)rW)rrArUs r ensure_stringzCommand.ensure_strings" ':::::rc6t||}|dSt|tr&t||t jd|dSt|t rtd|D}nd}|std|d|ddS)zEnsure that 'option' is a list of strings. If 'option' is currently a string, we split it either on /,\s*/ or /\s+/, so "foo bar baz", "foo,bar,baz", and "foo, bar baz" all become ["foo", "bar", "baz"]. Nz,\s*|\s+c3@K|]}t|tVdSN)rrS).0vs r z-Command.ensure_string_list..s,99As++999999rFrQz!' must be a list of strings (got )) r#rrSrRresplitlistallr)rrArVoks rensure_string_listzCommand.ensure_string_lists dF## ; F S ! ! ' D&"(;"<"< = = = = =#t$$ 99S99999 '**&''' ' 'rc||||}|"||std|z||fzdSdS)Nzerror in '%s' option: )rWr)rrAtesterrT error_fmtrUrVs r_ensure_tested_stringzCommand._ensure_tested_strings[%%fdG<< ?66#;;?&(@9(L*0#(788 8 ???rcT||tjjdddS)z5Ensure that 'option' is the name of an existing file.filenamez$'%s' does not exist or is not a fileN)rkospathisfilerrAs rensure_filenamezCommand.ensure_filenames7 ""627>#-#I K K K K KrcT||tjjdddS)Nzdirectory namez)'%s' does not exist or is not a directory)rkrnroisdirrqs rensure_dirnamezCommand.ensure_dirnames7 ""627=#3#N P P P P PrcHt|dr|jS|jjS)N command_name)hasattrrwr__name__r,s rr:zCommand.get_command_name s( 4 ( ( +$ $>* *rc |j|}||D]4\}}t||t ||t||5dS)a>Set the values of any "undefined" options from corresponding option values in some other command object. "Undefined" here means "is None", which is the convention used to indicate that an option has not been changed between 'initialize_options()' and 'finalize_options()'. Usually called from 'finalize_options()' for options that depend on some other command rather than another option of the same command. 'src_cmd' is the other command from which option values will be taken (a command object will be created for it if necessary); the remaining arguments are '(src_option,dst_option)' tuples which mean "take the value of 'src_option' in the 'src_cmd' command object, and copy it to 'dst_option' in the current command object". N)rget_command_objr-r#rR)rsrc_cmd option_pairs src_cmd_obj src_option dst_options rset_undefined_optionszCommand.set_undefined_optionss{'77@@ $$&&&(4 L L $ZtZ((0j'+z*J*JKKK L Lrcd|j||}||S)zWrapper around Distribution's 'get_command_obj()' method: find (create if necessary and 'create' is true) the command object for 'command', call its 'ensure_finalized()' method, and return the finalized command object. )rr{r-)rcommandcreatecmd_objs rget_finalized_commandzCommand.get_finalized_command$s3 #33GVDD  """rrc8|j||Sr])rreinitialize_command)rrreinit_subcommandss rrzCommand.reinitialize_command0s% 55g6HJJ Jrc:|j|dS)zRun some other command: uses the 'run_command()' method of Distribution, which creates and finalizes the command object if necessary and then invokes its 'run()' method. N)r run_command)rrs rrzCommand.run_command4s! %%g.....rchg}|jD]'\}}| ||r||(|S)akDetermine the sub-commands that are relevant in the current distribution (ie., that need to be run). This is based on the 'sub_commands' class attribute: each tuple in that list may include a method that we call to determine if the subcommand needs to be run for the current distribution. Return a list of command names. ) sub_commandsappend)rcommandscmd_namemethods rget_sub_commandszCommand.get_sub_commands;sI"&"3 * * Xv~~)))rcVtjd||dS)Nzwarning: %s: %s )r warnr:)rrGs rrz Command.warnKs) $d&;&;&=&=sCCCCCrc@tj||||jdSNr!)rexecuter!)rfuncargsrGr6s rrzCommand.executeNs# T4dl;;;;;;rc>tj|||jdSr)rmkpathr!)rnamemodes rrzCommand.mkpathQs!dDL999999rc Ntj|||||j ||jS)zCopy a file respecting verbose, dry-run and force flags. (The former two default to whatever is in the Distribution object, and the latter defaults to false for commands that don't define it.)r)r copy_filerr!)rinfileoutfile preserve_modepreserve_timeslinkr6s rrzCommand.copy_fileTs4 "67M#1tz>4+/<999 9rc Ntj||||||j |jS)z\Copy an entire directory tree respecting verbose, dry-run, and force flags. r)r copy_treerr!)rrrrrpreserve_symlinksr6s rrzCommand.copy_tree]s9 !&'="02C&*j.$,HHH Hrc:tj|||jS)z$Move a file respecting dry-run flag.r)r move_filer!)rsrcdstr6s rrzCommand.move_filefs"3T\BBBBrc8ddlm}||||jdS)z2Spawn an external command respecting dry-run flag.r)spawnrN)distutils.spawnrr!)rcmd search_pathr6rs rrz Command.spawnjs3)))))) c; 555555rc Btj|||||j||S)N)r!ownergroup)r make_archiver!)r base_nameformatroot_dirbase_dirrrs rrzCommand.make_archiveos2(FHh15/4ECCC Crcj|d|z}t|tr|f}n+t|ttfst d|d|dd|}|jstj||r| ||||dStj |dS)aSpecial case of 'execute()' for operations that process one or more input files and generate one output file. Works just like 'execute()', except the operation is skipped and a different message printed if 'outfile' already exists and is newer than all files listed in 'infiles'. If the command defined 'self.force', and it is true, then the command is unconditionally run -- does no timestamp checks. Nzskipping %s (inputs unchanged)z9'infiles' must be a string, or a list or tuple of stringsz generating z from z, ) rrSrdtuplerjoinrr newer_grouprr debug)rinfilesrrrexec_msgskip_msgr6s r make_filezCommand.make_fileus  7'AH gs # # OjGGGdE]33 OMOO O   29''499W;M;M;MNH : -gw?? LLtXu 5 5 5 5 5 Ih     r)Nr3)r*r])rr))r)r*r*Nr*)r*r*rr*)r*r*)NNNN)NNr*)#ry __module__ __qualname____doc__rrr'r-rr+rCrEr;rOrWrZrgrkrrrur:rrrrrrrrrrrrrrrrr r sw  :L ---`'''$ - - - - - - * * * * - - - .;;;; ''','+8888KKK PPP+++ LLL*JJJJ///    DDD<<<<::::JK#$9999JK./HHHHCCCC6666 GK'+CCCC78      rr )rrLrnrbdistutils.errorsr distutilsrrrrrr r rrrrs 111111GGGGGGGGGGGGGGG G G G G G G G G G r