ok

Mini Shell

Direktori : /proc/self/root/lib64/python2.7/distutils/
Upload File :
Current File : //proc/self/root/lib64/python2.7/distutils/dist.pyc

�
`цdc@s&dZdZddlZddlZddlZddlmZyddlZWnek
rie	ZnXddl
mZmZm
Z
mZddlmZmZddlmZmZmZddlmZdd	lmZd
Zejd�Zdfd
��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_]*)$tDistributioncBs�eZdZd]d^d_d`dbgZdZdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwgZed<�e�Zidd6Z	dad=�Z
d>�Zdadad?d@�ZdA�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 namesauthor-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&/usr/lib64/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	rt"j#|�q#t$j%j&|d
�nx�|j �D]�\}}
t'|jd|�rot|jd|�|
�q0t'|j|�r�t|j||
�q0t'||�r�t|||
�q0dt(|�}t"dk	r�t"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_ttoptionsssetup 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_filestpackagestpackage_datatpackage_dirt
py_modulest	librariestheaderstext_modulestext_packagetinclude_dirst
extra_pathtscriptst
data_filestpasswordtcommand_objthave_runtgettitemstget_option_dicttwarningstwarntsyststderrtwritethasattrtreprtTruet
want_user_cfgt
startswithtFalsetfinalize_options(tselftattrstattrtbasenametmethod_nameR)tcommandtcmd_optionstopt_dicttopttvaltmsgtkeytarg((s&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pyRK!sR(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�Wq�WdS(Ni����(tpformats  sno commands known yetsno option dict for '%s' commandsoption dict for '%s' command:s
(	tpprintRgR4R8tkeystsorttannounceRItsplit(	RXtheadertcommandstindentRgtcmd_nameR_touttline((s&/usr/lib64/python2.7/distutils/dist.pytdump_option_dicts,s(


		cCsg}t�tjjtjdj�}tjj|d�}tjj|�r`|j	|�ntj
dkrxd}nd}|jr�tjjtjjd�|�}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&/usr/lib64/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|jkr�x�|jdj
�D]�\}\}
}	|jj	|�}yY|rt||t|	��n5|dkr�t||t|	��nt|||	�Wq8tk
r�}t|�q8Xq8WndS(Ni����(tConfigParsers"Distribution.parse_config_files():s  reading %st__name__R+t_tglobalR
R,(sverbosesdry_run(R�R4R�RRktreadtsectionsR)RKRItreplaceReR8RJtnegative_optR.Rt
ValueErrorR(
RXt	filenamesR�tparsertfilenametsectionR)R_R`RatsrctaliasRb((s&/usr/lib64/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�toption_order((s&/usr/lib64/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&/usr/lib64/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�d}
t|d�r2|�qKtd||f��q�q�W|
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 Commandtuser_optionsscommand class %s must provide s+'user_options' attribute (a list of tuples)R�thelp_optionsiRR�RnNt__call__sYinvalid help function %r for help option '%s': must be a callable object (function, etc.)scommand 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&/usr/lib64/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&/usr/lib64/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_helptcommon_usageR�RnR�ttypeR�R�RQR�R�R�R�R�R6(
RXR�R�R�RnR�R�R)R]tklass((s&/usr/lib64/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�dj
|�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&/usr/lib64/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&/usr/lib64/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�H|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�(RXRttstd_commandstis_stdR�textra_commandsR�((s&/usr/lib64/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&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pytget_command_packagess		4cCs�|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&/usr/lib64/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&/usr/lib64/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_dicttcommand_nameR�tsourceR�t	bool_optstneg_optt	is_stringRb((s&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pyR��s	
	

cCstj||�dS(N(R
(RXRbtlevel((s&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pytrun_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&/usr/lib64/python2.7/distutils/dist.pyR��s	

cCs"t|jp|jpg�dkS(Ni(R�R:R=(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_pure_modules�scCs|jot|j�dkS(Ni(R@R�(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_ext_modules�scCs|jot|j�dkS(Ni(R>R�(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_c_libraries�scCs|j�p|j�S(N(RR(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_modules�scCs|jot|j�dkS(Ni(R?R�(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_headers�scCs|jot|j�dkS(Ni(RDR�(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_scripts�scCs|jot|j�dkS(Ni(RER�(RX((s&/usr/lib64/python2.7/distutils/dist.pythas_data_files�scCs$|j�o#|j�o#|j�S(N(RRR(RX((s&/usr/lib64/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(sauthor-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&/usr/lib64/python2.7/distutils/dist.pyR"s�	
			
�		0.	C		]	
1	(		!	#		'+)	
								R/cBs+eZdZd3Zd4d�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�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.
    RRRtauthor_emailRtmaintainer_emailRRRtlong_descriptionR!RRRt
contact_emailR tdownload_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_filetopenRRRRRRRRRR
R!RR RR"R#R$(RXRx((s&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pyt_read_fields
cs&�j|d�}|gkr"dS|S(N(tget_allR4(Rtvalues(Rb(s&/usr/lib64/python2.7/distutils/dist.pyt
_read_list#ssmetadata-versionRRtsummaryRsauthor-emails	home-pageRsdownload-urlRR!R�tplatformt
classifiers1.1R#R"R$N(RRRRRR4RRRRRRR
RlR!RR R#R"R$(RXtfileRRtmetadata_version((Rbs&/usr/lib64/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&/usr/lib64/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-pagetAuthorsAuthor-emailtLicensesDownload-URLtDescriptionR�tKeywordstPlatformt
ClassifiertRequirestProvidest	ObsoletesN(R"R#R$R Rt_write_fieldtget_nametget_versiontget_descriptiontget_urltget_contacttget_contact_emailtget_licenseR	tget_long_descriptionR|tget_keywordst_write_listt
get_platformstget_classifierstget_requirestget_providest
get_obsoletes(RXRRt	long_descR!((s&/usr/lib64/python2.7/distutils/dist.pyRVs0		cCs$|jd||j|�f�dS(Ns%s: %s
(RPt
_encode_field(RXRRR�((s&/usr/lib64/python2.7/distutils/dist.pyR.xscCs(x!|D]}|j|||�qWdS(N(R.(RXRRRR�((s&/usr/lib64/python2.7/distutils/dist.pyR8{s
cCs6|dkrdSt|t�r,|jt�St|�S(N(R4R�tunicodetencodetPKG_INFO_ENCODINGR�(RXR�((s&/usr/lib64/python2.7/distutils/dist.pyR?s

cCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR/�scCs
|jpdS(Ns0.0.0(R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR0�scCsd|j�|j�fS(Ns%s-%s(R/R0(RX((s&/usr/lib64/python2.7/distutils/dist.pytget_fullname�scCs|j|j�pdS(NR(R?R(RX((s&/usr/lib64/python2.7/distutils/dist.pyt
get_author�scCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pytget_author_email�scCs|j|j�pdS(NR(R?R(RX((s&/usr/lib64/python2.7/distutils/dist.pytget_maintainer�scCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pytget_maintainer_email�scCs(|j|j�p'|j|j�p'dS(NR(R?RR(RX((s&/usr/lib64/python2.7/distutils/dist.pyR3�scCs|jp|jpdS(NR(RR(RX((s&/usr/lib64/python2.7/distutils/dist.pyR4�scCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR2�scCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR5�scCs|j|j�pdS(NR(R?R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR1�scCs|j|j�pdS(NR(R?R
(RX((s&/usr/lib64/python2.7/distutils/dist.pyR6�scCs
|jpgS(N(R!(RX((s&/usr/lib64/python2.7/distutils/dist.pyR7�scCs|jpdgS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pyR9�scCs
|jpgS(N(R (RX((s&/usr/lib64/python2.7/distutils/dist.pyR:�scCs
|jpdS(NR(R(RX((s&/usr/lib64/python2.7/distutils/dist.pytget_download_url�scCs
|jpgS(N(R#(RX((s&/usr/lib64/python2.7/distutils/dist.pyR;�scCs:ddl}x|D]}|jj|�qW||_dS(Ni����(tdistutils.versionpredicatetversionpredicatetVersionPredicateR#(RXR�RtR((s&/usr/lib64/python2.7/distutils/dist.pytset_requires�s
cCs
|jpgS(N(R"(RX((s&/usr/lib64/python2.7/distutils/dist.pyR<�scCsYg|D]}|j�^q}x*|D]"}ddl}|jj|�q&W||_dS(Ni����(R�RIRJtsplit_provisionR"(RXR�RRt((s&/usr/lib64/python2.7/distutils/dist.pytset_provides�s

cCs
|jpgS(N(R$(RX((s&/usr/lib64/python2.7/distutils/dist.pyR=�scCs:ddl}x|D]}|jj|�qW||_dS(Ni����(RIRJRKR$(RXR�RtR((s&/usr/lib64/python2.7/distutils/dist.pyt
set_obsoletes�s
(snamesversionsauthorsauthor_emails
maintainersmaintainer_emailsurlslicensesdescriptionslong_descriptionskeywordss	platformssfullnamescontactRslicensesclassifierssdownload_urlsprovidessrequiress	obsoletesN($R�RR	R1R4ReRR!RR.R8R?R/R0RCRDRERFRGR3R4R2R5tget_licenceR1R6R7R9R:RHR;RLR<RNR=RO(((s&/usr/lib64/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&/usr/lib64/python2.7/distutils/dist.pyR��s
( R	t__revision__RNRwtretemailRRLR�R4tdistutils.errorsRRRRtdistutils.fancy_getoptRRtdistutils.utilRRR	RtR
tdistutils.debugRRBtcompileR�RR/R�(((s&/usr/lib64/python2.7/distutils/dist.pyt<module>s($

"�����

Zerion Mini Shell 1.0