ef dZddlZddlZddlZddlZddlZddlZddlmZ ddl Z n #e $rdZ YnwxYwddl m Z m Z mZmZddlmZmZddlmZmZmZddlmZdd lmZejd Zd ZGd d ZGddZdZ dS)z}distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed. N)message_from_file)DistutilsOptionErrorDistutilsModuleErrorDistutilsArgErrorDistutilsClassError) FancyGetopttranslate_longopt) check_environ strtobool rfc822_escapelog)DEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$ct|trngt|tsRt|j}d}|jdit }tj|t|}|S)Nz>Warning: '{fieldname}' should be a list, got type '{typename}') isinstancestrlisttype__name__formatlocalsrwarning)value fieldnametypenamemsgs z/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/_distutils/dist.py _ensure_listr &sy%  t $ $;;'Ncj$$688$$ CU  Lc"eZdZdZgdZdZgdZdeDZddiZd+d Z d Z d,d Z d Z dZ d+dZdZdZdZdZddgfdZdZdZdZdZdZdZd-dZd+dZd.dZejfd Zd!Z d"Z!d#Z"d$Z#d%Z$d&Z%d'Z&d(Z'd)Z(d*Z)dS)/ 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 directoryzCommon commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package ))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 obsoletec8g|]}t|dSrr ).0xs r zDistribution.xs%MMM-ad33MMMr!r&r$Nc 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|_|r|d}|S|d=|D];\}}| |}|D] \} } d| f|| < >(G[#33G<>S)7(= >E!!#(#3i )$R'M#&&&&J$$S4Z000"KKMM ' 'S4=&3,77'8GDM6C<88====T]C00'DM34444T3'''D#s++++;d3iiGCM#&&&&"   ''  ~~c**E/))).D&E* r!cV|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. )rUrf)rsrxdicts rrhzDistribution.get_option_dicts6 #''00 <35 5D4'0 r!rEcddlm}|&t|j}||||z|dz}|s||dzdS|D]}|j|}|||d|zz:||d|zz||}|dD]}||dz|zdS)Nr)pformatz zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:rG)pprintrsortedrUkeysannouncerfsplit) rsheadercommandsindentrcmd_namerzoutlines rdump_option_dictszDistribution.dump_option_dicts(s=""""""  d27799::H   MM&6/ * * *d]F  MM&#:: ; ; ; F  8 8H+//99H f'H8'SSTTTT f'F'QQRRRgh''IIdOO88DMM&4-$"677778 8 8r!ctd|D}tr+|dd|z|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)r@rs rrBz2Distribution.find_config_files..Rs1QQQtBGNN4> > > > ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?s1)C''C+.C+cddlm}tjtjkrgd}ng}t |}||}tr|d|}|D]}tr|d|z| || D]n}| |}| |}|D]?} | dkr7| |vr3| || } | dd} || 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 %srrI_global)r$rJ) configparserrrkr base_prefix frozensetrrrreadsectionsrFrhrfreplacerrUrg negative_optrLr ValueErrorr)rs filenamesrignore_optionsparserrsectionrFrzr{r|srcaliasrs rparse_config_fileszDistribution.parse_config_filesksn------ : ( (NN  N">22  ..00I  @ MM> ? ? ?!  H 9 nx7888 KK ! ! !!??,, 8 8 ..11//88"88Cj((S-F-F$jj#66!kk#s33)13 8 OO     t+ + +#'#7#A#G#G#I#I 4 4Zc3)--c2240e3-?@@@@ 666c9S>>::::c3///!444.s3334 , + 4 4sAG%% H/G>>Hc|}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). r5r4)argsobject Nrdisplay_optionsrzno commands suppliedT)_get_toplevel_optionsrr rset_negative_aliasesr set_aliasesgetoptrTget_option_orderlogging getLoggersetLevelWARNr$handle_display_options_parse_command_optsr) _show_helplenr)rstoplevel_optionsrr option_orders rparse_command_linezDistribution.parse_command_lineso. 5577 -0DDEE##D$5666Iy1222}}$"24}@@..00 $$W\B4E%EFFF  & &| 4 4  F ++FD99D|  9  OODM(:(:a(?$-     F} <#$:;; ;tr!c|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)global_optionsrss rrz"Distribution._get_toplevel_optionss " &   r!cddlm}|d}t|st d|z|j| ||}n!#t$r}t|d}~wwxYwt||std|zt|drt|jtsd}t||z|j}t|dr.|}||jt|d r/t|jtrt)|j}ng}||j|jz|z||||d d\}} t| d r"| jr||d|g dSt|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. rCommandzinvalid command name '%s'Nz&command class %s must subclass Command user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)r help_optionsrr)rzinvalid help function z for help option 'z-': must be a callable object (function, etc.)z command line) distutils.cmdr command_rematch SystemExitrappendget_command_classrr issubclassrrnrrrrcopyupdaterfix_help_optionsset_option_tablerrrr)r get_attr_namecallablerhvarsrg)rsrrrrx cmd_classrrroptshelp_option_found help_optionshortdescfuncrzr+rs rrz Distribution._parse_command_optss] *)))))q'(( D87BCC C W%%%  )..w77II# ) ) )#C(( ( ) )W-- %89D  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  OOFA O L L L F 9n - - *  "D3 3  !" 2;2H  . UD$4!5!5k!B!BCC ()%~~11 $tt[[[2 ! ''00::++-- 5 5KD%,e4HTNN sA,, B 6BB 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. r9r7Nc6g|]}|Srstrip)r@elms rrBz1Distribution.finalize_options..ms AAAAAAr!,)rPrNrrrrL)rsrurs rrrzDistribution.finalize_optionscs| . 4 4DDM400E}%%% 4AA C0@0@AAA tU333  4 4r!rchddlm}ddlm}|r_|r|}n|j}||||jdztd|r>||j |dtd|j D]}t|trt||r|} n||} t!| drJt| jt$r0|| jt)| jzn|| j|d| jztdt||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'. r gen_usagerz Global options:rEzKInformation display options (just display information, ignore any commands)rzOptions for '%s' command:N)distutils.corerrrrrr print_help common_usageprintrrrrrrrnrrrrrrS) rsrrrrrrrFrxklasss rrzDistribution._show_helpps -,,,,,))))))   .4466-  # #G , , ,   d/2EE F F F "III    # #D$8 9 9 9   6    "III}  G'4(( 8Z-I-I 8..w77un-- <*U=OQU2V2V <''&)9%:L)M)MM''(:;;;   9ENJ K K K "IIII ii())*****r!c0ddlm}|jrB|t dt ||jdSd}i}|jD] }d||d<|D]\}}|r||rt|}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. rrrErrDrr)r8r:r;r<rG) rr help_commandsprint_commandsrrSrrfr rPrNr) rsrrany_display_optionsis_display_optionoptionr{r|rs rrz#Distribution.handle_display_optionssU -,,,,,       ! ! ! "III ))D,-- . . .1  * - -F+, fQi ( ($ ( (HC ((,,S11 (',,< v|<<>>333#((5//****PPP$))E**++++%LLL&'#""r!ct|dz|D]c}|j|}|s||} |j}n#t $rd}YnwxYwtd|||fzddS)zZPrint a subset of the list of all commands -- used by 'print_commands()'. :(no description available)z %-*s %sN)rrQrfrr6AttributeError)rsrr max_lengthcmdrr6s rprint_command_listzDistribution.print_command_lists fsl A ACM%%c**E 4..s33 ;#/ ! ; ; ;:  ; ,*c;!?? @ @ @ @ A As A A A cddl}|jj}i}|D]}d||<g}|jD],}||s||-d}||zD]$}t||krt|}%||d||r't||d|dSdS)anPrint out a help message listing all available commands with a description of each. 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'. rNrzStandard commandszExtra commands) distutils.commandrx__all__rQrrfrrrr)rsr std_commandsis_stdrextra_commandsrs rrzDistribution.print_commandss !    (0   CF3KK=%%'' + +C::c?? +%%c*** .0 & &C3xx*$$ XX   .A:NNN  R GGG  # #N4Dj Q Q Q Q Q R Rr!cddl}|jj}i}|D]}d||<g}|jD],}||s||-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'. rNrr ) rrxrrQrrfrrr6r ) rsrrrrrrvrr6s rget_command_listzDistribution.get_command_lists !    (0   CF3KK=%%'' + +C::c?? +%%c*** .0 * *CM%%c**E 4..s33 ;#/ ! ; ; ;:  ; IIsK( ) ) ) ) s B(( B76B7c|j}t|tsD|d}d|dD}d|vr|dd||_|S)z9Return a list of packages from which commands are loaded.NrEcBg|]}|dk|S)rEr)r@pkgs rrBz5Distribution.get_command_packages..!s%HHHCcRiiCIIKKiiir!rzdistutils.commandr)rRrrrinsert)rspkgss rget_command_packagesz!Distribution.get_command_packagessp$$%% )|HH4::c??HHHD"$.. A2333$(D ! r!c |j|}|r|S|D]}d||}|} t |t j|}n#t$rYIwxYw t||}n'#t$rtd|d|d|dwxYw||j|<|cStd|z)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. z{}.{}zinvalid command 'z ' (no class 'z ' in module 'z')zinvalid command '%s') rQrfrr __import__rkr ImportErrorrPr r)rsrxrpkgname module_name klass_namemodules rrzDistribution.get_command_class's# !!'**  L0022  G!..'::K J ;'''[1      33!   **ww KKK9  &+DM' "LLL"#9G#CDDDs!A00 A=<A=B$B6cL|j|}|s|rtr|d|z||}||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.~s!WWWa.q11WWWr!z error in z : command 'z' has no such option '')get_command_namerhrrrgrboolean_optionsr rrrrLr rnrr) rsrd option_dict command_namer sourcer bool_optsneg_opt is_stringrs rr(z!Distribution._set_command_optionsks#3355  ..|<N>N:NOOOOy((Y(K51A1ABBBB[&11K7777..!66<<<9 0 0 0*3/// 03 0 0s=B,, B;:B;?C CCB!E== FFFrcnddlm}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) rrrr+r0 finalizedinitialize_optionsrer(get_sub_commandsreinitialize_command)rsrxreinit_subcommandsrr3subs rr<z!Distribution.reinitialize_commands& *)))))'7++ 6"L**<88GG"3355L  N""$$$&' l# !!'***  C//11 C C))#/ABBBBr!c0tj||dSNr)rsrlevels rrzDistribution.announces sr!cD|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)rsrs r run_commandszDistribution.run_commandss6 = " "C   S ! ! ! ! " "r!c|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 %sr)rerfrinfor+ensure_finalizedrun)rsrxr*s rrCzDistribution.run_commandsw =  W % %  F w'''&&w//  """ !" gr!cDt|jp|jpgdkSNr)rrWrZrs rhas_pure_moduleszDistribution.has_pure_moduless#4=9DO9r::Q>>r!c@|jot|jdkSrJ)r]rrs rhas_ext_moduleszDistribution.has_ext_moduless =C(8$9$9A$==r!c@|jot|jdkSrJ)r[rrs rhas_c_librarieszDistribution.has_c_librariess~9#dn"5"5"99r!cR|p|Sr@)rKrMrs r has_moduleszDistribution.has_moduless%$$&&@$*>*>*@*@@r!c@|jot|jdkSrJ)r\rrs r has_headerszDistribution.has_headers|5DL 1 1A 55r!c@|jot|jdkSrJ)rarrs r has_scriptszDistribution.has_scriptsrTr!c@|jot|jdkSrJ)rbrrs rhas_data_fileszDistribution.has_data_filess;3t#7#7!#;;r!c~|o)| o| Sr@)rKrMrOrs ris_purezDistribution.is_puresD  ! ! # # +((*** +((*** r!r@)NNrE)rr>)*r __module__ __qualname____doc__rrrrKrrrhrrrrrrrrrrrrrrrrr+r(r<rINFOrrDrCrKrMrOrQrSrVrXrZrr!rr#r#5s  *NLO6NM_MMMY'L\ \ \ \ |   88884.???$@4@4@4@4HAAAF    aaaF 4 4 4121r0+0+0+0+d%#%#%#NAAA"RRR<F   %E%E%EN:)0)0)0)0V&&&&T#*,"""###(???>>>:::AAA666666<<<     r!r#ceZdZdZdZd#dZdZdZdZdZ d Z d Z d Z d Z d ZdZdZdZdZdZdZeZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$dS)$rMz]Dummy class to hold the distribution meta-data: name, version, author, and so forth. )r+r,r/ author_emailr1maintainer_emailr3r4r6long_descriptionr9r7r.r2 contact_emailr8 download_urlr:r;r<Nc@|$|t|dSd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dSr@) read_pkg_fileopenr+r,r/r`r1rar3r4r6rbr9r7r8rdr:r;r<)rsrs rrzDistributionMetadata.__init__"s     tDzz * * * * *DIDLDK $D "DO$(D !DHDL#D $(D ! DM!DN#D  $D  DM DM!DNNNr!ct|fd}fd}d}|d|_|d|_|d|_|d|_d|_|d |_d|_|d |_|d |_ d vr|d |_ nd|_ |d |_ |d|_dvr#|d d|_ |d|_|d|_|dkr2|d|_|d|_|d|_dSd|_d|_d|_dS)z-Reads the metadata values from a file object.c0|}|r|dkr|SdSdSNUNKNOWNr)r+rrs r _read_fieldz7DistributionMetadata.read_pkg_file.._read_field=s3IE )++   ++r!cD|d}|gkrdS|Sr@)get_all)r+valuesrs r _read_listz6DistributionMetadata.read_pkg_file.._read_listBs)[[t,,F||tMr!zmetadata-versionr+r,summaryr/Nr0z home-pager4z download-urlr6r9rplatform classifier1.1r;r:r<)rr+r,r6r/r1r`rar3r4rdrbrr9r7r8r;r:r<)rsfilerlrpmetadata_versionrs @rrfz"DistributionMetadata.read_pkg_file9s%%            12K'' "{9-- &;y11!k(++ 'K77 $;{++"{9-- S + N ; ;D   $D  + M : :&;y11   'K 3399#>>DM#J//%:l33 u $ $&Jz22DM&Jz22DM'Z 44DNNN DM DM!DNNNr!cttj|ddd5}||ddddS#1swxYwYdS)z.Write the PKG-INFO file into the release tree.zPKG-INFOwzUTF-8)encodingN)rgrrrwrite_pkg_file)rsbase_dirpkg_infos rwrite_pkg_infoz#DistributionMetadata.write_pkg_infols  GLL: . .g    *     ) ) ) * * * * * * * * * * * * * * * * * *sAAAcd}|js|js|js|js|jrd}d|zd|zd|zfd}|d||d| |d | |d | |d | |d |j|d t|pd|dd||d||d||d||d||d|dS)z0Write the PKG-INFO format data to a file object.z1.0rtzMetadata-Version: %s z Name: %s z Version: %s cF|r|d|ddSdS)Nz: rG)rm)rr|rus r maybe_writez8DistributionMetadata.write_pkg_file..maybe_writes> 1 f/////00000 1 1r!Summaryz Home-pageAuthorz Author-emailLicensez Download-URL DescriptionrEKeywordsrPlatform ClassifierRequiresProvides ObsoletesN)r:r;r<r8rdrmget_name get_versionget_descriptionget_url get_contactget_contact_email get_licenser get_long_descriptionr get_keywords _write_list get_platformsget_classifiers get_requires get_provides get_obsoletes)rsrur,rs ` rrzz#DistributionMetadata.write_pkg_filessy M } ~      G +g5666 <$--//1222 ?T%5%5%7%77888 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,>,>,@,@AAAAAr!cj|pg}|D]+}|d||,dS)Nz{}: {} )rmr)rsrur+rors rrz DistributionMetadata._write_listsI2 7 7E JJz((u55 6 6 6 6 7 7r!c|jpdSrj)r+rs rrzDistributionMetadata.get_namesy%I%r!c|jpdS)Nz0.0.0)r,rs rrz DistributionMetadata.get_versions|&w&r!cvd||S)Nz{}-{})rrrrs r get_fullnamez!DistributionMetadata.get_fullnames*~~dmmoot/?/?/A/ABBBr!c|jSr@)r/rs r get_authorzDistributionMetadata.get_authors {r!c|jSr@)r`rs rget_author_emailz%DistributionMetadata.get_author_email   r!c|jSr@)r1rs rget_maintainerz#DistributionMetadata.get_maintainers r!c|jSr@)rars rget_maintainer_emailz)DistributionMetadata.get_maintainer_email $$r!c|jp|jSr@)r1r/rs rrz DistributionMetadata.get_contacts-$+-r!c|jp|jSr@)rar`rs rrz&DistributionMetadata.get_contact_emails$9(99r!c|jSr@)r3rs rrzDistributionMetadata.get_urls xr!c|jSr@)r4rs rrz DistributionMetadata.get_licenses |r!c|jSr@)r6rs rrz$DistributionMetadata.get_descriptions r!c|jSr@)rbrs rrz)DistributionMetadata.get_long_descriptionrr!c|jpgSr@)r9rs rrz!DistributionMetadata.get_keywords}""r!c0t|d|_dS)Nr9)r r9rsrs r set_keywordsz!DistributionMetadata.set_keywordss$UJ77 r!c|jSr@)r7rs rrz"DistributionMetadata.get_platformss ~r!c0t|d|_dS)Nr7)r r7rs r set_platformsz"DistributionMetadata.set_platformss%e[99r!c|jpgSr@)r8rs rrz$DistributionMetadata.get_classifierss%2%r!c0t|d|_dS)Nr8)r r8rs rset_classifiersz$DistributionMetadata.set_classifierss'}==r!c|jSr@)rdrs rget_download_urlz%DistributionMetadata.get_download_urlrr!c|jpgSr@)r;rs rrz!DistributionMetadata.get_requiresrr!ctddl}|D]}|j|t||_dSrJ)distutils.versionpredicateversionpredicateVersionPredicaterr;rsrrr%s r set_requiresz!DistributionMetadata.set_requiressH)))) ; ;A  & 7 7 : : : :U  r!c|jpgSr@)r:rs rrz!DistributionMetadata.get_providesrr!crd|D}|D] }ddl}|j|!||_dS)Nc6g|]}|Srr)r@r%s rrBz5DistributionMetadata.set_provides..s ***q***r!r)rrsplit_provisionr:)rsrr%rs r set_providesz!DistributionMetadata.set_providessU**E*** : :A - - - -  & 6 6q 9 9 9 9 r!c|jpgSr@)r<rs rrz"DistributionMetadata.get_obsoletess~##r!ctddl}|D]}|j|t||_dSrJ)rrrrr<rs r set_obsoletesz"DistributionMetadata.set_obsoletessH)))) ; ;A  & 7 7 : : : :er!r@)%rr[r\r]rOrrfr}rzrrrrrrrrrrrr get_licencerrrrrrrrrrrrrrrrr!rrMrMs 0"""".1"1"1"f***%B%B%BN777&&&'''CCC!!!%%%...:::K   %%%###888:::&&&>>>!!!###$$$###$$$%%%%%r!rMcNg}|D]}||dd |S)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. r)r)rF new_options help_tuples rrrs=K,, :ac?++++ r!)!r]rkrrerrremailrrir"errorsrrrr fancy_getoptr r utilr r r _logrdebugrcompilerr r#rMrrr!rrs  ######OOOOHHH 988888889999999999 RZ4 5 5    F F F F F F F F `x%x%x%x%x%x%x%x%vs '11