hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
Ë
@ñúhªVãó —dZddlmZddlZddlZddlZddlZddlmZddl    m
Z
m Z ddl m Z mZmZmZmZddlmZmZmZmZmZdd    lmZdd
lmZe rdd lmZdd lmZm Z ed «Z!edd¬«Z"edd¬«Z#edd¬«Z$Gd„d«Z%y)ztdistutils.cmd
 
Provides the Command class, the base class for the command classes
in the distutils.command package.
é)Ú annotationsN)Úabstractmethod)ÚCallableÚMutableSequence)Ú TYPE_CHECKINGÚAnyÚClassVarÚTypeVarÚoverloadé)Ú    _modifiedÚ archive_utilÚdir_utilÚ    file_utilÚutil©Úlog)ÚDistutilsOptionError©Ú Distribution)Ú TypeVarTupleÚUnpackÚ_TsÚ    _StrPathTústr | os.PathLike[str])ÚboundÚ _BytesPathTúbytes | os.PathLike[bytes]Ú    _CommandTÚCommandcóš—eZdZUdZgZded<gZded<d-d„Zd„Zd.d„Z    e
d.d    „«Z e
d.d
„«Z d/d „Z e
d.d „«Zej fd0d„Zd1d„Zd2d„Zd2d3d„Zd4d„Zd2d„Zd4d„Zd4d„Zd5d„Z                        d6d„Zd7d8d„Ze    d9                    d:d„«Ze    d9                    d;d„«Z    d9            d<d„Zd=d„Zd>d„Zd1d„Z         d?                                    d@d„Z!dAdBd „Z"e                dC                                                    dDd!„«Z#e                dC                                                    dEd"„«Z#                dC                                                    dFd#„Z#                dG                                                    dHd$„Z$e    dI                            dJd%„«Z%e    dI                            dKd&„«Z%    dI                            dLd'„Z%    dM                            dNd(„Z&e                dO                                                    dPd)„«Z'e            dQ                                                    dRd*„«Z'                dO                                                    dSd+„Z'            dT                                                            dUd,„Z(y )Vr a}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.
    z8ClassVar[list[tuple[str, Callable[[Any], bool] | None]]]Ú sub_commandszHClassVar[list[tuple[str, str, str]] | list[tuple[str, str | None, str]]]Ú user_optionscó—ddlm}t||«s td«‚|jt
ur t d«‚||_|j«d|_    |j|_
d|_ d|_ d|_ y)zÞCreate 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.
        rrz$dist must be a Distribution instancezCommand is an abstract classNF)Údistutils.distrÚ
isinstanceÚ    TypeErrorÚ    __class__r Ú RuntimeErrorÚ distributionÚinitialize_optionsÚ_dry_runÚverboseÚforceÚhelpÚ    finalized)ÚselfÚdistrs   úLH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/cmd.pyÚ__init__zCommand.__init__Ksz€õ    0ä˜$  Ô-ÜÐBÓCÐ CØ >‰>œWÑ $ÜÐ=Ó>Ð >à ˆÔØ ×ÑÔ!ðˆŒ ð—|‘|ˆŒ 𠈌
ðˆŒ    ð ˆócót—|dk(r)t|d|z«}|€t|j|«S|St|«‚)NÚdry_runÚ_)Úgetattrr*ÚAttributeError)r1ÚattrÚmyvals   r3Ú __getattr__zCommand.__getattr__{sB€Ø 9Ò Ü˜D #¨¡*Ó-ˆE؈}ܘt×0Ñ0°$Ó7Ð7à ä  Ó&Ð &r5cóJ—|js|j«d|_y)NT)r0Úfinalize_options©r1s r3Úensure_finalizedzCommand.ensure_finalized…s€Ø~Š~Ø × !Ñ !Ô #؈r5có4—td|j›d«‚)aÙSet 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 ú must override©r)r(r@s r3r+zCommand.initialize_options—ó"€ôØ*¨4¯>©>Ð*:¸.Ð Ió
ð    
r5có4—td|j›d«‚)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.
        rCrDrEr@s r3r?zCommand.finalize_options¦s"€ôØ*¨4¯>©>Ð*:¸.Ð Ió
ð    
r5Ncó^—ddlm}|€d|j«›d}|j||ztj
¬«|dz}|j D]Y\}}}|j|«}|ddk(r|dd}t||«}|j||›d    |›ztj
¬«Œ[y)
Nr)Ú longopt_xlatezcommand options for 'z':)Úlevelz  éÿÿÿÿú=z = )    Údistutils.fancy_getoptrIÚget_command_nameÚannounceÚloggingÚINFOr#Ú    translater9)r1ÚheaderÚindentrIÚoptionr8Úvalues       r3Ú dump_optionszCommand.dump_options¶s·€Ý8à ˆ>Ø,¨T×-BÑ-BÓ-DÐ,EÀRÐHˆFØ  ‰ f˜v‘o¬W¯\©\ˆ Ô:ؘ$‘ˆØ ×-Ñ-ò    N‰LˆFAqØ×%Ñ% mÓ4ˆFؐb‰z˜SÒ Ø  ˜Ü˜D &Ó)ˆEØ M‰M˜& f X¨S°°Ð#8Ñ8ÄÇ Á ˆMÕ Mñ     Nr5có4—td|j›d«‚)a¾A 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.
        rCrDrEr@s r3Úrunz Command.runÄrFr5có0—tj||«y©Nr)r1ÚmsgrJs   r3rOzCommand.announceÓs€Ü ‰sÕr5cóh—ddlm}|r*t|«tjj «yy)z~Print 'msg' to stdout if the global DEBUG (taken from the
        DISTUTILS_DEBUG environment variable) flag is true.
        r)ÚDEBUGN)Údistutils.debugr^ÚprintÚsysÚstdoutÚflush)r1r\r^s   r3Ú debug_printzCommand.debug_printÖs&€õ    *á Ü #ŒJÜ J‰J× Ñ Õ ð r5c    óŠ—t||«}|€t|||«|St|t«st    d|›d|›d|›d«‚|S)Nú'z ' must be a z (got `z`))r9Úsetattrr&Ústrr)r1rUÚwhatÚdefaultÚvals     r3Ú_ensure_stringlikezCommand._ensure_stringlikeísT€Üd˜FÓ#ˆØ ˆ;Ü D˜& 'Ô *؈NܘC¤Ô%Ü&¨¨6¨(°,¸t¸fÀGÈCÈ5ÐPRÐ'SÓTÐ T؈
r5có*—|j|d|«y)zWEnsure that 'option' is a string; if not defined, set it to
        'default'.
        ÚstringN)rl)r1rUrjs   r3Ú ensure_stringzCommand.ensure_stringös€ð     ×Ñ ¨°'Õ:r5cóø—t||«}|€yt|t«r"t||t    j
d|««yt|t «rtd„|D««}nd}|std|›d|›d«‚y)zîEnsure 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|t«–—Œy­wr[)r&rh)Ú.0Úvs  r3ú    <genexpr>z-Command.ensure_string_list.<locals>.<genexpr>    sèø€Ò9°œ A¤s×+Ñ9ùs‚Frfz!' must be a list of strings (got ú))    r9r&rhrgÚreÚsplitÚlistÚallr)r1rUrkÚoks    r3Úensure_string_listzCommand.ensure_string_listüs€€ô d˜FÓ#ˆØ ˆ;Ø Ü ˜œSÔ !Ü D˜&¤"§(¡(¨;¸Ó"<Õ =ä˜#œtÔ$ÜÑ9°SÔ9Ó9‘àÙÜ*ؘxÐ@ÀÀÀqÐIóððr5cóf—|j|||«}|||«std|z||fz«‚yy)Nzerror in '%s' option: )rlr)r1rUÚtesterriÚ    error_fmtrjrks       r3Ú_ensure_tested_stringzCommand._ensure_tested_stringsF€Ø×%Ñ% f¨d°GÓ<ˆØ ˆ?¡6¨#¤;Ü&Ø)¨IÑ5¸&À#¸ÑFóð ð$/ˆ?r5có\—|j|tjjdd«y)z5Ensure that 'option' is the name of an existing file.Úfilenamez$'%s' does not exist or is not a fileN)rÚosÚpathÚisfile©r1rUs  r3Úensure_filenamezCommand.ensure_filenames"€à ×"Ñ"Ø ”B—G‘G—N‘N JÐ0Võ    
r5có\—|j|tjjdd«y)Nzdirectory namez)'%s' does not exist or is not a directory)rr‚rƒÚisdirr…s  r3Úensure_dirnamezCommand.ensure_dirnames$€Ø ×"Ñ"Ø Ü G‰GM‰MØ Ø 7õ        
r5có^—t|d«r |jS|jjS)NÚ command_name)Úhasattrr‹r(Ú__name__r@s r3rNzCommand.get_command_name(s(€Ü 4˜Ô (Ø×$Ñ$Ð $à—>‘>×*Ñ*Ð *r5c    ó¶—|jj|«}|j«|D])\}}t||«Œt    ||t||««Œ+y)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)r*Úget_command_objrAr9rg)r1Úsrc_cmdÚ option_pairsÚ src_cmd_objÚ
src_optionÚ
dst_options      r3Úset_undefined_optionszCommand.set_undefined_options.s\€ð"×'Ñ'×7Ñ7¸Ó@ˆ Ø×$Ñ$Ô&Ø&2ò    LÑ "ˆJ˜
ܐt˜ZÓ(Ñ0ܘ˜j¬'°+¸zÓ*JÕKñ    Lr5có^—|jj||«}|j«|S)zûWrapper 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.
        )r*rrA)r1ÚcommandÚcreateÚcmd_objs    r3Úget_finalized_commandzCommand.get_finalized_commandGs-€ð ×#Ñ#×3Ñ3°G¸VÓDˆØ× Ñ Ô"؈r5có—yr[©©r1r—Úreinit_subcommandss   r3Úreinitialize_commandzCommand.reinitialize_commandSs€ðr5có—yr[rœrs   r3rŸzCommand.reinitialize_commandWs€ðr5có:—|jj||«Sr[)r*rŸrs   r3rŸzCommand.reinitialize_command[s€ð× Ñ ×5Ñ5°gÐ?QÓRÐRr5có:—|jj|«y)zÂRun 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)r1r—s  r3r£zCommand.run_command`s€ð
     ×Ñ×%Ñ% gÕ.r5cój—g}|jD]!\}}|    ||«sŒ|j|«Œ#|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.
        )r"Úappend)r1ÚcommandsÚcmd_nameÚmethods    r3Úget_sub_commandszCommand.get_sub_commandsgsA€ðˆØ $× 1Ñ 1ò    *Ñ ˆHf؈~¡¨¥Ø—‘ Õ)ð    *ðˆr5cóN—tjd|j«|«y)Nzwarning: %s: %s
)rÚwarningrN)r1r\s  r3Úwarnz Command.warnvs€Ü  ‰ Ð'¨×)>Ñ)>Ó)@À#ÕFr5cóJ—tj||||j¬«y©N©r7)rÚexecuter7)r1ÚfuncÚargsr\rJs     r3r°zCommand.executeys€ô      ‰ T˜4 ¨d¯l©lÖ;r5cóH—tj|||j¬«yr®)rÚmkpathr7)r1ÚnameÚmodes   r3r´zCommand.mkpath‚s€Ü‰˜˜d¨D¯L©LÖ9r5có—yr[rœ©r1ÚinfileÚoutfileÚ preserve_modeÚpreserve_timesÚlinkrJs       r3Ú    copy_filezCommand.copy_file…s€ð(+r5có—yr[rœr¸s       r3r¾zCommand.copy_files€ð,/r5c    ód—tj|||||j ||j¬«S)zÑCopy 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¯)rr¾r.r7r¸s       r3r¾zCommand.copy_file™s6€ô×"Ñ"Ø Ø Ø Ø Ø—
‘
ˆNØ Ø—L‘Lô
ð    
r5c    ód—tj||||||j |j¬«S)z\Copy an entire directory tree respecting verbose, dry-run,
        and force flags.
        r¯)rÚ    copy_treer.r7)r1r¹rºr»r¼Úpreserve_symlinksrJs       r3rÂzCommand.copy_tree¯s6€ô×!Ñ!Ø Ø Ø Ø Ø Ø—
‘
ˆNØ—L‘Lô
ð    
r5có—yr[rœ©r1ÚsrcÚdstrJs    r3Ú    move_filezCommand.move_fileÅs€ðr5có—yr[rœrÅs    r3rÈzCommand.move_fileÉs€ð"r5cóF—tj|||j¬«S)z$Move a file respecting dry-run flag.r¯)rrÈr7rÅs    r3rÈzCommand.move_fileÍs€ô×"Ñ" 3¨°T·\±\ÔBÐBr5có:—ddlm}||||j¬«y)z2Spawn an external command respecting dry-run flag.r)Úspawnr¯N)Údistutils.spawnrÌr7)r1ÚcmdÚ search_pathrJrÌs     r3rÌz Command.spawnÖs€õ    *á ˆc;¨¯ © Ö5r5có—yr[rœ©r1Ú    base_nameÚformatÚroot_dirÚbase_dirÚownerÚgroups       r3Ú make_archivezCommand.make_archiveÞó€ðr5có—yr[rœrÑs       r3rØzCommand.make_archiveèrÙr5c    óN—tj|||||j||¬«S)N)r7rÖr×)rrØr7rÑs       r3rØzCommand.make_archiveòs0€ô×(Ñ(Ø Ø Ø Ø Ø—L‘LØØô
ð    
r5có\—|€d|›d}t|t«r|f}n!t|ttf«s t    d«‚|€!dj |dj |««}|jstj||«r|j||||«ytj|«y)aÌSpecial 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.
        Nz    skipping z (inputs unchanged)z9'infiles' must be a string, or a list or tuple of stringszgenerating {} from {}z, ) r&rhrxÚtupler'rÓÚjoinr.r Ú newer_groupr°rÚdebug)r1Úinfilesrºr±r²Úexec_msgÚskip_msgrJs        r3Ú    make_filezCommand.make_filesŸ€ð$ Ð Ø" 7 )Ð+>Ð?ˆHô gœsÔ #ؐj‰GܘG¤d¬E ]Ô3ÜÐWÓXÐ Xà Ð Ø.×5Ñ5°g¸t¿y¹yÈÓ?QÓRˆHð
:Š:œ×.Ñ.¨w¸Ô@Ø L‰L˜˜t X¨uÕ 5ô I‰IhÕ r5)r2rÚreturnÚNone)råræ)NÚ)r\ÚobjectrJÚintråræ)r\rèrårær[)rUrhrjú
str | Noneråræ)rUrhråræ)rårh)rrhr‘ztuple[str, str]råræ)T)r—rhr˜Úboolrår )F)r—rhržrërår )r—rržrërår)r—z str | Commandrår )r—rhråræ)råú    list[str])Nr )
r±úCallable[[Unpack[_Ts]], object]r²útuple[Unpack[_Ts]]r\rèrJréråræ)iÿ)rµrhr¶réråræ)TTNr )r¹rrºrr»rër¼rër½rêrJréråztuple[_StrPathT | str, bool])r¹rrºrr»rër¼rër½rêrJréråz tuple[_BytesPathT | bytes, bool])r¹ú3str | os.PathLike[str] | bytes | os.PathLike[bytes]rºrïr»rër¼rër½rêrJréråz@tuple[str | os.PathLike[str] | bytes | os.PathLike[bytes], bool])TTFr )r¹rrºrhr»rër¼rërÃrërJrérårì)r )rÆrrÇrrJréråz_StrPathT | str)rÆrrÇrrJréråz_BytesPathT | bytes)rÆrïrÇrïrJrérårï)Tr )rÎzMutableSequence[str]rÏrërJréråræ)NNNN)rÒrhrÓrhrÔú:str | os.PathLike[str] | bytes | os.PathLike[bytes] | NonerÕrêrÖrêr×rêrårh)NNN)rÒrrÓrhrÔrïrÕrêrÖrêr×rêrårh)rÒrrÓrhrÔrðrÕrêrÖrêr×rêrårh)NNr )ráz!str | list[str] | tuple[str, ...]rºrïr±rír²rîrârèrãrèrJréråræ))rÚ
__module__Ú __qualname__Ú__doc__r"Ú__annotations__r#r4r=rArr+r?rWrYrPr^rOrdrlror{rr†r‰rNr•ršr rŸr£r©r¬r°r´r¾rÂrÈrÌrØrärœr5r3r r "s|…ñ ð>     ððó ð     ððó ó-ò`'óð$ò 
óð 
ðò 
óð 
ó Nðò 
óð 
ð29·±ôóó.ô;ó ó*ó
ó 
ó+ð LØðLØ+:ðLà     óLô2ðà7<ðØðØ04ðà    òóððà=BðØ ðØ6:ðà    òóðð:?ðSØ$ðSà    óSó
/ó óGðØð <à-ð<ð!ð<ðð    <ð
ð <ð
ó <ô:ðð
#Ø#ØØð+à&ð+ðð+ðð    +ð
ð +ð ð +ðð+ð
&ò+óð+ðð
#Ø#ØØð/à*ð/ðð/ðð    /ð
ð /ð ð /ðð/ð
*ò/óð/ð#Ø#ØØð
àCð
ðEð
ðð    
ð
ð 
ð ð 
ðð
ð
Jó
ð4#Ø#Ø"'Øð
à&ð
ðð
ðð    
ð
ð 
ð  ð 
ðð
ð
ó
ð,àHIðØ)ðØ09ðØBEðà    òóððàNOð"Ø-ð"Ø4?ð"ØHKð"à    ò"óð"ðð    Cà @ðCðAðCðð    Cð
 
=ó CðQRð6Ø'ð6Ø6:ð6ØJMð6à     ó6ðð
PTØ#ؠؠðàððððMð    ð
ð ð ð ððð
òóððð  $ؠؠðà)ððððFð    ð
ð ð ð ððð
òóððPTØ#ؠؠð
à)ð
ðð
ðMð    
ð
ð 
ð ð 
ðð
ð
ó
ð2 ØØð% à2ð% ðEð% ð.ð    % ð
!ð % ð ð % ðð% ðð% ð
ô% r5)&róÚ
__future__rrPr‚rvraÚabcrÚcollections.abcrrÚtypingrrr    r
r rçr rrrrÚ_logrÚerrorsrr%rÚtyping_extensionsrrrrrrr rœr5r3ú<module>rüsxðñõ #ãÛ    Û    Û
Ýß5ßBÕBç@Õ@ÝÝ(áå+ç6á
uÓ
€Cá KÐ'?Ô @€    ÙmÐ+GÔH€ Ù K yÔ 1€    ÷H òH r5