Viewing File: /opt/alt/python38/lib/python3.8/site-packages/setuptools/_distutils/__pycache__/dist.cpython-38.pyc

U

+a@sdZddlZddlZddlZddlmZzddlZWnek
rLdZYnXddlTddl	m
Z
mZddlm
Z
mZmZddlmZddlmZed	Zd
dZGdd
d
ZGdddZddZdS)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_]*)$cCsLt|trn<t|tsHt|j}d}|jft}ttj|t|}|S)Nz>Warning: '{fieldname}' should be a list, got type '{typename}')	
isinstancestrlisttype__name__formatlocalsr
WARN)value	fieldnametypenamemsgrB/tmp/pip-install-1bd_1mtk/setuptools/setuptools/_distutils/dist.py_ensure_lists


rc@speZdZdZdddddgZdZdd	d
ddd
dddddddddddddddgZddeDZdd iZdad"d#Z	d$d%Z
dbd'd(Zd)d*Zdcd+d,Z
d-d.Zd/d0Zd1d2Zd3d4Zd5d5gfd6d7Zd8d9Zd:d;Zd<d=Zd>d?Zd@dAZdBdCZdddDdEZdedFdGZdfdIdJZejfdKdLZdMdNZdOdPZ dQdRZ!dSdTZ"dUdVZ#dWdXZ$dYdZZ%d[d\Z&d]d^Z'd_d`Z(d!S)g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 obsoletecCsg|]}t|dqS)rr).0xrrr
<listcomp>szDistribution.<listcomp>rrNcCs\d|_d|_d|_|jD]}t||dqt|_|jjD] }d|}t||t|j|q:i|_	d|_
d|_d|_i|_
g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|r|d}|dk	r8|d=|D]4\}}| |}|D]\}	}
d|
f||	<qqd|kr~|d|d	<|d=d
}t!dk	rnt!"|nt#j$%|d|D]\}}
t&|jd|rt|jd||
nNt&|j|rt|j||
n0t&||rt|||
nd
t'|}t!"|qd|_(|jdk	rP|jD].}
|
)ds6qP|
dkr d|_(qPq |*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()'.
        rrget_Noptionszsetup scriptr.r-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_namer<commandcmd_optionsopt_dictoptvalrkeyargrrr__init__s~








zDistribution.__init__cCs&|j|}|dkr"i}|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.
        N)rKr\)rirndictrrrr^'szDistribution.get_option_dictr;c	Csddlm}|dkr"t|j}|dk	r@||||d}|sV||ddS|D]h}|j|}|dkr||d|qZ||d|||}|dD]}||d|qqZdS)Nr)pformatz  zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:r=)pprintrwsortedrKkeysannouncer\split)	riheadercommandsindentrwcmd_namerpoutlinerrrdump_option_dicts2s*zDistribution.dump_option_dictscCsg}ttjtjdj}tj|d}tj|rB|	|tj
dkrRd}nd}|jrtjtjd|}tj|r|	|d}tj|r|	|t
r|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 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, )rospathdirnameramodules__file__joinisfileappendr$rf
expanduserrr{)rifilessys_dirsys_file
user_filename	user_file
local_filerrrfind_config_filesNs&



zDistribution.find_config_filesc
Csddlm}tjtjkr8ddddddd	d
ddd
ddg
}ng}t|}|dkrT|}trb|d|}|D]}tr|d||	||
D]V}||}||}|D]8}	|	dkr|	|kr|
||	}
|	dd}	||
f||	<qq|qld|jkr|jdD]\}	\}}
|j
|	}zF|rDt||t|
n(|	dkr`t||	t|
nt||	|
Wn,tk
r}
zt|
W5d}
~
XYnXqdS)Nr)ConfigParserzinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataprefixzexec-prefixhomeuserrootz"Distribution.parse_config_files():z  reading %srr?_global)rr@)configparserrrarbase_prefix	frozensetrrr{readsectionsr<r^r\replacerurKr]negative_optrBr
ValueErrorDistutilsOptionError)ri	filenamesrignore_optionsparserfilenamesectionr<rprqrrsrcaliasrrrrparse_config_files~s^





zDistribution.parse_config_filescCs|}g|_t||j}||j|ddi|j|j|d}|	}t
|j|
|rhdS|r|||}|dkrhdSqh|jr|j|t|jdk|jddS|jstddS)	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).
        r.r-)argsobjectNrdisplay_optionsr~zno commands suppliedT)_get_toplevel_optionsr~rrset_negative_aliasesrset_aliasesgetoptrJget_option_orderr

set_verbosityrhandle_display_options_parse_command_optsr"
_show_helplenDistutilsArgError)ritoplevel_optionsrroption_orderrrrparse_command_lines.	
zDistribution.parse_command_linecCs|jdgS)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_optionsrirrrrsz"Distribution._get_toplevel_optionsc
Csddlm}|d}t|s*td||j|z||}Wn*tk
rn}zt	|W5d}~XYnXt
||std|t|drt
|jtsd}t|||j}t|dr|}||jt|d	rt
|jtrt|j}ng}||j|j|||||d
d\}}	t|	drV|	jrV|j|d|gddSt|d	rt
|jtrd}
|jD]F\}}}
}t|	||rzd
}
t|r|ntd
||fqz|
rdS||}t|	D]\}}d|f||<q|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"rzYinvalid help function %r for help option '%s': must be a callable object (function, etc.)zcommand line) 
distutils.cmdr
command_rematch
SystemExitr~rget_command_classDistutilsModuleErrorr
issubclassDistutilsClassErrorrdrrrrcopyupdaterfix_help_optionsset_option_tablerrrr"r
get_attr_namecallabler^varsr])rirrrrn	cmd_classrrroptshelp_option_foundhelp_optionshortdescfuncrpr$rrrrrsr











z Distribution._parse_command_optscCsPdD]F}t|j|}|dkrqt|trdd|dD}t|j||qdS)zSet final values for all the options on the Distribution
        instance, analogous to the .finalize_options() method of Command
        objects.
        r2r0NcSsg|]}|qSrstrip)r7elmrrrr9ksz1Distribution.finalize_options.<locals>.<listcomp>,)rFrDrr
r|rB)rirkrrrrrhas
zDistribution.finalize_optionsrc
Csddlm}ddlm}|rR|r*|}n|j}||||jdt	d|rt||j
|dt	d|jD]z}t|t
rt||r|}	n
||}	t|	drt|	jtr||	jt|	jn||	j|d|	jt	dqzt	||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_usageprintrr~rrrrrdrrrrrrI)
rirrrr~rrr<rnklassrrrrns:






zDistribution._show_helpc	Csddlm}|jr4|tdt||jdSd}i}|jD]}d||d<qB|D]l\}}|rX||rXt|}t	|j
d|}|dkrtd|n |dkrtd	|nt|d}qX|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;rr:rr)r1r3r4r5r=)rr
help_commandsprint_commandsrrIrr\rrFrDr)	rirrany_display_optionsis_display_optionoptionrqrrrrrrrs*
z#Distribution.handle_display_optionsc	Csjt|d|D]T}|j|}|s.||}z
|j}Wntk
rPd}YnXtd|||fqdS)zZPrint a subset of the list of all commands -- used by
        'print_commands()'.
        :(no description available)z
  %-*s  %sN)rrGr\rr/AttributeError)rir~r}
max_lengthcmdrr/rrrprint_command_lists


zDistribution.print_command_listcCsddl}|jj}i}|D]}d||<qg}|jD]}||s4||q4d}||D]}t||krZt|}qZ||d||rt	||d|dS)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.commandrn__all__rGrzr\rrrr)rirstd_commandsis_stdrextra_commandsrrrrrs.


zDistribution.print_commandsc		Csddl}|jj}i}|D]}d||<qg}|jD]}||s4||q4g}||D]P}|j|}|sx||}z
|j}Wnt	k
rd}YnX|||fqZ|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)
rrnrrGrzr\rrr/r)	rirrrrrrvrr/rrrget_command_lists(	




zDistribution.get_command_listcCsN|j}t|tsJ|dkrd}dd|dD}d|krD|dd||_|S)z9Return a list of packages from which commands are loaded.Nr;cSsg|]}|dkr|qS)r;r)r7pkgrrrr9"sz5Distribution.get_command_packages.<locals>.<listcomp>rzdistutils.commandr)rHrrr|insert)ripkgsrrrget_command_packagess
z!Distribution.get_command_packagesc	Cs|j|}|r|S|D]}d||f}|}zt|tj|}Wntk
r^YqYnXzt||}Wn&tk
rt	d|||fYnX||j|<|St	d|dS)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%s.%sz3invalid command '%s' (no class '%s' in module '%s')zinvalid command '%s'N)
rGr\r
__import__rarImportErrorrFrr)rirnrpkgnamemodule_name
klass_namemodulerrrr(s,


zDistribution.get_command_classcCsl|j|}|sh|rhtr&|d|||}||}|j|<d|j|<|j|}|rh||||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)rZr\rr{rr[rK_set_command_options)rirncreatecmd_objrr<rrrget_command_objNs

zDistribution.get_command_objcCs\|}|dkr||}tr,|d||D] \}\}}trZ|d|||fzdd|jD}Wntk
rg}YnXz
|j}Wntk
ri}YnXz|t|t	}	||kr|	rt
|||t|nJ||kr|	rt
||t|n,t||rt
|||nt
d|||fWq4tk
rT}
zt
|
W5d}
~
XYq4Xq4dS)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    %s = %s (from %s)cSsg|]}t|qSrr6)r7orrrr9}sz5Distribution._set_command_options.<locals>.<listcomp>z1error in %s: command '%s' has no such option '%s')get_command_namer^rr{r]boolean_optionsrrrr
rBrrdrr)rirZoption_dictcommand_namersourcer	bool_optsneg_opt	is_stringrrrrrisF	






z!Distribution._set_command_optionsrcCs|ddlm}t||s&|}||}n|}|js8|S|d|_d|j|<|||rx|	D]}|
||qf|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)rrrrr
	finalizedinitialize_optionsr[rget_sub_commandsreinitialize_command)rirnreinit_subcommandsrr
subrrrrs


z!Distribution.reinitialize_commandcCst||dSNr	)rirlevelrrrr{szDistribution.announcecCs|jD]}||qdS)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)rirrrrrun_commandss
zDistribution.run_commandscCsD|j|rdStd|||}||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[r\r
inforensure_finalizedrun)rirnrrrrrs	
zDistribution.run_commandcCst|jp|jpgdkSNr)rrMrPrrrrhas_pure_modulesszDistribution.has_pure_modulescCs|jot|jdkSr)rSrrrrrhas_ext_modulesszDistribution.has_ext_modulescCs|jot|jdkSr)rQrrrrrhas_c_librariesszDistribution.has_c_librariescCs|p|Sr)r r!rrrrhas_modulesszDistribution.has_modulescCs|jot|jdkSr)rRrrrrrhas_headersszDistribution.has_headerscCs|jot|jdkSr)rWrrrrrhas_scriptsszDistribution.has_scriptscCs|jot|jdkSr)rXrrrrrhas_data_filesszDistribution.has_data_filescCs|o|o|Sr)r r!r"rrrris_pures
zDistribution.is_pure)N)NNr;)N)r)N)r))r
__module____qualname____doc__rrrrArrur^rrrrrrrhrrrrrrrrrrr
INFOr{rrr r!r"r#r$r%r&r'rrrrr-s	,

0
:C[

2(!"&

,
)
rc@seZdZdZdZdBddZddZdd	Zd
dZdd
Z	ddZ
ddZddZddZ
ddZddZddZddZddZd d!Zd"d#ZeZd$d%Zd&d'Zd(d)Zd*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5Zd6d7Zd8d9Z d:d;Z!d<d=Z"d>d?Z#d@dAZ$dS)CrCz]Dummy class to hold the distribution meta-data: name, version,
    author, and so forth.
    )r$r%r(author_emailr*maintainer_emailr,r-r/long_descriptionr2r0r'r+
contact_emailr1download_urlr3r4r5NcCs|dk	r|t|nfd|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_dSr)
read_pkg_fileopenr$r%r(r,r*r-r,r-r/r.r2r0r1r0r3r4r5)rirrrrrus&zDistributionMetadata.__init__cst|fdd}fdd}d}|d|_|d|_|d|_|d	|_d
|_|d|_d
|_|d|_|d
|_	dkr|d|_
nd
|_
|d|_|d|_dkr|dd|_
|d|_|d|_|dkr|d|_|d|_|d|_nd
|_d
|_d
|_d
S)z-Reads the metadata values from a file object.cs|}|dkrdS|SNUNKNOWNr)r$rrrr_read_field)sz7DistributionMetadata.read_pkg_file.<locals>._read_fieldcs|d}|gkrdS|Sr)get_all)r$valuesr5rr
_read_list/sz6DistributionMetadata.read_pkg_file.<locals>._read_listzmetadata-versionr$r%summaryr(Nr)z	home-pager-zdownload-urlr/r2rplatform
classifier1.1r4r3r5)rr$r%r/r(r*r,r-r,r-r0r.r|r2r0r1r4r3r5)rifiler6r9metadata_versionrr5rr1%s:












z"DistributionMetadata.read_pkg_filec	Cs2ttj|dddd}||W5QRXdS)z7Write the PKG-INFO file into the release tree.
        zPKG-INFOwzUTF-8)encodingN)r2rrrwrite_pkg_file)ribase_dirpkg_inforrrwrite_pkg_infoYs
z#DistributionMetadata.write_pkg_infocCsbd}|js"|js"|js"|js"|jr&d}|d||d||d||d||d|	|d|
|d	||d
||jr|d|jt
|}|d|d
|}|r|d|||d|||d|||d|||d|||d|dS)z9Write the PKG-INFO format data to a file object.
        z1.0r=zMetadata-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)r3r4r5r1r0rcget_nameget_versionget_descriptionget_urlget_contactget_contact_emailget_licenserget_long_descriptionrget_keywords_write_list
get_platformsget_classifiersget_requiresget_provides
get_obsoletes)rir>r%	long_descr2rrrrB`s6z#DistributionMetadata.write_pkg_filecCs |D]}|d||fqdS)Nz%s: %s
)rc)rir>r$r8rrrrrTsz DistributionMetadata._write_listcCs
|jpdSr3)r$rrrrrKszDistributionMetadata.get_namecCs
|jpdS)Nz0.0.0)r%rrrrrLsz DistributionMetadata.get_versioncCsd||fS)Nz%s-%s)rKrLrrrrget_fullnamesz!DistributionMetadata.get_fullnamecCs
|jpdSr3)r(rrrr
get_authorszDistributionMetadata.get_authorcCs
|jpdSr3)r,rrrrget_author_emailsz%DistributionMetadata.get_author_emailcCs
|jpdSr3)r*rrrrget_maintainersz#DistributionMetadata.get_maintainercCs
|jpdSr3)r-rrrrget_maintainer_emailsz)DistributionMetadata.get_maintainer_emailcCs|jp|jpdSr3)r*r(rrrrrOsz DistributionMetadata.get_contactcCs|jp|jpdSr3)r-r,rrrrrPsz&DistributionMetadata.get_contact_emailcCs
|jpdSr3)r,rrrrrNszDistributionMetadata.get_urlcCs
|jpdSr3)r-rrrrrQsz DistributionMetadata.get_licensecCs
|jpdSr3)r/rrrrrMsz$DistributionMetadata.get_descriptioncCs
|jpdSr3)r.rrrrrRsz)DistributionMetadata.get_long_descriptioncCs
|jpgSr)r2rrrrrSsz!DistributionMetadata.get_keywordscCst|d|_dS)Nr2)rr2rirrrrset_keywordssz!DistributionMetadata.set_keywordscCs|jp
dgSr3)r0rrrrrUsz"DistributionMetadata.get_platformscCst|d|_dS)Nr0)rr0r`rrr
set_platformssz"DistributionMetadata.set_platformscCs
|jpgSr)r1rrrrrVsz$DistributionMetadata.get_classifierscCst|d|_dS)Nr1)rr1r`rrrset_classifierssz$DistributionMetadata.set_classifierscCs
|jpdSr3)r0rrrrget_download_urlsz%DistributionMetadata.get_download_urlcCs
|jpgSr)r4rrrrrWsz!DistributionMetadata.get_requirescCs,ddl}|D]}|j|qt||_dSr)distutils.versionpredicateversionpredicateVersionPredicaterr4rirrrrrrset_requiressz!DistributionMetadata.set_requirescCs
|jpgSr)r3rrrrrXsz!DistributionMetadata.get_providescCs6dd|D}|D]}ddl}|j|q||_dS)NcSsg|]}|qSrr)r7rrrrr9sz5DistributionMetadata.set_provides.<locals>.<listcomp>r)rerfsplit_provisionr3)rirrrrrrset_providess
z!DistributionMetadata.set_providescCs
|jpgSr)r5rrrrrYsz"DistributionMetadata.get_obsoletescCs,ddl}|D]}|j|qt||_dSr)rerfrgrr5rhrrr
set_obsoletessz"DistributionMetadata.set_obsoletes)N)%rr(r)r*rErur1rErBrTrKrLr[r\r]r^r_rOrPrNrQget_licencerMrRrSrarUrbrVrcrdrWrirXrkrYrlrrrrrCsD	
4"rCcCs$g}|D]}||ddq|S)zConvert a 4-tuple 'help_options' list as found in various command
    classes to the 3-tuple form required by FancyGetopt.
    r)r)r<new_options
help_tuplerrrrsr)r*rarreemailrr_rdistutils.errorsdistutils.fancy_getoptrrdistutils.utilrrrrr
distutils.debugrcompilerrrrCrrrrr<module>s4

Zc
Back to Directory File Manager