python (3.11.7)

(root)/
lib/
python3.11/
distutils/
__pycache__/
dist.cpython-311.pyc

edZddlZddlZddlZddlmZ	ddlZn
#e$rdZYnwxYwddlTddl	m
Z
mZddlm
Z
mZmZddlmZddlmZejd	Zd
ZGddZGd
dZdZdS)z}distutils.dist

Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
N)message_from_file)*)FancyGetopttranslate_longopt)
check_environ	strtobool
rfc822_escapelog)DEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$ct|trn`t|tsKt|j}d|d|d}tjt
j|t|}|S)Nz
Warning: 'z' should be a list, got type '')
isinstancestrlisttype__name__rWARN)value	fieldnametypenamemsgs    B/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/distutils/dist.py_ensure_listrsu%		

t
$
$;;'O9OOHOOO#ULceZdZdZgdZdZgdZdeDZddiZd*d	Z	d
Z
d+dZd
Zd*dZ
dZdZdZdZddgfdZdZdZdZdZdZdZd,dZd*dZd-dZejfdZd Zd!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))quietqz!run quietly (turns verbosity off))zdry-runnzdon't actually do anything)helphzshow detailed help message)zno-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 <package name>-<version>)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
<listcomp>zDistribution.<listcomp>s%MMM-ad33MMMrr!rNc	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||	<
<d|vrN|d|d	<|d=d
}tBtCj"|n"tFj$%|dz|D]\}}
tM|jd|zr"t|jd|z|
?tM|j|rt	|j||
ktM||rt	|||
d
tO|z}tCj"|d|_(|j0|jD](}
|
)dsn|
dkr	d|_(n)|*dS)a0Construct a new Distribution instance: initialize all the
        attributes of a Distribution, and then use 'attrs' (a dictionary
        mapping attribute names to values) to assign some of those
        attributes their "real" values.  (Any attributes not mentioned in
        'attrs' will be assigned to some null value: 0, None, an empty list
        or dictionary, etc.)  Most importantly, initialize the
        'command_obj' attribute to the empty dictionary; this will be
        filled in with real command objects by 'parse_command_line()'.
        r rget_Noptionszsetup scriptr0r/z:'licence' distribution option is deprecated; use 'license'
set_zUnknown distribution option: %sT-z
--no-user-cfgF)+rdry_runr$display_option_namessetattrDistributionMetadatametadata_METHOD_BASENAMESgetattrcmdclasscommand_packagesscript_namescript_argscommand_options
dist_filespackagespackage_datapackage_dir
py_modules	librariesheadersext_modulesext_packageinclude_dirs
extra_pathscripts
data_filespasswordcommand_objhave_rungetitemsget_option_dictwarningswarnsysstderrwritehasattrrepr
want_user_cfg
startswithfinalize_options)selfattrsattrbasenamemethod_namerAcommandcmd_optionsopt_dictoptvalrkeyargs              r__init__zDistribution.__init__si	-	#	#DD$""""-..

7	L	LH 8+KD+wt}k'J'JKKKK
!%
  "

 

!	'
ii	**G")$.5mmoo>>*Wk#33G<<H&1&7&7&9&9>>
c)7(=

>E!!#(#3i )$R'M#&&&&J$$S4Z000$kkmm	
'	
'
c4=&3,77'8GDM6C<88====T]C00'DM34444T3'''D#s++++;d3iiGCM#&&&&"''

~~c**E/))).D&E*	
rcV|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.
        )rPra)rnrsdicts   rrczDistribution.get_option_dict&s6#''00<355D4'0rr@cddlm}|&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:rB)pprintr~sortedrPkeysannouncerasplit)	rnheadercommandsindentr~cmd_nameruoutlines	         rdump_option_dictszDistribution.dump_option_dicts1sZ""""""d27799::HMM&6/***d]F	MM&#::;;;F 
	8
	8H+//99H

f?(JKLLLL

f=HIJJJgh''IIdOO88DMM&4-$"677778
	8
	8rc g}ttjtjdj}tj|d}tj|r|	|tj
dkrd}nd}|jrqtjtjd|}tj|r|	|d}tj|r|	|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 three possible config files: distutils.cfg in the
        Distutils installation directory (ie. 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; and setup.cfg in the current directory.

        The file in the user's home directory can be disabled with the
        --no-user-cfg option.
        	distutilsz
distutils.cfgposixz.pydistutils.cfgzpydistutils.cfg~z	setup.cfgzusing config files: %sz, )rospathdirnamerfmodules__file__joinisfileappendr&rk
expanduserrr)rnfilessys_dirsys_file
user_filename	user_file
local_files       rfind_config_fileszDistribution.find_config_filesMsF'//#+k":"CDD7<<99
7>>(##	#LL"""7g.MM-M	(RW%7%7%<%<mLLIw~~i((
(Y'''!

7>>*%%	%LL$$$	GMM2TYYu5E5EEFFFrcddlm}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-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataprefixzexec-prefixhomeuserrootz"Distribution.parse_config_files():z  reading %srrD_global)rrE)configparserrrfrbase_prefix	frozensetrrrreadsectionsrArcrareplacerzrPrbnegative_optrGr
ValueErrorDistutilsOptionError)rn	filenamesrignore_optionsparserfilenamesectionrArurvrwsrcaliasrs              rparse_config_fileszDistribution.parse_config_files}so------:(((((NN N">22..00I	@MM>???!		H
9

nx7888KK!!!!??,,
8
8 ..11//88"88Cj((S-F-F$jj55!kk#s33)13
	8
OO
t+++%)%9(%C%I%I%K%K

4

4!jsC)--c2240e3-?@@@@ 666c9S>>::::c3///!444.s3334,+

4

4sAG%%
H/G>>Hcl|}g|_t||jz}||j|ddi||j|}|	}tj|j|
|rdS|r|||}|dS||jr5||t#|jdk|jdS|jst%ddS)	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).
        r0r/)argsobjectNrdisplay_optionsrzno commands suppliedT)_get_toplevel_optionsrrrset_negative_aliasesrset_aliasesgetoptrOget_option_orderr
set_verbosityrhandle_display_options_parse_command_optsr$
_show_helplenDistutilsArgError)rntoplevel_optionsrroption_orders     rparse_command_linezDistribution.parse_command_linesX. 5577
-0DDEE##D$5666Iy1222}}$"24}@@..00$,'''&&|44	F	++FD99D|	9	OOF,/
,>,>!,C%)]

4
4
4
F}	<#$:;;;trc|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_optionsrns rrz"Distribution._get_toplevel_optionss"
A&	rcddlm}|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|	dr"|	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_optionsr r$rzinvalid help function z for help option 'z-': must be a callable object (function, etc.)zcommand line) 
distutils.cmdr
command_rematch
SystemExitrrget_command_classDistutilsModuleErrorr
issubclassDistutilsClassErrorrirrrrcopyupdaterfix_help_optionsset_option_tablerrrr$r
get_attr_namecallablercvarsrb)rnrrrrs	cmd_classrrroptshelp_option_foundhelp_optionshortdescfuncrur&rs                  rrz Distribution._parse_command_optssU	*)))))q'((	D87BCCC
W%%%
	)..w77II#	)	)	)#C(((	)
)W--	F%89DFF
F
	>22	791488	7>C%cIo666(9n--	8',,..L	 6777
I~..	91488	+I,BCCLLL	 3 ) 6!7 ,!-	.	.	.	##L111}}T!""X..t4  	TY	OOFAOLLLFI~..	91488	4=4J	
3	
30eT44!5!5k!B!BCC3&'%~~311 $tt[[[23333!
''00!$ZZ--//	5	5MT5,e4HTNNsA,,
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.
        r4r2Nc6g|]}|Sstrip)r;elms  rr=z1Distribution.finalize_options.<locals>.<listcomp>js AAAAAAr,)rKrIrrrrG)rnrprs   rrmzDistribution.finalize_options`s|
.	4	4DDM400E}%%%
4AAC0@0@AAA
tU333
	4	4rr chddlm}ddlm}|r_|r|}n|j}||||jdztd|r>||j
|dtd|jD]}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:r@zKInformation display options (just display information, ignore any commands)rzOptions for '%s' command:N)distutils.corerrrrrr
print_helpcommon_usageprintrrrrrrrirrrrrrN)
rnrrrrrrrArsklasss
          rrzDistribution._show_helpms	-,,,,,))))))	
.4466-##G,,,d/2EEFFF"III	##D$89994
5
5
5
"III}		G'4((
8Z-I-I
8..w77~..
<u1488
<''(:(89K(L(L)MNNNN''(:;;;9ENJKKK"IIII
ii())*****rc0ddlm}|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.
        rrr@r r?rr)r3r5r6r7rB)rr
help_commandsprint_commandsrrNrrarrKrIr)	rnrrany_display_optionsis_display_optionoptionrvrwrs	         rrz#Distribution.handle_display_optionss[	-,,,,,
	!!!"III))D,--...1
 *	-	-F+,fQi((&	(	(JS#

((,,S11

(',,:
vcz::<<333#((5//*******$))E**++++%LLL&'#""rct|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)rrLrarr1AttributeError)rnrr
max_lengthcmdrr1s       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'.
        rNr zStandard commandszExtra commands)
distutils.commandrs__all__rLrrarrrr)rnrstd_commandsis_stdrextra_commandsrs       rrzDistribution.print_commandss 	!    (0		CF3KK=%%''	+	+C::c??
+%%c***
 >1	&	&C3xx*$$ XX
 3 *	,	,	,	0GGG##N$4$.
0
0
0
0
0	0	0rcddl}|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'.
        rNr r)
rrsrrLrrarrr1r)	rnrr	r
rrrvrr1s	         rget_command_listzDistribution.get_command_lists	!    (0		CF3KK=%%''	+	+C::c??
+%%c***
 >1	*	*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.Nr@cBg|]}|dk|S)r@r)r;pkgs  rr=z5Distribution.get_command_packages.<locals>.<listcomp>!s%HHHCcRiiCIIKKiiirrzdistutils.commandr)rMrrrinsert)rnpkgss  rget_command_packagesz!Distribution.get_command_packagessp$$%%	)|HH4::c??HHHD"$..A2333$(D!rc|j|}|r|S|D]}|d|}|}	t|tj|}n#t$rY:wxYw	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.
        .zinvalid command 'z
' (no class 'z
' in module 'z')zinvalid command '%s')
rLrar
__import__rfrImportErrorrKrr)rnrsrpkgnamemodule_name
klass_namemodules       rrzDistribution.get_command_class's 
!!'**	L0022		G%,WWgg6K J
;'''[1




:
33!
:
:
:**ww


KKK9:::
:
&+DM'"LLL"#9G#CDDDs!A!!
A.-A.2B$B'cL|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<Distribution.get_command_obj(): creating '%s' command objectr)r_rarrrr`rP_set_command_options)rnrscreatecmd_objrrAs      rget_command_objzDistribution.get_command_objMs"&&w//	<6	<
H

=?FGHHH**733E27%++=Gd&w/%&DM'"*..w77G
<))'7;;;rc
*|}|||}tr|d|z|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 '%s' command:z    z = z (from )c,g|]}t|Srr:)r;os  rr=z5Distribution._set_command_options.<locals>.<listcomp>|s6CCC!"/q11CCCrz	error in z: command 'z' has no such option 'r)get_command_namercrrrbboolean_optionsrrrrrGrrirr)rnr_option_dictcommand_namersourcer	bool_optsneg_opt	is_stringrs           rrz!Distribution._set_command_optionshs7#3355..|<<K	PMM?,NOOO)4):):)<)<	0	0%V_fe
B


9?ABBB
CC&1&ACCC		!


			

%2!





0&uc22	W$$$Ki>N>N:NOOOOy((Y(K51A1ABBBB[&11:K7777..!66<<<9:::
0
0
0*3///
05	0	0s=B!!B0/B04B<<C
CB!E22
F<FFrcnddlm}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!r&	finalizedinitialize_optionsr`rget_sub_commandsreinitialize_command)rnrsreinit_subcommandsrr)subs      rr2z!Distribution.reinitialize_commands&	*)))))'7++	6"L**<88GG"3355L 	N""$$$&'
l#!!'***	C//11
C
C))#/ABBBBrc0tj||dSNr
)rnrlevels   rrzDistribution.announcessrcD|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)rrun_command)rnrs  rrun_commandszDistribution.run_commandss6
=	"	"CS!!!!	"	"rc|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 )r`rarinfor!ensure_finalizedrun)rnrsr s   rr9zDistribution.run_commandsw=W%%	Fw'''&&w//  """


!"
grcDt|jp|jpgdkSNr)rrRrUrs rhas_pure_moduleszDistribution.has_pure_moduless#4=9DO9r::Q>>rc@|jot|jdkSr@)rXrrs rhas_ext_moduleszDistribution.has_ext_moduless =C(8$9$9A$==rc@|jot|jdkSr@)rVrrs rhas_c_librarieszDistribution.has_c_librariess~9#dn"5"5"99rcR|p|Sr6)rArCrs rhas_moduleszDistribution.has_moduless%$$&&@$*>*>*@*@@rc@|jot|jdkSr@)rWrrs rhas_headerszDistribution.has_headers|5DL 1 1A 55rc@|jot|jdkSr@)r\rrs rhas_scriptszDistribution.has_scriptsrJrc@|jot|jdkSr@)r]rrs rhas_data_fileszDistribution.has_data_filess;3t#7#7!#;;rc~|o)|o|Sr6)rArCrErs ris_purezDistribution.is_puresD%%''+((***+((***	,rr6)NNr@)r r9))r
__module____qualname____doc__rrrrFrrzrcrrrrrrrmrrrrrrrr!rr2rINFOrr:r9rArCrErGrIrLrNrPrrrrr,s*NL+
+
+
OXNM_MMMY'L\ \ \ \ |			88888...`64646464tAAAF			YYYv4441210+0+0+0+d&#&#&#PAAA"000BD


$E$E$EL6*0*0*0*0X%%%%R#&("""###(???>>>:::AAA666666<<<,,,,,rrceZdZdZdZd#dZdZdZdZdZ	d	Z
d
ZdZdZ
d
ZdZdZdZdZdZdZeZdZdZdZdZdZdZdZdZdZdZdZ dZ!d Z"d!Z#d"Z$dS)$rHz]Dummy class to hold the distribution meta-data: name, version,
    author, and so forth.
    )r&r'r*author_emailr,maintainer_emailr.r/r1long_descriptionr4r2r)r-
contact_emailr3download_urlr5r6r7Nc@|$|t|dSd|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_dSr6)
read_pkg_fileopenr&r'r*rVr,rWr.r/r1rXr4r2r3rZr5r6r7)rnrs  rrzzDistributionMetadata.__init__
stDzz*****DIDLDK $D"DO$(D!DHDL#D$(D! DM!DN#D $D DM DM!DNNNrct|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.c(|}|dkrdS|SNUNKNOWNr)r&rrs  r_read_fieldz7DistributionMetadata.read_pkg_file.<locals>._read_field(s!IE	!!tLrcD|d}|gkrdS|Sr6)get_all)r&valuesrs  r
_read_listz6DistributionMetadata.read_pkg_file.<locals>._read_list.s)[[t,,F||tMrzmetadata-versionr&r'summaryr*Nr+z	home-pager/zdownload-urlr1r4rplatform
classifier1.1r6r5r7)rr&r'r1r*r,rVrWr.r/rZrXrr4r2r3r6r5r7)rnfilerbrfmetadata_versionrs     @rr\z"DistributionMetadata.read_pkg_file$s%%										12K''	"{9--&;y11!k(++'K77 $;{++"{9--S   +N ; ;D $D +M : :&;y11'K
3399#>>DM#J//%:l33u$$&Jz22DM&Jz22DM'Z44DNNN DM DM!DNNNrcttj|ddd5}||ddddS#1swxYwYdS)z7Write the PKG-INFO file into the release tree.
        zPKG-INFOwzUTF-8)encodingN)r]rrrwrite_pkg_file)rnbase_dirpkg_infos   rwrite_pkg_infoz#DistributionMetadata.write_pkg_infoXs"',,x44c"$$$	*'/)))	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*	*sAAAcd}|js|js|js|js|jrd}|d|z|d|z|d|z|d|z|d|	z|d|
z|d	|z|d
|z|jr|d|jzt|}|d|zd
|}|r|d|z||d|||d|||d|||d|||d|dS)z9Write the PKG-INFO format data to a file object.
        z1.0rjzMetadata-Version: %s
z	Name: %s
zVersion: %s
zSummary: %s
zHome-page: %s
zAuthor: %s
zAuthor-email: %s
zLicense: %s
zDownload-URL: %s
zDescription: %s
rz
Keywords: %s
Platform
ClassifierRequiresProvides	ObsoletesN)r5r6r7r3rZrhget_nameget_versionget_descriptionget_urlget_contactget_contact_emailget_licenser	get_long_descriptionrget_keywords_write_list
get_platformsget_classifiersget_requiresget_provides
get_obsoletes)rnrkr'	long_descr4s     rrpz#DistributionMetadata.write_pkg_file_sM	T]	dn	 	$($5	G

+g5666

<$--//1222

?T%5%5%7%77888

?T%9%9%;%;;<<<

$t||~~5666

>D$4$4$6$66777

'$*@*@*B*BBCCC

?T%5%5%7%77888	AJJ+d.??@@@!$";";"="=>>	

&233388D--//00	4JJ'(2333z4+=+=+?+?@@@|T-A-A-C-CDDD	
z4+<+<+>+>???z4+<+<+>+>???{D,>,>,@,@AAAAArcF|D]}||d|ddS)Nz: rB)rh)rnrkr&rers     rrz DistributionMetadata._write_lists=	3	3EJJTTT55512222	3	3rc|jpdSr`)r&rs rrzzDistributionMetadata.get_namesy%I%rc|jpdS)Nz0.0.0)r'rs rr{z DistributionMetadata.get_versions|&w&rcX|d|S)NrD)rzr{rs rget_fullnamez!DistributionMetadata.get_fullnames(--////4+;+;+=+=+=>>rc|jpdSr`)r*rs r
get_authorzDistributionMetadata.get_authors{'i'rc|jpdSr`)rVrs rget_author_emailz%DistributionMetadata.get_author_email -I-rc|jpdSr`)r,rs rget_maintainerz#DistributionMetadata.get_maintainers+)+rc|jpdSr`)rWrs rget_maintainer_emailz)DistributionMetadata.get_maintainer_email$1	1rc"|jp|jpdSr`)r,r*rs rr~z DistributionMetadata.get_contacts:$+::rc"|jp|jpdSr`)rWrVrs rrz&DistributionMetadata.get_contact_emails$F(9FYFrc|jpdSr`)r.rs rr}zDistributionMetadata.get_urlsx$9$rc|jpdSr`)r/rs rrz DistributionMetadata.get_licenses|(y(rc|jpdSr`)r1rs rr|z$DistributionMetadata.get_descriptions,9,rc|jpdSr`)rXrs rrz)DistributionMetadata.get_long_descriptionrrc|jpgSr6)r4rs rrz!DistributionMetadata.get_keywords}""rc0t|d|_dS)Nr4)rr4rnrs  rset_keywordsz!DistributionMetadata.set_keywordss$UJ77


rc|jpdgSr`)r2rs rrz"DistributionMetadata.get_platformss~,),rc0t|d|_dS)Nr2)rr2rs  r
set_platformsz"DistributionMetadata.set_platformss%e[99rc|jpgSr6)r3rs rrz$DistributionMetadata.get_classifierss%2%rc0t|d|_dS)Nr3)rr3rs  rset_classifiersz$DistributionMetadata.set_classifierss'}==rc|jpdSr`)rZrs rget_download_urlz%DistributionMetadata.get_download_urlrrc|jpgSr6)r6rs rrz!DistributionMetadata.get_requiresrrctddl}|D]}|j|t||_dSr@)distutils.versionpredicateversionpredicateVersionPredicaterr6rnrrrs    rset_requiresz!DistributionMetadata.set_requiressH))))	;	;A&77::::U


rc|jpgSr6)r5rs rrz!DistributionMetadata.get_providesrrcrd|D}|D] }ddl}|j|!||_dS)Nc6g|]}|Srr)r;rs  rr=z5DistributionMetadata.set_provides.<locals>.<listcomp>s ***q***rr)rrsplit_provisionr5)rnrrrs    rset_providesz!DistributionMetadata.set_providessU**E***	:	:A----&66q9999


rc|jpgSr6)r7rs rrz"DistributionMetadata.get_obsoletess~##rctddl}|D]}|j|t||_dSr@)rrrrr7rs    r
set_obsoletesz"DistributionMetadata.set_obsoletessH))))	;	;A&77::::err6)%rrQrRrSrJrzr\rsrprrzr{rrrrrr~rr}rget_licencer|rrrrrrrrrrrrrrrrrrHrHs	"""".2"2"2"h*** B B BD333&&&'''???(((...,,,222;;;GGG%%%)))K---222###888---:::&&&>>>...###$$$###$$$%%%%%rrHcNg}|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)rAnew_options
help_tuples   rrrs=K,,
:ac?++++r)rSrfrreemailrrdrdistutils.errorsdistutils.fancy_getoptrrdistutils.utilrrr	rrdistutils.debugrcompilerrrrHrrrr<module>rsx


								######OOOOHHHAAAAAAAABBBBBBBBBB!!!!!!RZ4
5
5
J,J,J,J,J,J,J,J,f`%`%`%`%`%`%`%`%Ds%%