Plan 9 from Bell Labs’s /usr/web/sources/contrib/bichued/root/sys/lib/python/distutils/dist.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�
��c@s?dZdZddkZddkZddkZddkZddkTddklZyddkZWne	j
o
e
ZnXddkTddkl
Z
lZddklZlZlZddklZdd	klZeid
�Zdfd��YZd
fd��YZd�Zedjoe�ZdGHndS(s}distutils.dist

Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
s0$Id: dist.py 38697 2005-03-23 18:54:36Z loewis $i�N(t*(tcopy(tFancyGetoptttranslate_longopt(t
check_environt	strtoboolt
rfc822_escape(tlog(tDEBUGs^[a-zA-Z]([a-zA-Z0-9_]*)$tDistributioncBs�eZdZd[d\d]d^gZdZd`dadbdcdddedfdgdhdidjdkdldmdndodpdqdrdsdtgZed:�e�Zhdd<Z	d_d;�Z
d<�Zd_d_d=d>�Zd?�Z
d_d@�ZdA�ZdB�ZdC�ZdD�ZddgdE�ZdF�ZdG�ZdH�ZdI�ZdJ�ZdK�ZddL�Zd_dM�ZdNdO�ZddP�ZdQ�ZdR�ZdS�Z dT�Z!dU�Z"dV�Z#dW�Z$dX�Z%dY�Z&dZ�Z'RS(us�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 messages�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(i(R(tx((s!/sys/lib/python/distutils/dist.pyt<lambda>tsc
Csd|_d|_d|_x!|iD]}t||d�q%Wt�|_x:|iiD],}d|}t||t|i|��qXWh|_	d|_d|_d|_
h|_g|_d|_h|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_h|_h|_|o�|id�}|od|d=xZ|i�D]H\}}|i |�}x*|i�D]\}	}
d|
f||	<q�WqmWn|i!d�oQ|d|d<|d=d}t"dj	ot"i#|�qt$i%i&|d	�nx�i�D]�\}}
t'|id
|�ot|id
|�|
�q+t'|i|�ot|i||
�q+t'||�ot|||
�q+dt(|�}t"dj	ot"i#|�q+t$i%i&|d	�q+Wn|i)�dS(
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_toptionsssetup scriptRRs:'licence' distribution option is deprecated; use 'license's
tset_sUnknown distribution option: %sN(*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_filestcommand_objthave_runtgettitemstget_option_dictthas_keytwarningstwarntsyststderrtwritethasattrtreprtfinalize_options(
tselftattrstattrtbasenametmethod_nameR%tcommandtcmd_optionstopt_dicttopttvaltmsgtkey((s!/sys/lib/python/distutils/dist.pyt__init__}sz			


 																				




cCs8|ii|�}|djoh}|i|<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(R3RCR/(RORTtdict((s!/sys/lib/python/distutils/dist.pyREs
tc	Cs�ddkl}|djo|ii�}|i�n|dj	o||GH|d}n|p|dGHdSnx�|D]y}|ii|�}|djo|d|GHq}|d|GH||�}x'ti|d�D]}|d|GHq�Wq}WdS(Ni�(tpformats  sno commands known yetsno option dict for '%s' commandsoption dict for '%s' command:s
(	tpprintR^R/R3tkeystsortRCtstringtsplit(	ROtheadertcommandstindentR^tcmd_nameRVtouttline((s!/sys/lib/python/distutils/dist.pytdump_option_dictss(

		

cCsg}t�tiitidi�}tii|d�}tii|�o|i	|�nti
djo
d}nd}tiid�oItiitii
d�|�}tii|�o|i	|�q�nd}tii|�o|i	|�n|S(sXFind 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.
        t	distutilss
distutils.cfgtposixs.pydistutils.cfgspydistutils.cfgtHOMEs	setup.cfg(RtostpathtdirnameRItmodulest__file__tjointisfiletappendRtenvironRFRC(ROtfilestsys_dirtsys_filet
user_filenamet	user_filet
local_file((s!/sys/lib/python/distutils/dist.pytfind_config_files<s"
!c
Cs�ddkl}|djo|i�}nto	dGHn|�}x�|D]�}to
dG|GHn|i|�x�|i�D]}}|i|�}|i|�}xV|D]N}|djo;|i||�}	t	i
|dd�}||	f||<q�q�Wq�W|i�qMW|ii
d�o�x�|idi�D]�\}\}
}	|ii|�}y]|ot||t|	��n8|djot||t|	��nt|||	�Wq7tj
o}t|�q7Xq7WndS(Ni�(tConfigParsers"Distribution.parse_config_files():s	  readingt__name__t-t_tglobalR
R'(sverbosesdry_run(R~R/R}RtreadtsectionsR%RERCRbtreplaceR[R3RFRDtnegative_optR)Rt
ValueErrortDistutilsOptionError(
ROt	filenamesR~tparsertfilenametsectionR%RVRWRXtsrctaliasRY((s!/sys/lib/python/distutils/dist.pytparse_config_filesis@
	



cCss|i�}tidjo8ddk}|i�}|i||i|�|_ng|_t	||i�}|i
|i�|ihdd<�|i
d|id|�}|i�}ti|i�|i|�odSnx3|o+|i||�}|djodSq�q�W|io3|i|dt|i�d	jd
|i�dSn|ip
td�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).
        tmaci�NRRtargstobjecttdisplay_optionsiResno commands suppliedi(t_get_toplevel_optionsRItplatformtEasyDialogstget_command_listtGetArgvR�R2ReRtset_negative_aliasesR�tset_aliasestgetopttget_option_orderRt
set_verbosityR
thandle_display_optionst_parse_command_optsR/Rt
_show_helptlentDistutilsArgError(ROttoplevel_optionsR�tcmdlistR�R�toption_order((s!/sys/lib/python/distutils/dist.pytparse_command_line�s6		






cCs|idgS(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_optionsR/(RO((s!/sys/lib/python/distutils/dist.pyR��scCs�ddkl}|d}ti|�ptd|�n|ii|�y|i|�}Wntj
o}t	|�nXt
||�ptd|�nt|d�ot
|i�tjptdd|�n|i}t|d	�o t|�}|i|i�nt|d
�o)t
|i�tjot|i�}ng}|i|i|i|�|i|�|i|d�\}}	t|	d�o.|	io$|i|d
dd|g�dSnt|d
�o�t
|i�tjo�d}
xn|iD]c\}}}
}t|	|i|��o8d}
t|�o|�qktd||f��qqW|
odSq�n|i|�}x0t|	�i�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�ReNsYinvalid help function %r for help option '%s': must be a callable object (function, etc.)scommand line( t
distutils.cmdR�t
command_retmatcht
SystemExitReRutget_command_classtDistutilsModuleErrorR�t
issubclasstDistutilsClassErrorRLttypeR�tListTypeR�RtupdateR�tfix_help_optionstset_option_tableR�R�R�RR�t
get_attr_nametcallableREtvarsRD(ROR�R�R�RTt	cmd_classRYR�R�toptsthelp_option_foundthelp_optiontshorttdesctfuncRVRtvalue((s!/sys/lib/python/distutils/dist.pyR��sj

	



cCs�|ii}|dj	oEt|�tjo.ti|d�}tti|�|i_q^n|ii	}|dj	oEt|�tjo.ti|d�}tti|�|i_	q�ndS(s�Set final values for all the options on the Distribution
        instance, analogous to the .finalize_options() method of Command
        objects.
        t,N(
R+RR/R�t
StringTypeRbRctmaptstripR(RORtkeywordlistRtplatformlist((s!/sys/lib/python/distutils/dist.pyRNQs
 
c
Cshddkl}ddkl}|oF|o|i�}n
|i}|i|�|i|id�Hn|o&|i|i	�|idd�Hnx�|i
D]�}t|�tjot
||�o
|}	n|i|�}	t|	d�o7t|	i�tjo!|i|	it|	i��n|i|	i�|id|	i�Hq�W||i�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: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�ReR�t	ClassTypeR�R�RLR�R�R�R�RR1(
ROR�R�R�ReR�R�R%RTtklass((s!/sys/lib/python/distutils/dist.pyR�cs:	

#
c		Csddkl}|io!|i�H||i�GHdSnd}h}x|iD]}d||d<qQWx�|D]�\}}|o�|i|�oxt|�}t|i	d|��}|djot
i|d�GHn(|djot
i|d
�GHn|GHd}qpqpW|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�iiR$RRR�RRR R!s
(skeywordss	platforms(sclassifierssprovidessrequiress	obsoletes(R�R�t
help_commandstprint_commandsR1R�RCRR-R+RbRs(	ROR�R�tany_display_optionstis_display_optiontoptionRWRXR�((s!/sys/lib/python/distutils/dist.pyR��s0




cCs�|dGHxu|D]m}|ii|�}|p|i|�}ny
|i}Wntj
o
d}nXd|||fGHqWdS(sZPrint a subset of the list of all commands -- used by
        'print_commands()'.
        t:s(no description available)s
  %-*s  %sN(R.RCR�RtAttributeError(ROReRdt
max_lengthtcmdR�R((s!/sys/lib/python/distutils/dist.pytprint_command_list�s	
cCs�ddk}|ii}h}x|D]}d||<q%Wg}x8|ii�D]'}|i|�p|i|�qOqOWd}x5||D])}t|�|jot|�}q�q�W|i|d|�|oH|i|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.commandRTt__all__R.R`RCRuR�R�(RORktstd_commandstis_stdR�textra_commandsR�((s!/sys/lib/python/distutils/dist.pyR��s0			c	Csddk}|ii}h}x|D]}d||<q%Wg}x8|ii�D]'}|i|�p|i|�qOqOWg}xz||D]n}|ii|�}|p|i|�}ny
|i}Wnt	j
o
d}nX|i||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�RTR�R.R`RCRuR�RR�(	RORkR�R�R�R�trvR�R((s!/sys/lib/python/distutils/dist.pyR��s.

cCs�|i}t|tg��p�ti|pdd�}x1tt|��D]}ti||�||<qKWtd|�}d|jo|i
dd�n||_n|S(s9Return a list of packages from which commands are loaded.R]R�sdistutils.commandiN(R0t
isinstanceR�RbRctrangeR�R�tfilterR/tinsert(ROtpkgsti((s!/sys/lib/python/distutils/dist.pytget_command_packages"s	

c
Cs�|ii|�}|o|Snx�|i�D]�}d||f}|}yt|�ti|}Wntj
o
q.nXyt||�}Wn)tj
ot	d|||f�nX||i|<|Sq.Wt	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(
R.RCR�t
__import__RIRqtImportErrorR-R�R�(RORTR�tpkgnametmodule_namet
klass_nametmodule((s!/sys/lib/python/distutils/dist.pyR�/s*


cCs�|ii|�}|o|oxto
d|GHn|i|�}||�}|i|<d|i|<|ii|�}|o|i||�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(RARCRR�RBR3t_set_command_options(RORTtcreatetcmd_objR�R%((s!/sys/lib/python/distutils/dist.pytget_command_objXs

cCs�|i�}|djo|i|�}nto
d|GHnxm|i�D]_\}\}}tod|||fGHnytt|i�}Wntj
o
g}nXy
|i	}Wntj
o
h}nXy�t
|�tj}	|i|�o&|	ot
|||t|��ni||jo!|	ot
||t|��n;t||�ot
|||�ntd|||f�WqMtj
o}
t|
�qMXqMWdS(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_nameR/RERRDR�Rtboolean_optionsR�R�R�R�RFR)RRLR�R�(RORAtoption_dicttcommand_nameR�tsourceR�t	bool_optstneg_optt	is_stringRY((s!/sys/lib/python/distutils/dist.pyR�ss8	


icCs�ddkl}t||�p|}|i|�}n
|i�}|ip|Sn|i�d|_d|i|<|i|�|o+x(|i	�D]}|i
||�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_optionsRBR�tget_sub_commandstreinitialize_command(RORTtreinit_subcommandsR�R�tsub((s!/sys/lib/python/distutils/dist.pyR��s 

	


cCsti|�dS(N(Rtdebug(RORYtlevel((s!/sys/lib/python/distutils/dist.pytannounce�scCs%x|iD]}|i|�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(Retrun_command(ROR�((s!/sys/lib/python/distutils/dist.pytrun_commands�s
cCs_|ii|�odSntid|�|i|�}|i�|i�d|i|<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(RBRCRtinfoR�tensure_finalizedtrun(RORTR�((s!/sys/lib/python/distutils/dist.pyR�s	

cCs$t|ip|ipg�djS(Ni(R�R5R8(RO((s!/sys/lib/python/distutils/dist.pythas_pure_modules�scCs|iot|i�djS(Ni(R;R�(RO((s!/sys/lib/python/distutils/dist.pythas_ext_modules�scCs|iot|i�djS(Ni(R9R�(RO((s!/sys/lib/python/distutils/dist.pythas_c_libraries�scCs|i�p
|i�S(N(RR(RO((s!/sys/lib/python/distutils/dist.pythas_modules�scCs|iot|i�djS(Ni(R:R�(RO((s!/sys/lib/python/distutils/dist.pythas_headers�scCs|iot|i�djS(Ni(R?R�(RO((s!/sys/lib/python/distutils/dist.pythas_scripts�scCs|iot|i�djS(Ni(R@R�(RO((s!/sys/lib/python/distutils/dist.pythas_data_files�scCs&|i�o|i�o|i�S(N(RRR(RO((s!/sys/lib/python/distutils/dist.pytis_pure�s
(sverboseRsrun verbosely (default)i(RR
s!run quietly (turns verbosity off)(sdry-runRsdon't actually do anything(shelpRsshow detailed help messageN(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((Rt
__module__t__doc__R�R�R/R�R�R(R�R[RERjR}R�R�R�R�RNR�R�R�R�R�R�R�R�R�R�RRRRRRR	R
RRR
(((s!/sys/lib/python/distutils/dist.pyR	!s�	
			�
	-0	K		b	5	*		$	#	
	)(*									R*cBs
eZdZd0Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd �Zd!�Zd"�Zd#�ZeZd$�Zd%�Zd&�Zd'�Zd(�Zd)�Zd*�Zd+�Zd,�Zd-�Zd.�Zd/�ZRS(1s]Dummy class to hold the distribution meta-data: name, version,
    author, and so forth.
    RRRtauthor_emailRtmaintainer_emailRRRtlong_descriptionRRRRt
contact_emailRtdownload_urlRR R!cCs�d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_dS(N(R/RRRRRRRRRRRRRRRR R!(RO((s!/sys/lib/python/distutils/dist.pyR[s"																cCs9ttii|d�d�}|i|�|i�dS(s7Write the PKG-INFO file into the release tree.
        sPKG-INFOtwN(topenRnRoRstwrite_pkg_filetclose(ROtbase_dirtpkg_info((s!/sys/lib/python/distutils/dist.pytwrite_pkg_info/s
cCs�d}|ip|ip
|io
d}n|id|�|id|i��|id|i��|id|i��|id|i��|id|i��|id	|i	��|id
|i
��|io|id|i�nt|i
��}|id|�ti|i�d
�}|o|id|�n|i|d|i��|i|d|i��|i|d|i��|i|d|i��|i|d|i��dS(s9Write the PKG-INFO format data to a file object.
        s1.0s1.1sMetadata-Version: %s
s	Name: %s
sVersion: %s
sSummary: %s
sHome-page: %s
sAuthor: %s
sAuthor-email: %s
sLicense: %s
sDownload-URL: %s
sDescription: %s
R�s
Keywords: %s
tPlatformt
ClassifiertRequirestProvidest	ObsoletesN(RR R!RKtget_nametget_versiontget_descriptiontget_urltget_contacttget_contact_emailtget_licenseRRtget_long_descriptionRbRstget_keywordst_write_listt
get_platformstget_classifierstget_requirestget_providest
get_obsoletes(ROtfileRt	long_descR((s!/sys/lib/python/distutils/dist.pyR:s.

cCs,x%|D]}|id||f�qWdS(Ns%s: %s
(RK(ROR0RtvaluesR�((s!/sys/lib/python/distutils/dist.pyR*[scCs|ipdS(NtUNKNOWN(R(RO((s!/sys/lib/python/distutils/dist.pyR!ascCs|ipdS(Ns0.0.0(R(RO((s!/sys/lib/python/distutils/dist.pyR"dscCsd|i�|i�fS(Ns%s-%s(R!R"(RO((s!/sys/lib/python/distutils/dist.pytget_fullnamegscCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyt
get_authorjscCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pytget_author_emailmscCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pytget_maintainerpscCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pytget_maintainer_emailsscCs|ip|ipdS(NR3(RR(RO((s!/sys/lib/python/distutils/dist.pyR%vs

cCs|ip|ipdS(NR3(RR(RO((s!/sys/lib/python/distutils/dist.pyR&{s

cCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyR$�scCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyR'�scCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyR#�scCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyR(�scCs|ipgS(N(R(RO((s!/sys/lib/python/distutils/dist.pyR)�scCs|ipdgS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pyR+�scCs|ipgS(N(R(RO((s!/sys/lib/python/distutils/dist.pyR,�scCs|ipdS(NR3(R(RO((s!/sys/lib/python/distutils/dist.pytget_download_url�scCs|ipgS(N(R (RO((s!/sys/lib/python/distutils/dist.pyR-�scCs:ddk}x|D]}|ii|�qW||_dS(Ni�(tdistutils.versionpredicatetversionpredicatetVersionPredicateR (ROR�RkR((s!/sys/lib/python/distutils/dist.pytset_requires�s
cCs|ipgS(N(R(RO((s!/sys/lib/python/distutils/dist.pyR.�scCsag}|D]}||i�q~}x*|D]"}ddk}|ii|�q.W||_dS(Ni�(R�R:R;tsplit_provisionR(ROR�t_[1]RRk((s!/sys/lib/python/distutils/dist.pytset_provides�s'cCs|ipgS(N(R!(RO((s!/sys/lib/python/distutils/dist.pyR/�scCs:ddk}x|D]}|ii|�qW||_dS(Ni�(R:R;R<R!(ROR�RkR((s!/sys/lib/python/distutils/dist.pyt
set_obsoletes�s
(snamesversionsauthorsauthor_emails
maintainersmaintainer_emailsurlslicensesdescriptionslong_descriptionskeywordss	platformssfullnamescontactRslicensesclassifierssdownload_urlsprovidessrequiress	obsoletes( RRRR,R[RRR*R!R"R4R5R6R7R8R%R&R$R'tget_licenceR#R(R)R+R,R9R-R=R.R@R/RA(((s!/sys/lib/python/distutils/dist.pyR*sH			!																							cCs/g}x"|D]}|i|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(Ru(R%tnew_optionst
help_tuple((s!/sys/lib/python/distutils/dist.pyR��s
t__main__tok(Rt__revision__RIRnRbtrettypesRRGR�R/tdistutils.errorstdistutils.fancy_getoptRRtdistutils.utilRRRRkRtdistutils.debugRtcompileR�R	R*R�Rtdist(((s!/sys/lib/python/distutils/dist.pys<module>s.0

���

	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.