"9Q UdZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl m Z m Z ddl mZddlmZmZmZmZmZmZmZmZddlmZmZdd lmZdd lmZdd lm Z m!Z!m"Z"m#Z#dd l$m%Z%m&Z&dd l'm(Z(m)Z)m*Z*erddl+m,Z,ddl-m.Z.ddl/m0Z0eddZ1e2ee3e4ee4dfe4e5fe3e4ee4dfe4ffZ6de7d<ej8dZ9d!dZ:GddZ;GddZWarning: '{fieldname}' should be a list, got type '{typename}') isinstancestrlisttype__name__formatlocalsrwarning)r% fieldnametypenamemsgs l/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py _ensure_listr7>sy%  t $ $;;'Ncj$$688$$ CU  LceZdZUdZgdZded<dZded<gdZded <d eDZd ed <d diZ ded<dgdhdZ dZ didjdZ dZ dZdgdZdZd Zd!Zdkd"Z dldmd'Zd(Zdkd)Zdkd*Zd+Zd,Zdnd/Ze dodpd3Zedqd6Zdodrd8Zdgd9Ze dsdtd<Ze dsdud>Z dsdvd@Zej fdwdCZ!dkdDZ"dxdEZ#dydFZ$dydGZ%dydHZ&dydIZ'dydJZ(dydKZ)dydLZ*dydMZ+e,rodkdNZ-d7edO<dPedQ<dPedR<dPedS<dPedT<dPedU<dPedV<dPedW<dPedX<dPedY<dPedZ<dPed[<dPed\<dPed]<dPed^<d_ed`<d_eda<d_edb<dcedd<dcede<dcedf<dSdS)z DistributionaThe core of the Distutils. Most of the work hiding behind 'setup' is really done within a Distribution instance, which farms the work out to the Distutils commands specified on the command line. Setup scripts will almost never instantiate Distribution directly, unless the 'setup()' function is totally inadequate to their needs. However, it is conceivable that a setup script might wish to subclass Distribution for some specialized purpose, and then pass the subclass to 'setup()' as the 'distclass' keyword argument. If so, it is necessary to respect the expectations that 'setup' has of Distribution. See the code for 'setup()', in core.py, for details. ))verbosevzrun verbosely (default)r)quietqz!run quietly (turns verbosity off))zdry-runnzdon't actually do anything)helphzshow detailed help message)z no-user-cfgNz-ignore pydistutils.cfg in your home directoryzClassVar[_OptionsList]global_optionszCommon commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package z ClassVar[str] common_usage))z help-commandsNzlist all available commands)nameNzprint package name)versionVzprint package version)fullnameNzprint -)authorNzprint the author's name) author-emailNz print the author's email address) maintainerNzprint the maintainer's name)zmaintainer-emailNz$print the maintainer's email address)contactNz7print the maintainer's name if known, else the author's)z contact-emailNz@print the maintainer's email address if known, else the author's)urlNzprint the URL for this package)licenseNz print the license of the package)licenceNzalias for --license) descriptionNzprint the package description)zlong-descriptionNz"print the long package description) platformsNzprint the list of platforms) classifiersNzprint the list of classifiers)keywordsNzprint the list of keywords)providesNz+print the list of packages/modules provided)requiresNz+print the list of packages/modules required) obsoletesNz0print the list of packages/modules made obsoletedisplay_optionsc8g|]}t|dS)rr).0xs r6 zDistribution.s2111$%!A$111r8zClassVar[list[str]]display_option_namesr=r;zClassVar[dict[str, str]] negative_optNattrsMutableMapping[str, Any] | Noner'Nonec d|_d|_d|_|jD]}t ||dt |_|jjD]+}d|z}t ||t|j|,i|_ d|_ d|_ d|_ i|_ g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|rM|d}|S|d=|D];\}}| |}|D] \} } d| f|| < >(G[#33G<>S)7(= >E!!#(#3i )$R c""""KKMM ' 'S4=&3,77'8GDM6C<88====T]C00'DM34444T3'''D#s++++A#AACM#&&&&"   '#D$455D '  ~~c**E/))).D&E* r8cV|j|}| ix}|j|<|S)zGet the option dictionary for a given command. If that command's option dictionary hasn't been created yet, then create it and return the new dictionary; otherwise, return the existing option dictionary. )rqr)rrdicts r6rzDistribution.get_option_dict7s6 #''00 <35 5D4'0 r8rcindentr,cddlm}|&t|j}||||z|dz}|s||dzdS|D]}|j|}|||d|dz;||d|dz||}|d D]}||dz|zdS) Nr)pformat zno commands known yetzno option dict for 'z ' commandzoption dict for ' ' command: )pprintrsortedrqkeysannouncersplit) rheadercommandsrrcmd_nameroutlines r6dump_option_dictszDistribution.dump_option_dictsBsI""""""  d27799::H   MM&6/ * * *d]F  MM&#:: ; ; ; F  8 8H+//99H f'Qh'Q'Q'QQRRRR f'O8'O'O'OOPPPgh''IIdOO88DMM&4-$"677778 8 8r8ctd|D}tr;|dd||S)aFind as many configuration files as should be processed for this platform, and return a list of filenames in the order in which they should be parsed. The filenames returned are guaranteed to exist (modulo nasty race conditions). There are multiple possible config files: - distutils.cfg in the Distutils installation directory (i.e. where the top-level Distutils __inst__.py file lives) - a file in the user's home directory named .pydistutils.cfg on Unix and pydistutils.cfg on Windows/Mac; may be disabled with the ``--no-user-cfg`` option - setup.cfg in the current directory - a file named by an environment variable cjg|]0}tj|!t|1Sr*)ospathisfiler,)rYrs r6r[z2Distribution.find_config_files..ls1QQQtBGNN4> > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?s$0,B((B,/B,")DDDcddlm}tjtjkrgd}ng}t |}||}tr|d|}|D]}tr|d|| |d| D]n}| |}| |}|D]?} | dkr7| |vr3| || } | d d } || f|| <@o|d |jvr|jd D]\} \} } |j | } | r t'|| t)|  n4| d vrt'|| t)| nt'|| | z#t*$r} t-| d} ~ wwxYwdSdS) Nr) ConfigParser) z install-basezinstall-platbasez install-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptsz install-datarz exec-prefixhomeuserrootz"Distribution.parse_config_files():z reading zutf-8encodingr/rf_global)r;rg) configparserrrr base_prefix frozensetrrrreadsectionsrdrrreplacerrqrr]rhr ValueErrorr)r filenamesrignore_optionsparserrsectionrdrrr_srcaliasr5s r6parse_config_fileszDistribution.parse_config_filessw------ : ( (NN  N">22  ..00I  @ MM> ? ? ?!  H 7 5855666 KK7K 3 3 3!??,, 8 8 ..11//88"88Cj((S-F-F$jj#66!kk#s33)13 8 OO     t+ + +$($8$B$H$H$J$J 4 4 [dC)--c2240e3-?@@@@ 666c9S>>::::c3///!444.s3334 , + 4 4sAG'' H1HHc|}g|_t||jz}||j|ddi||j|}| }tj tj d|jzz ||rdS|r|||}|dS||jr5||t'|jdk|jdS|jst)dd S) aParse the setup script's command line, taken from the 'script_args' instance attribute (which defaults to 'sys.argv[1:]' -- see 'setup()' in core.py). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternately scanned for Distutils commands and options for that command. Each new command terminates the options for the previous command. The allowed options for a command are determined by the 'user_options' attribute of the command class -- thus, we have to be able to load command classes in order to parse the command line. Any error in that 'options' attribute raises DistutilsGetoptError; any error on the command-line raises DistutilsArgError. If no Distutils commands were found on the command line, raises DistutilsArgError. Return true if command-line was successfully parsed and we should carry on with executing commands; false if no errors but we shouldn't execute commands (currently, this only happens if user asks for help). rNrM)argsobject NrrVrzno commands suppliedT)_get_toplevel_optionsrrrVset_negative_aliasesr] set_aliasesgetoptrpget_option_orderlogging getLoggersetLevelWARNr;handle_display_options_parse_command_optsr@ _show_helplenr)rtoplevel_optionsrr option_orders r6parse_command_linezDistribution.parse_command_lineso. 5577 -0DDEE##D$5666Iy1222}}$"24}@@..00 $$W\B4E%EFFF  & &| 4 4  F ++FD99D|  9  OODM(:(:a(?$-     F} <#$:;; ;tr8c|jdgzS)zReturn the non-display options recognized at the top level. This includes options that are recognized *only* at the top level as well as options recognized for commands. )zcommand-packages=Nz0list of packages that provide distutils commands)rBrs r6rz"Distribution._get_toplevel_options s " &   r8cddlm}|d}t|st d|d|j| ||}n!#t$r}t|d}~wwxYwt||std|dt|drt|jtsd }t||z|j}t|d r.|}||jt|d r/t|jtrt)|j}ng}||j|jz|z||||d d\}} t| d r"| jr||d|gdSt|d rt|jtrjd} |jD]\\} } } }t| || r2d } t9|r |Ftd|d| d]| rdS||}t=| D] \}}d|f||< |S)aParse the command-line options for a single command. 'parser' must be a FancyGetopt instance; 'args' must be the list of arguments, starting with the current command (whose options we are about to parse). Returns a new version of 'args' with the next command at the front of the list; will be the empty list if there are no more commands on the command line. Returns None if the user asked for help on this command. rr zinvalid command name ''Nzcommand class z must subclass Command user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)r] help_optionsrr@Frzinvalid help function z for help option 'z-': must be a callable object (function, etc.)z command line) distutils.cmdr! command_rematch SystemExitrappendget_command_classrr issubclassrrr+rr-r]copyupdaterfix_help_optionsset_option_tablerBrrr@r get_attr_namecallablervarsr)rrrr!r cmd_classr5r]roptshelp_option_found help_option_short_descfuncrrDr%s r6rz Distribution._parse_command_optssz *)))))q'(( B@g@@@AA A W%%%  )..w77II# ) ) )#C(( ( ) )W-- %BBBB  I~ . . 791488 7 > &cIo66 6( 9n - - 8',,..L    6 7 7 7 9n - - *  "D3 3  ,I,BCCLLL   )"8 8< G    ##L111}}T!""X.. t 4  TY  OOFEYKO P P P F 9n - - *  "D3 3  !" 4=4J  0 VUD4!5!5k!B!BCC()%~~1ITII{III ! ''00::++-- 5 5KD%,e4HTNN sA-- B 7BB cdD]d}t|j|}|t|tr5d|dD}t |j||edS)zSet final values for all the options on the Distribution instance, analogous to the .finalize_options() method of Command objects. rRrPNc6g|]}|Sr*strip)rYelms r6r[z1Distribution.finalize_options..s AAAAAAr8,)rlrjr+r,rrh)rrr%s r6rzDistribution.finalize_options}s| . 4 4DDM400E}%%% 4AA C0@0@AAA tU333  4 4r8Tr*rrcZddlm}ddlm}|r^|r|}n|j}||||jdzt|r=||j |dt|D]}t|trt||r|} n||} t| drJt| jt"r0|| jt'| jzn|| j|d| jdtt||jd S) abShow help for the setup script command-line in the form of several lists of command-line options. 'parser' should be a FancyGetopt instance; do not expect it to be returned in the same state, as its option table will be reset to make it generate the correct help text. If 'global_options' is true, lists the global options: --verbose, --dry-run, etc. If 'display_options' is true, lists the "display-only" options: --name, --version, etc. Finally, lists per-command help for every command name or command class in 'commands'. rr  gen_usagez Global options:zKInformation display options (just display information, ignore any commands)rz Options for 'rN)rr!distutils.corerrrBr print_helprCprintrVr+r.rrrrr-rrr/ro) rrrBrVrr!rrdrklasss r6rzDistribution._show_helps *))))),,,,,,   .4466-  # #G , , ,   d/2EE F F F GGG    # #D$8 9 9 9   ]    GGG  G'4(( 8Z-I-I 8..w77un-- <*U=OQU2V2V <''&)9%:L)M)MM''(:;;;   HenHHH I I I GGGG ii())*****r8cDddlm}|jrA|t t ||jdSd}t }|jD]}||d|D]\}}|r||vrt|}t|j d|z}|dvr#t d |n6|dvr#t d |nt |d}|S) zIf there were any non-global "display-only" options (--help-commands or the metadata display options) on the command line, display the requested info and return true; else return false. rrrrbrr)rQrSrTrUr) rr help_commandsprint_commandsrrosetrVaddrrlrjr) rrrany_display_optionsis_display_optionoptionrrr%s r6rz#Distribution.handle_display_optionssU -,,,,,       ! ! ! GGG ))D,-- . . .1  EE* - -F  ! !&) , , , ,$ ( (HC (s///',,< v|<<>>333#((5//****PPP$))E**++++%LLL&'#""r8ct|dz|D]g}|j|}|s||} |j}n#t $rd}YnwxYwtd|d|d|hdS)zZPrint a subset of the list of all commands -- used by 'print_commands()'. :(no description available)r.#SSS#FARAR#ARARARr8zStandard commandszExtra commands) distutils.commandr__all__r rmrrr,r)rr std_commandsextra_commandsr*r+r0s @r6rzDistribution.print_commandss !    (0 \""SSSS););)=)=SSS .0 & &C3xx*$$ XX   .A:NNN  R GGG  # #N4Dj Q Q Q Q Q R Rr8cjddl}|jj}t|fd|jD}g}||zD]e}|j|}|s||} |j}n#t$rd}YnwxYw| ||ff|S)a>Get a list of (command, description) tuples. The list is divided into "standard commands" (listed in distutils.command.__all__) and "extra commands" (mentioned in self.cmdclass, but not a standard command). The descriptions come from the command class attribute 'description'. rNcg|]}|v| Sr*r*r/s r6r[z1Distribution.get_command_list..r1r8r') r2rr3r rmrrrrOr)r) rrr4r5rvr+rrOr0s @r6get_command_listzDistribution.get_command_lists !    (0 \""SSSS););)=)=SSS .0 * *CM%%c**E 4..s33 ;#/ ! ; ; ;:  ; IIsK( ) ) ) ) sB  BBc|j}t|tsD|d}d|dD}d|vr|dd||_|S)z9Return a list of packages from which commands are loaded.NrccBg|]}|dk|S)rcr)rYpkgs r6r[z5Distribution.get_command_packages..2s%HHHCcRiiCIIKKiiir8rzdistutils.commandr)rnr+r-rinsert)rpkgss r6get_command_packagesz!Distribution.get_command_packages,sp$$%% )|HH4::c??HHHD"$.. A2333$(D ! r8r type[Command]c |j|}|r|S|D]}|d|}|} t|tj|}n#t $rY:wxYw t||}n'#t$rtd|d|d|dwxYw||j|<|cStd|d)aoReturn the class that implements the Distutils command named by 'command'. First we check the 'cmdclass' dictionary; if the command is mentioned there, we fetch the class object from the dictionary and return it. Otherwise we load the command module ("distutils.command." + command) and fetch the command class from the module. The loaded class is also stored in 'cmdclass' to speed future calls to 'get_command_class()'. Raises DistutilsModuleError if the expected module could not be found, or if that module does not define the expected class. rzinvalid command 'z ' (no class 'z ' in module 'z')r) rmrr? __import__rr ImportErrorrlr)r)rrrpkgname module_name klass_namemodules r6rzDistribution.get_command_class8s- !!'**  L0022  G$00w00K J ;'''[1      33!   *fffjffWbfff  &+DM' "LLL"#Aw#A#A#ABBBs!A!! A.-A.2B$B'create Literal[True]r!cdSNr*rrrHs r6get_command_objzDistribution.get_command_obj^ #r8Literal[False]Command | NonecdSrKr*rLs r6rMzDistribution.get_command_objbs r8boolcN|j|}|s|rtr|d|d||}||x}|j|<d|j|<|j|}|r||||S)aReturn the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no command object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. z*Distribution.get_command_obj(): creating 'z' command objectF)rrrrrrrq_set_command_options)rrrHcmd_objrrds r6rMzDistribution.get_command_objfs "&&w// <6 <  ;!(;;; **733E27%++ =Gd&w/%*DM' "*..w77G <))'7;;;r8c ,|}|||}tr|d|d|D]2\}\}}tr|d|d|d|d d|jD}n#t $rg}YnwxYw |j}n#t $ri}YnwxYw t|t} ||vr(| r&t|||t| n`||vr!| rt||t|n;t||rt|||ntd |d |d |d #t$r} t| d} ~ wwxYwdS) aySet the options for 'command_obj' from 'option_dict'. Basically this means copying elements of a dictionary ('option_dict') to attributes of an instance ('command'). 'command_obj' must be a Command instance. If 'option_dict' is not supplied, uses the standard option dictionary for this command (from 'self.command_options'). Nz setting options for 'rz z = z (from )c,g|]}t|Sr*rX)rYos r6r[z5Distribution._set_command_options..s!WWWa.q11WWWr8z error in z : command 'z' has no such option 'r)get_command_namerrrrboolean_optionsr)r]r+r,rhrrrr) rr option_dict command_namer$sourcer% bool_optsneg_opt is_stringr5s r6rTz!Distribution._set_command_optionss+#3355  ..|<N>N:NOOOOy((Y(K51A1ABBBB[&11K7777.dFdd|dd[addd 0 0 0*3/// 01 0 0s=B"" B10B15B== C  C B!E33 F=F  FFreinit_subcommandscdSrKr*rrrbs r6reinitialize_commandz!Distribution.reinitialize_commandrNr8r"cdSrKr*rds r6rez!Distribution.reinitialize_commands Cr8 str | Commandcnddlm}t||s|}||}n|}|js|S|d|_d|j|<|||r-| D]}| |||S)aReinitializes a command to the state it was in when first returned by 'get_command_obj()': ie., initialized but not yet finalized. This provides the opportunity to sneak option values in programmatically, overriding or supplementing user-supplied values from the config files and command line. You'll have to re-finalize the command object (by calling 'finalize_options()' or 'ensure_finalized()') before using it for real. 'command' should be a command name (string) or command object. If 'reinit_subcommands' is true, also reinitializes the command's sub-commands, as declared by the 'sub_commands' class attribute (if it has one). See the "install" command for an example. Only reinitializes the sub-commands that actually matter, ie. those whose test predicates return true. Returns the reinitialized command object. rr F) rr!r+rMrZ finalizedinitialize_optionsrrTget_sub_commandsre)rrrbr!r]subs r6rez!Distribution.reinitialize_commands* *)))))'7++ 6"L**<88GG"3355L  N""$$$!&+ l# !!'***  C//11 C C))#/ABBBBr8levelintc0tj||dSrKr)rr5rms r6rzDistribution.announces sr8cD|jD]}||dS)zRun each command that was seen on the setup script command line. Uses the list of commands found and cache of command objects created by 'get_command_obj()'. N)r run_command)rr+s r6 run_commandszDistribution.run_commandss6 = " "C   S ! ! ! ! " "r8c|j|rdStjd|||}||d|j|<dS)aDo whatever it takes to run a command (including nothing at all, if the command has already been run). Specifically: if we have already created and run the command named by 'command', return silently without doing anything. If the command named by 'command' doesn't even have a command object yet, create one. Then invoke 'run()' on that command object (or an existing one). Nz running %sT)rrrinforMensure_finalizedrun)rrrUs r6rqzDistribution.run_commandsw =  W % %  F w'''&&w//  """ !% gr8cDt|jp|jpgdkSNr)rrsrvrs r6has_pure_moduleszDistribution.has_pure_moduless#4=9DO9r::Q>>r8c@|jot|jdkSrx)ryrrs r6has_ext_moduleszDistribution.has_ext_moduless =C(8$9$9A$==r8c@|jot|jdkSrx)rwrrs r6has_c_librarieszDistribution.has_c_librariess~9#dn"5"5"99r8cR|p|SrK)ryr{rs r6 has_moduleszDistribution.has_modules s%$$&&@$*>*>*@*@@r8c@|jot|jdkSrx)rxrrs r6 has_headerszDistribution.has_headers|5DL 1 1A 55r8c@|jot|jdkSrx)r}rrs r6 has_scriptszDistribution.has_scriptsrr8c@|jot|jdkSrx)r~rrs r6has_data_fileszDistribution.has_data_filess;3t#7#7!#;;r8c~|o)| o| SrK)ryr{r}rs r6is_purezDistribution.is_puresD  ! ! # # +((*** +((*** r8c|jj|_|jj|_|jj|_|jj|_|jj|_|jj|_|jj|_|jj|_|jj |_ |jj |_ |jj |_ |jj |_ |jj |_ |jj|_|jj|_|jj|_|jj|_|jj|_|jj|_|jj|_|jj|_dSrK)rjget_name get_version get_fullname get_authorget_author_emailget_maintainerget_maintainer_email get_contactget_contact_emailget_url get_license get_licenceget_descriptionget_long_description get_keywords get_platformsget_classifiersget_download_url get_requires get_provides get_obsoletesrs r6rzDistribution._&s M2DM#}8D  $ :D "m6DO$(M$BD !"&-">D (, (JD %#}8D %)]%DD "=0DL#}8D #}8D #'=#@D (, (JD % $ :D !%!>>>::::AAAA66666666<<<<    .. = = = =0 """"%%%%&&&&$$$$****((((....%%%%++++!!!!%%%%%%%%))))....333355552222,,,,,,,,------]....r8r:c,eZdZdZdZ d6d7dZd8d Zd9dZd:dZdZ d;dZ d;dZ d;dZ e dd%Zd?d(Zd@d*Zd?d+Zd>d,Zd?d-Zd=d.Z d>d/Z!dAd1Z"d>d2Z#dAd3Z$d>d4Z%dAd5Z&dS)Briz]Dummy class to hold the distribution meta-data: name, version, author, and so forth. )rDrErHrrJrrLrMrOrrRrPrGrKrrQ download_urlrSrTrUNr:str | bytes | os.PathLike[str] | os.PathLike[bytes] | Noner'r`c@|$|t|dSd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dSrK) read_pkg_fileopenrDrErHrrJrrLrMrOrrRrPrQrrSrTrU)rrs r6rzDistributionMetadata.__init__rs     tDzz * * * * *$(DI'+DL&*DK,0D *.DO04D !#'DH'+DL+/D 04D !48DM59DN7;D ,0D 48DM48DM59DNNNr8fileIO[str]ct|dfd }fd}d}|d|_|d|_|d |_|d |_d |_|d |_d |_|d |_|d|_ dvr|d|_ nd |_ |d|_ |d |_dvr#|d d|_ |d|_|d|_|dkr2|d|_|d|_|d|_d Sd |_d |_d |_d S)z-Reads the metadata values from a file object.rDr,r' str | Nonec,|}|r|dkr|SdSNUNKNOWNr*)rDr%r5s r6 _read_fieldz7DistributionMetadata.read_pkg_file.._read_fields(IE )++ 4r8cD|d}|gkrdS|SrK)get_all)rDvaluesr5s r6 _read_listz6DistributionMetadata.read_pkg_file.._read_lists)[[t,,F||tMr8zmetadata-versionrEsummaryrHNrIz home-pagerMz download-urlrOrRrplatform classifier1.1rTrSrU)rDr,r'r)rrDrErOrHrJrrrLrMrrrrRrPrQrTrSrU)rrrrmetadata_versionr5s @r6rz"DistributionMetadata.read_pkg_files%%             12K'' "{9-- &;y11!k(++ 'K77 $;{++"{9-- S + N ; ;D   $D  + M : :&;y11   'K 3399#>>DM#J//%:l33 u $ $&Jz22DM&Jz22DM'Z 44DNNN DM DM!DNNNr8base_dirstr | os.PathLike[str]cttj|ddd5}||ddddS#1swxYwYdS)z.Write the PKG-INFO file into the release tree.zPKG-INFOwzUTF-8rN)rrrrwrite_pkg_file)rrpkg_infos r6write_pkg_infoz#DistributionMetadata.write_pkg_infos  GLL: . .g    *     ) ) ) * * * * * * * * * * * * * * * * * *sAAASupportsWrite[str]cd}|js|js|js|js|jrd}d|dd|dd|dfd}|d||d | |d | |d | |d | |d |j|dt|pd|dd||d||d||d||d||d|dS)z0Write the PKG-INFO format data to a file object.z1.0rzMetadata-Version: rzName: z Version: cF|r|d|ddSdSNz: rwrite)rrrs r6 maybe_writez8DistributionMetadata.write_pkg_file..maybe_writes> 1 f/////00000 1 1r8Summaryz Home-pageAuthorz Author-emailLicensez Download-URL DescriptionrcKeywordsrPlatform ClassifierRequiresProvides ObsoletesN)rSrTrUrQrrrrrrrrrrrrr _write_listrrrrr)rrrErs ` r6rz#DistributionMetadata.write_pkg_files M } ~      G 3333444 /DMMOO///000 5t//11555666 1 1 1 1 1  It3355666 K000 Hd..00111 ND$:$:$<$<=== It//11222 ND$5666 M=1J1J1L1L1RPR#S#STTT J):):)<)< = =>>> z4+=+=+?+?@@@ |T-A-A-C-CDDD z4+<+<+>+>??? z4+<+<+>+>??? {D,>,>,@,@AAAAAr8cN|pg}|D]}||d|ddSrr)rrrDrr%s r6rz DistributionMetadata._write_listsJ2 - -E JJ$++%+++ , , , , - -r8r,c|jpdSr)rDrs r6rzDistributionMetadata.get_namesy%I%r8c|jpdS)Nz0.0.0)rErs r6rz DistributionMetadata.get_versions|&w&r8cv|||SrK) _fullnamerrrs r6rz!DistributionMetadata.get_fullnames*~~dmmoot/?/?/A/ABBBr8rDrEcdt|ddt|dS)a  >>> DistributionMetadata._fullname('setup.tools', '1.0-2') 'setup_tools-1.0.post2' >>> DistributionMetadata._fullname('setup-tools', '1.2post2') 'setup_tools-1.2.post2' >>> DistributionMetadata._fullname('setup-tools', '1.0-r2') 'setup_tools-1.0.post2' >>> DistributionMetadata._fullname('setup.tools', '1.0.post') 'setup_tools-1.0.post0' >>> DistributionMetadata._fullname('setup.tools', '1.0+ubuntu-1') 'setup_tools-1.0+ubuntu.1' z{}-{}rfrF)strip_trailing_zero)r0rrr)rDrEs r6rzDistributionMetadata._fullnamesE~~ d # # + +C 5 5 e D D D   r8rc|jSrK)rHrs r6rzDistributionMetadata.get_authors {r8c|jSrK)rrs r6rz%DistributionMetadata.get_author_email   r8c|jSrK)rJrs r6rz#DistributionMetadata.get_maintainers r8c|jSrK)rrs r6rz)DistributionMetadata.get_maintainer_email $$r8c|jp|jSrK)rJrHrs r6rz DistributionMetadata.get_contacts-$+-r8c|jp|jSrK)rrrs r6rz&DistributionMetadata.get_contact_emails$9(99r8c|jSrK)rLrs r6rzDistributionMetadata.get_url"s xr8c|jSrK)rMrs r6rz DistributionMetadata.get_license%s |r8c|jSrK)rOrs r6rz$DistributionMetadata.get_description*s r8c|jSrK)rrs r6rz)DistributionMetadata.get_long_description-rr8r(c|jpgSrK)rRrs r6rz!DistributionMetadata.get_keywords0}""r8r%r&c0t|d|_dS)NrR)r7rRrr%s r6 set_keywordsz!DistributionMetadata.set_keywords3s$UJ77 r8str | list[str] | Nonec|jSrK)rPrs r6rz"DistributionMetadata.get_platforms6s ~r8c0t|d|_dS)NrP)r7rPrs r6 set_platformsz"DistributionMetadata.set_platforms9s%e[99r8c|jpgSrK)rQrs r6rz$DistributionMetadata.get_classifiers<s%2%r8c0t|d|_dS)NrQ)r7rQrs r6set_classifiersz$DistributionMetadata.set_classifiers?s'}==r8c|jSrK)rrs r6rz%DistributionMetadata.get_download_urlBrr8c|jpgSrK)rTrs r6rz!DistributionMetadata.get_requiresFrr8 Iterable[str]ctddl}|D]}|j|t||_dSrx)distutils.versionpredicateversionpredicateVersionPredicater-rTrr%rr<s r6 set_requiresz!DistributionMetadata.set_requiresIsH)))) ; ;A  & 7 7 : : : :U  r8c|jpgSrK)rSrs r6rz!DistributionMetadata.get_providesPrr8crd|D}|D] }ddl}|j|!||_dS)Nc6g|]}|Sr*r)rYr<s r6r[z5DistributionMetadata.set_provides..Ts ***q***r8r)rrsplit_provisionrS)rr%r<rs r6 set_providesz!DistributionMetadata.set_providesSsU**E*** : :A - - - -  & 6 6q 9 9 9 9 r8c|jpgSrK)rUrs r6rz"DistributionMetadata.get_obsoletes[s~##r8ctddl}|D]}|j|t||_dSrx)rrrr-rUrs r6 set_obsoletesz"DistributionMetadata.set_obsoletes^sH)))) ; ;A  & 7 7 : : : :er8rK)rrr'r`)rrr'r`)rrr'r`)rrr'r`)r'r,)rDr,rEr,r'r,)r'r)r'r()r%r&r'r`)r'r)r%rr'r`)'r/rrrrkrrrrrrrr staticmethodrrrrrrrrrrrrrrrrrrrrrrrrrr*r8r6ririUs2RV:::::22"2"2"2"h****%B%B%B%BN---&&&&''''CCCC   \ $!!!!%%%%....::::K    %%%%####8888::::&&&&>>>>!!!!####$$$$####$$$$%%%%%%r8ricd|DS)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. c"g|] }|dd S)rr*)rYrs r6r[z$fix_help_options..js ( ( (C!H ( ( (r8r*)rds r6rrfs ) ( ( ( ((r8)r%r&r'r()>r __future__rrrrrrerrcollections.abcrremailrtypingrrr r r r r rpackaging.utilsrr_logrdebugrerrorsrrrr fancy_getoptrrutilrrr _typeshedrtyping_extensionsrr+r!r"r-tupler,rnr$rcompilerr7r:rirr*r8r6rs #"""""  44444444######                    DCCCCCCC 988888889999999999''''''++++++ GKy 1 1 1  %U39%sC/ 0%U39=Ms8R2S ST RZ4 5 5     E.E.E.E.E.E.E.E.P N%N%N%N%N%N%N%N%b)))))r8