��Qc@s&dZdZddlZddlZddlZddlmZyddlZWnek
rie ZnXddl
mZmZm
Z
mZddlmZmZddlmZmZmZddlmZdd lmZd
Zejd�Zdfd
��YZdfd��YZd�ZdS(s}distutils.dist
Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
s$Id$i�N(tmessage_from_file(tDistutilsOptionErrortDistutilsArgErrortDistutilsModuleErrortDistutilsClassError(tFancyGetoptttranslate_longopt(t
check_environt strtoboolt
rfc822_escape(tlog(tDEBUGsutf-8s^[a-zA-Z]([a-zA-Z0-9_]*)$tDistributioncBs�eZdZd]d^d_d`dbgZdZdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwgZed<�e�Zidd6Z dad=�Z
d>�Zdadad?d@�ZdA�Z
dadB�ZdC�ZdD�ZdE�ZdF�ZddgdG�ZdH�ZdI�ZdJ�ZdK�ZdL�ZdM�ZddN�ZdadO�ZdPdQ�ZejdR�ZdS�Z dT�Z!dU�Z"dV�Z#dW�Z$dX�Z%dY�Z&dZ�Z'd[�Z(d\�Z)RS(xs�The 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.
tverbosetvsrun verbosely (default)itquiettqs!run quietly (turns verbosity off)sdry-runtnsdon't actually do anythingthelpthsshow detailed help messagesno-user-cfgs-ignore pydistutils.cfg in your home directorys�Common commands: (see '--help-commands' for more)
setup.py build will build the package underneath 'build/'
setup.py install will install the package
s
help-commandsslist all available commandstnamesprint package nametversiontVsprint package versiontfullnamesprint <package name>-<version>tauthorsprint the author's namesauthor-emails print the author's email addresst
maintainersprint the maintainer's namesmaintainer-emails$print the maintainer's email addresstcontacts7print the maintainer's name if known, else the author'ss
contact-emails@print the maintainer's email address if known, else the author'sturlsprint the URL for this packagetlicenses print the license of the packagetlicencesalias for --licensetdescriptionsprint the package descriptionslong-descriptions"print the long package descriptiont platformssprint the list of platformstclassifierssprint the list of classifierstkeywordssprint the list of keywordstprovidess+print the list of packages/modules providedtrequiress+print the list of packages/modules requiredt obsoletess0print the list of packages/modules made obsoletecCst|d�S(Ni(R(tx((s$/sys/lib/python2.7/distutils/dist.pyt<lambda>wscCsid|_d|_d|_x!|jD]}t||d�q%Wt�|_x:|jjD],}d|}t||t|j|��qXWi|_ d|_d|_d|_
i|_g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|r|jd�}|dk r�|d=xY|j �D]H\}}|j!|�}x*|j �D]\} }
d|
f|| <q�WqzWnd|kr#|d|d<|d=d }t"dk rt"j#|�q#t$j%j&|d
�nx�|j �D]�\}}
t'|jd|�rot|jd|�|
�q0t'|j|�r�t|j||
�q0t'||�r�t|||
�q0dt(|�}t"dk r�"j#|�q0t$j%j&|d
�q0Wnt)|_*|j
dk r[x@|j
D]2}
|
j+d
�s;Pn|
dkr"t,|_*Pq"q"Wn|j-�dS(s0Construct 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()'.
iitget_ttoptionsssetup scriptRRs:'licence' distribution option is deprecated; use 'license's
tset_sUnknown distribution option: %st-s
--no-user-cfgN(.R
tdry_runRtdisplay_option_namestsetattrtDistributionMetadatatmetadatat_METHOD_BASENAMEStgetattrtcmdclasstNonetcommand_packagestscript_nametscript_argstcommand_optionst
dist_filestpackagestpackage_datatpackage_dirt
py_modulest librariestheaderstext_modulestext_packagetinclude_dirst
extra_pathtscriptst
data_filestpasswordtcommand_objthave_runtgettitemstget_option_dicttwarningstwarntsyststderrtwritethasattrtreprtTruet
want_user_cfgt
startswithtFalsetfinalize_options(tselftattrstattrtbasenametmethod_nameR)tcommandtcmd_optionstopt_dicttopttvaltmsgtkeytarg((s$/sys/lib/python2.7/distutils/dist.pyt__init__�s�
cCs6|jj|�}|dkr2i}|j|<n|S(s�Get 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(R8RIR4(RXR]tdict((s$/sys/lib/python2.7/distutils/dist.pyRK!sR(c Csddlm}|dkr8|jj�}|j�n|dk rb|j||�|d}n|s}|j|d�dSx�|D]�}|jj|�}|dkr�|j|d|�q�|j|d|�||�}x,|jd�D]}|j|d|�q��WdS(Ni�(tpformats sno commands known yetsno option dict for '%s' commandsoption dict for '%s' command:s
( tpprintRgR4R8tkeystsorttannounceRItsplit( RXtheadertcommandstindentRgtcmd_nameR_touttline((s$/sys/lib/python2.7/distutils/dist.pytdump_option_dicts,s(
cCsg}t�tjjtjdj�}tjj|d�}tjj|�r`|j |�ntj
dkrxd}nd}|jr�tjjtjjd�|�}tjj|�r�|j |�q�nd}tjj|�r�j |�nt
r|jdd j|��n|S(
s�Find 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.
t distutilss
distutils.cfgtposixs.pydistutils.cfgspydistutils.cfgt~s setup.cfgsusing config files: %ss, (RtostpathtdirnameRNtmodulest__file__tjointisfiletappendRRTt
expanduserRRk(RXtfilestsys_dirtsys_filet
user_filenamet user_filet
local_file((s$/sys/lib/python2.7/distutils/dist.pytfind_config_filesIs& !c
Cs�ddlm}|dkr+|j�}ntrA|jd�n|�}x�|D]�}trq|jd|�n|j|�x�|j�D]x}|j|�}|j|�}xQ|D]I}|dkr�|j ||�} |j
dd�}|| f||<q�q�Wq�W|j�qQWd|jkr�x�|jdj
�D]�\}\}
} |jj |�}yY|rt||t| ��n5|dkr�t||t| ��nt||| �Wq8tk
r�}t|�q8Xq8WndS(Ni�(tConfigParsers"Distribution.parse_config_files():s reading %st__name__R+t_tglobalR
R,(sverbosesdry_run(R�R4R�RRktreadtsectionsR)RKRItreplaceReR8RJtnegative_optR.Rt
ValueErrorR(
RXt filenamesR�tparsertfilenametsectionR)R_R`RatsrctaliasRb((s$/sys/lib/python2.7/distutils/dist.pytparse_config_filesys<
&cCs|j�}g|_t||j�}|j|j�|jidd6�|jd|jd|�}|j �}t
j|j�|j
|�r�dSx,|r�|j||�}|dkr�dSq�W|jr�j|dt|j�dkd|j�dS|jstd �nd
S(s�Parse 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).
RRtargstobjectNtdisplay_optionsiRnsno commands suppliedi(t_get_toplevel_optionsRnRR�tset_negative_aliasesR�tset_aliasestgetoptR7tget_option_orderR
t
set_verbosityR
thandle_display_optionst_parse_command_optsR4Rt
_show_helptlenR(RXttoplevel_optionsR�R�toption_order((s$/sys/lib/python2.7/distutils/dist.pytparse_command_line�s,
cCs|jdgS(s�Return 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.
scommand-packages=s0list of packages that provide distutils commandsN(scommand-packages=Ns0list of packages that provide distutils commands(tglobal_optionsR4(RX((s$/sys/lib/python2.7/distutils/dist.pyR��sc Cs�ddlm}|d}tj|�s9td|�n|jj|�y|j|�}Wntk
rz}t |�nXt
||�s�td|�nt|d�o�t
|jt�s�tdd|�n|j}t|d �r|j�}|j|j�nt|d
�r9t
|jt�r9t|j�}ng}|j|j|j|�|j|�|j|d�\}} t| d�r�| jr�|j|d
dd|g�dSt|d
�r\t
|jt�r\d}
xm|jD]b\}}}
}t| |j|��r�}
t|d�r2|�qKtd||f��q��|
r\dSn|j|�}x0t| �j�D]\}}d|f||<q~W|S(s�Parse 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.
i�(tCommandisinvalid command name '%s's&command class %s must subclass Commandtuser_optionsscommand class %s must provide s+'user_options' attribute (a list of tuples)R�thelp_optionsiRR�RnNt__call__sYinvalid help function %r for help option '%s': must be a callable object (function, etc.)scommand line(t
distutils.cmdR�t
command_retmatcht
SystemExitRnR~tget_command_classRRt
issubclassRRQt
isinstanceR�tlistR�tcopytupdateR�tfix_help_optionstset_option_tableR�R�R�RR�t
get_attr_nameRKtvarsRJ(RXR�R�R�R]t cmd_classRbR�R�toptsthelp_option_foundthelp_optiontshorttdesctfuncR_Rtvalue((s$/sys/lib/python2.7/distutils/dist.pyR��sf
cCs�xdD]w}t|j|�}|dkr1qnt|t�rg|jd�D]}|j�^qP}t|j||�qqWdS(s�Set final values for all the options on the Distribution
instance, analogous to the .finalize_options() method of Command
objects.
R!Rt,N(skeywordss platforms(R2R0R4R�tstrRltstripR.(RXRZR�telm((s$/sys/lib/python2.7/distutils/dist.pyRWRs
(c
Csbddlm}ddlm}|rm|r;|j�}n |j}|j|�|j|jd�dGHn|r�|j|j �|jdd�dGHnx�|j
D]�}t|t�r�t
||�r�|} n|j|�} t| d�r#t| jt�r#|j| jt| j��n|j| j�|jd | j�dGHq�W||j�GHd
S(sbShow 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'.
i�(t gen_usage(R�s
Global options:R(s*Information display options (just display s!information, ignore any commands)R�sOptions for '%s' command:N(tdistutils.coreR�R�R�R�R�R�t
print_helptcommon_usageR�RnR�ttypeR�R�RQR�R�R�R�R�R6(
RXR�R�R�RnR�R�R)R]tklass((s$/sys/lib/python2.7/distutils/dist.pyR�_s6
c Csddlm}|jr:|j�dGH||j�GHdSd}i}x|jD]}d||d<qPWx�|D]�\}}|ro|j|�rot|�}t|j d|��}|dkr�d j
|�GHn"|dkr�j
|�GHn|GHd}qoqoW|S(s�If 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.
i�(R�R(iiR'R!RR�R R"R#R$s
(skeywordss platforms(sclassifierssprovidessrequiress obsoletes(R�R�t
help_commandstprint_commandsR6R�RIRR2R0R|( RXR�R�tany_display_optionstis_display_optiontoptionR`RaR�((s$/sys/lib/python2.7/distutils/dist.pyR��s,
cCs�|dGHxq|D]i}|jj|�}|s@|j|�}ny
|j}Wntk
rfd}nXd|||fGHqWdS(sZPrint a subset of the list of all commands -- used by
'print_commands()'.
t:s(no description available)s
%-*s %sN(R3RIR�RtAttributeError(RXRnRmt
max_lengthtcmdR�R((s$/sys/lib/python2.7/distutils/dist.pytprint_command_list�s
cCs�ddl}|jj}i}x|D]}d||<q%Wg}x6|jj�D]%}|j|�sO|j|�qOqOWd}x3||D]'}t|�|kr�t|�}q�q�W|j|d|�|r�|j|d|�ndS(snPrint 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'.
i�NiisStandard commandssExtra commands( tdistutils.commandR]t__all__R3RiRIR~R�R�(RXRttstd_commandstis_stdR�textra_commandsR�((s$/sys/lib/python2.7/distutils/dist.pyR��s*
c Cs�ddl}|jj}i}x|D]}d||<q%Wg}x6|jj�D]%}|j|�sO|j|�qOqOWg}xv||D]j}|jj|�}|s�|j|�}ny
|j}Wnt k
r�d}nX|j||f�q�W|S(s>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'.
i�Nis(no description available)(
R�R]R�R3RiRIR~R�RR�( RXRtR�R�R�R�trvR�R((s$/sys/lib/python2.7/distutils/dist.pytget_command_list�s(
cCs�|j}t|t�s�|dkr-d}ng|jd�D]}|dkr=|j�^q=}d|kr�|jdd�n||_n|S(s9Return a list of packages from which commands are loaded.R(R�sdistutils.commandiN(R5R�R�R4RlR�tinsert(RXtpkgstpkg((s$/sys/lib/python2.7/distutils/dist.pytget_command_packagess 4cCs�|jj|�}|r|Sx�|j�D]�}d||f}|}yt|�tj|}Wntk
rvq)nXyt||�}Wn'tk
r�t d|||f�nX||j|<|SWt d|��dS(soReturn 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.
s%s.%ss3invalid command '%s' (no class '%s' in module '%s')sinvalid command '%s'N(
R3RIR�t
__import__RNRztImportErrorR2R�R(RXR]R�tpkgnametmodule_namet
klass_nametmodule((s$/sys/lib/python2.7/distutils/dist.pyR�s(
cCs�|jj|�}|r�|r�tr9|jd|�n|j|�}||�}|j|<d|j|<|jj|�}|r�|j||�q�n|S(sReturn 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.
s<Distribution.get_command_obj(): creating '%s' command objecti(RGRIRRkR�RHR8t_set_command_options(RXR]tcreatetcmd_objR�R)((s$/sys/lib/python2.7/distutils/dist.pytget_command_objAs
cCs�|j�}|dkr*|j|�}ntrD|jd|�nx_|j�D]Q\}\}}tr�|jd|||f�nytt|j�}Wnt k
r�g}nXy
|j
}Wnt k
r�i}nXy�t|t�} ||kr| rt
|||t|��nc||krJ| rJt
||t|��n8t||�rlt
|||�ntd|||f�WqQtk
r�}
t|
�qQXqQWdS(sySet 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').
s# setting options for '%s' command:s %s = %s (from %s)s1error in %s: command '%s' has no such option '%s'N(tget_command_nameR4RKRRkRJtmapRtboolean_optionsR�R�R�R�R.RRQRR�(RXRGtoption_dicttcommand_nameR�tsourceR�t bool_optstneg_optt is_stringRb((s$/sys/lib/python2.7/distutils/dist.pyR�\s<
icCs�ddlm}t||�s7|}|j|�}n|j�}|jsP|S|j�d|_d|j|<|j|�|r�x'|j �D]}|j
||�q�Wn|S(s�Reinitializes 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.
i�(R�i(R�R�R�R�R�t finalizedtinitialize_optionsRHR�tget_sub_commandstreinitialize_command(RXR]treinit_subcommandsR�R�tsub((s$/sys/lib/python2.7/distutils/dist.pyR��s
cCstj||�dS(N(R
(RXRbtlevel((s$/sys/lib/python2.7/distutils/dist.pyRk�scCs%x|jD]}|j|�q
WdS(s�Run 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(Rntrun_command(RXR�((s$/sys/lib/python2.7/distutils/dist.pytrun_commands�scCsZ|jj|�rdStjd|�|j|�}|j�|j�d|j|<dS(s�Do 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).
Ns
running %si(RHRIR
tinfoR�tensure_finalizedtrun(RXR]R�((s$/sys/lib/python2.7/distutils/dist.pyR��s
cCs"t|jp|jpg�dkS(Ni(R�R:R=(RX((s$/sys/lib/python2.7/distutils/dist.pythas_pure_modules�scCs|jot|j�dkS(Ni(R@R�(RX((s$/sys/lib/python2.7/distutils/dist.pythas_ext_modules�scCs|jot|j�dkS(Ni(R>R�(RX((s$/sys/lib/python2.7/distutils/dist.pythas_c_libraries�scCs|j�p|j�S(N(RR(RX((s$/sys/lib/python2.7/distutils/dist.pythas_modules�scCs|jot|j�dkS(Ni(R?R�(RX((s$/sys/lib/python2.7/distutils/dist.pythas_headers�scCs|jot|j�dkS(Ni(RDR�(RX((s$/sys/lib/python2.7/distutils/dist.pythas_scripts�scCs|jot|j�dkS(Ni(RER�(RX((s$/sys/lib/python2.7/distutils/dist.pythas_data_files�scCs$|j�o#|j�o#|j�S(N(RRR(RX((s$/sys/lib/python2.7/distutils/dist.pytis_pure�s
(sverboseRsrun verbosely (default)i(squietRs!run quietly (turns verbosity off)(sdry-runRsdon't actually do anything(shelpRsshow detailed help messageN(sno-user-cfgNs-ignore pydistutils.cfg in your home directory(s
help-commandsNslist all available commands(snameNsprint package name(sversionRsprint package version(sfullnameNsprint <package name>-<version>(sauthorNsprint the author's name(sauthor-emailNs print the author's email address(s
maintainerNsprint the maintainer's name(smaintainer-emailNs$print the maintainer's email address(RNs7print the maintainer's name if known, else the author's(s
contact-emailNs@print the maintainer's email address if known, else the author's(surlNsprint the URL for this package(slicenseNs print the license of the package(slicenceNsalias for --license(sdescriptionNsprint the package description(slong-descriptionNs"print the long package description(s platformsNsprint the list of platforms(sclassifiersNsprint the list of classifiers(skeywordsNsprint the list of keywords(sprovidesNs+print the list of packages/modules provided(srequiresNs+print the list of packages/modules required(s obsoletesNs0print the list of packages/modules made obsolete(*R�t
__module__t__doc__R4R�R�R�R�R-R�ReRKRsR�R�R�R�R�RWR�R�R�R�R�R�R�R�R�R�R
tINFORkR�R�RRRRRRRR(((s$/sys/lib/python2.7/distutils/dist.pyR"s�
� 0. C ]
1 ( ! # '+)
R/cBs+eZdZd3Zd4d�Zd�Zd�Zd�Zd�Z d�Z
d�Zd�Zd�Z
d�Zd�Zd �Zd!�Zd"�Zd#�Zd$�Zd%�Zd&�ZeZd'�Zd(�Zd)�Zd*�Zd+�Zd,�Zd-�Zd.�Zd/�Z d0�Z!d1�Z"d2�Z#RS(5s]Dummy class to hold the distribution meta-data: name, version,
author, and so forth.
RRRtauthor_emailRtmaintainer_emailRRRtlong_descriptionR!RRRt
contact_emailR tdownload_urlR"R#R$cCs�|dk r"|jt|��n�d|_d|_d|_d|_d|_d|_d|_ d|_
d|_d|_d|_
d|_d|_d|_d|_d|_d|_dS(N(R4t
read_pkg_filetopenRRRRRRRRRR
R!RR RR"R#R$(RXRx((s$/sys/lib/python2.7/distutils/dist.pyRes& cs�t|���fd�}�fd�}�d}|d�|_|d�|_|d�|_|d�|_d|_|d�|_d|_|d �|_ |d
�|_
d�kr�|d�|_n d|_|d�|_|d�|_d
�kr|d
�j
d�|_n|d�|_|d�|_|dkru|d�|_|d�|_|d�|_nd|_d|_d|_dS(s-Reads the metadata values from a file object.cs�|}|dkrdS|S(NtUNKNOWN(R4(RR�(Rb(s$/sys/lib/python2.7/distutils/dist.pyt_read_fields
cs&�j|d�}|gkr"dS|S(N(tget_allR4(Rtvalues(Rb(s$/sys/lib/python2.7/distutils/dist.pyt
_read_list#ssmetadata-versionRRtsummaryRsauthor-emails home-pageRsdownload-urlRR!R�tplatformt
classifiers1.1R#R"R$N(RRRRRR4RRRRRRR
RlR!RR R#R"R$(RXtfileRRtmetadata_version((Rbs$/sys/lib/python2.7/distutils/dist.pyRs:
cCsAttjj|d�d�}z|j|�Wd|j�XdS(s7Write the PKG-INFO file into the release tree.
sPKG-INFOtwN(RRwRxR|twrite_pkg_filetclose(RXtbase_dirtpkg_info((s$/sys/lib/python2.7/distutils/dist.pytwrite_pkg_infoMscCs�d}|js3|js3|js3|js3|jr<d}n|j|d|�|j|d|j��|j|d|j��|j|d|j��|j|d|j ��|j|d|j
��|j|d |j��|j|d
|j��|jr |j|d|j�nt
|j��}|j|d|�d
j|j��}|rv|j|d|�n|j|d|j��|j|d|j��|j|d|j��|j|d|j��|j|d|j��dS(s9Write the PKG-INFO format data to a file object.
s1.0s1.1sMetadata-VersiontNametVersiontSummarys Home-pagetAuthorsAuthor-emailtLicensesDownload-URLtDescriptionR�tKeywordstPlatformt
ClassifiertRequirestProvidest ObsoletesN(R"R#R$R Rt_write_fieldtget_nametget_versiontget_descriptiontget_urltget_contacttget_contact_emailtget_licenseR tget_long_descriptionR|tget_keywordst_write_listt
get_platformstget_classifierstget_requirestget_providest
get_obsoletes(RXRRt long_descR!((s$/sys/lib/python2.7/distutils/dist.pyRVs0 cCs$|jd||j|�f�dS(Ns%s: %s
(RPt
_encode_field(RXRRR�((s$/sys/lib/python2.7/distutils/dist.pyR.xscCs(x!|D]}|j|||�qWdS(N(R.(RXRRRR�((s$/sys/lib/python2.7/distutils/dist.pyR8{s
cCs6|dkrdSt|t�r,|jt�St|�S(N(R4R�tunicodetencodetPKG_INFO_ENCODINGR�(RXR�((s$/sys/lib/python2.7/distutils/dist.pyR?s
cCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pyR/�scCs
|jpdS(Ns0.0.0(R(RX((s$/sys/lib/python2.7/distutils/dist.pyR0�scCsd|j�|j�fS(Ns%s-%s(R/R0(RX((s$/sys/lib/python2.7/distutils/dist.pytget_fullname�scCs|j|j�pdS(NR(R?R(RX((s$/sys/lib/python2.7/distutils/dist.pyt
get_author�scCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pytget_author_email�scCs|j|j�pdS(NR(R?R(RX((s$/sys/lib/python2.7/distutils/dist.pytget_maintainer�scCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pytget_maintainer_email�scCs(|j|j�p'|j|j�p'dS(NR(R?RR(RX((s$/sys/lib/python2.7/distutils/dist.pyR3�scCs|jp|jpdS(NR(RR(RX((s$/sys/lib/python2.7/distutils/dist.pyR4�scCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pyR2�scCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pyR5�scCs|j|j�pdS(NR(R?R(RX((s$/sys/lib/python2.7/distutils/dist.pyR1�scCs|j|j�pdS(NR(R?R
(RX((s$/sys/lib/python2.7/distutils/dist.pyR6�scCs
|jpgS(N(R!(RX((s$/sys/lib/python2.7/distutils/dist.pyR7�scCs|jpdgS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pyR9�scCs
|jpgS(N(R (RX((s$/sys/lib/python2.7/distutils/dist.pyR:�scCs
|jpdS(NR(R(RX((s$/sys/lib/python2.7/distutils/dist.pytget_download_url�scCs
|jpgS(N(R#(RX((s$/sys/lib/python2.7/distutils/dist.pyR;�scCs:ddl}x|D]}|jj|�qW||_dS(Ni�(tdistutils.versionpredicatetversionpredicatetVersionPredicateR#(RXR�RtR((s$/sys/lib/python2.7/distutils/dist.pytset_requires�s
cCs
|jpgS(N(R"(RX((s$/sys/lib/python2.7/distutils/dist.pyR<�scCsYg|D]}|j�^q}x*|D]"}ddl}|jj|�q&W||_dS(Ni�(R�RIRJtsplit_provisionR"(RXR�RRt((s$/sys/lib/python2.7/distutils/dist.pytset_provides�s
cCs
|jpgS(N(R$(RX((s$/sys/lib/python2.7/distutils/dist.pyR=�scCs:ddl}x|D]}|jj|�qW||_dS(Ni�(RIRJRKR$(RXR�RtR((s$/sys/lib/python2.7/distutils/dist.pyt
set_obsoletes�s
(snamesversionsauthorsauthor_emails
maintainersmaintainer_emailsurlslicensesdescriptionslong_descriptionskeywordss platformssfullnamescontactRslicensesclassifierssdownload_urlsprovidessrequiress obsoletesN($R�RR R1R4ReRR!RR.R8R?R/R0RCRDRERFRGR3R4R2R5tget_licenceR1R6R7R9R:RHR;RLR<RNR=RO(((s$/sys/lib/python2.7/distutils/dist.pyR/�sN 4 " cCs/g}x"|D]}|j|dd!�q
W|S(sConvert a 4-tuple 'help_options' list as found in various command
classes to the 3-tuple form required by FancyGetopt.
ii(R~(R)tnew_optionst
help_tuple((s$/sys/lib/python2.7/distutils/dist.pyR��s
( R t__revision__RNRwtretemailRRLR�R4tdistutils.errorsRRRRtdistutils.fancy_getoptRRtdistutils.utilRRR RtR
tdistutils.debugRRBtcompileR�RR/R�(((s$/sys/lib/python2.7/distutils/dist.pyt<module>s($
"��
|