选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
U e5dÑÄã@sÌdZddlZddlZddlZddlmZz ddlZWnek rLdZYnXddlTddl m Z m Z ddl m Z mZmZddlmZddlmZe d ¡Zd d „ZGd d „d ƒZGdd„dƒZdd„ZdS)z}distutils.dist Provides the Distribution class, which represents the module distribution being built/installed/distributed. éN)Úmessage_from_file)Ú*)Ú FancyGetoptÚtranslate_longopt)Ú check_environÚ strtoboolÚ rfc822_escape©Úlog)ÚDEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$cCsLt|tƒr nd?„Zd@dA„ZdBdC„ZdddDdE„ZdedFdG„ZdfdIdJ„ZejfdKdL„ZdMdN„ZdOdP„Z dQdR„Z!dSdT„Z"dUdV„Z#dWdX„Z$dYdZ„Z%d[d\„Z&d]d^„Z'd_d`„Z(d!S)gÚ Distributiona½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. )ÚverboseÚvzrun verbosely (default)é)ÚquietÚqz!run quietly (turns verbosity off))zdry-runÚnzdon't actually do anything)ÚhelpÚhzshow detailed help message)z no-user-cfgNz-ignore pydistutils.cfg in your home directoryz£Common 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)ÚversionÚVzprint package version)ÚfullnameNzprint -)Ú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|dƒ‘qS)r©r)Ú.0ÚxrrrÚ �szDistribution.rrNcCs\d|_d|_d|_|jD]}t||dƒqtƒ|_|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|| <�q�qd|k�r~|d|d <|d=d } t!dk �rnt! "| ¡nt#j$ %| d ¡| ¡D]€\} } t&|jd | ƒ�r¶t|jd | ƒ| ƒnNt&|j| ƒ�rÔt|j| | ƒn0t&|| ƒ�rît|| | ƒnd t'| ƒ} t! "| ¡�q†d|_(|j dk �rP|j D].} |  )d¡�s6�qP| dk�r d|_(�qP�q | *¡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()'. rrÚget_NÚÚoptionsz setup scriptr+r*z:'licence' distribution option is deprecated; use 'license'Ú Zset_zUnknown distribution option: %sTú-z --no-user-cfgF)+rÚdry_runrÚdisplay_option_namesÚsetattrÚDistributionMetadataÚmetadataÚ_METHOD_BASENAMESÚgetattrÚcmdclassÚcommand_packagesÚ script_nameÚ script_argsÚcommand_optionsZ dist_filesÚpackagesZ package_dataZ package_dirÚ py_modulesÚ librariesÚheadersÚ ext_modulesZ ext_packageZ include_dirsZ extra_pathÚscriptsÚ data_filesZpasswordÚ command_objÚhave_runÚgetÚitemsÚget_option_dictÚwarningsÚwarnÚsysÚstderrÚwriteÚhasattrÚreprÚ want_user_cfgÚ startswithÚfinalize_options)ÚselfÚattrsÚattrÚbasenameZ method_namer9ÚcommandZ cmd_optionsÚopt_dictÚoptÚvalrÚkeyÚargrrrÚ__init__ˆs~                   zDistribution.__init__cCs&|j |¡}|dkr"i}|j|<|S)zí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)rGrQ)r^rbÚdictrrrrS&s zDistribution.get_option_dictr8c CsÈddlm}|dkr"t|j ¡ƒ}|dk r@| ||¡|d}|sV| |d¡dS|D]h}|j |¡}|dkr†| |d|¡qZ| |d|¡||ƒ}| d¡D]}| |d|¡qªqZdS)Nr)Úpformatz zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:r:)ZpprintrjÚsortedrGÚkeysÚannouncerQÚsplit) r^ÚheaderÚcommandsÚindentrjZcmd_namercÚoutÚlinerrrÚdump_option_dicts1s*  ÿÿzDistribution.dump_option_dictscCs¾g}tƒtj tjdj¡}tj |d¡}tj |¡rB|  |¡tj dkrRd}nd}|j rˆtj tj  d¡|¡}tj |¡rˆ|  |¡d}tj |¡r¢|  |¡t rº| dd  |¡¡|S) a¾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. Ú distutilsz distutils.cfgÚposixz.pydistutils.cfgzpydistutils.cfgú~z setup.cfgzusing config files: %sz, )rÚosÚpathÚdirnamerVÚmodulesÚ__file__ÚjoinÚisfileÚappendr!r[Ú expanduserr rm)r^ÚfilesZsys_dirZsys_fileZ user_filenameZ user_fileZ local_filerrrÚfind_config_filesMs&       zDistribution.find_config_filesc Cs¤ddlm}tjtjkr8ddddddd d d d d ddg }ng}t|ƒ}|dkrT| ¡}trb| d¡|ƒ}|D]ˆ}tr‚| d|¡|  |¡|  ¡D]V}|  |¡}|  |¡}|D]8} | dkr°| |kr°|  || ¡} |  dd¡} || f|| <q°q”| ¡qld|jk�r |jd ¡D]Ž\} \} } |j  | ¡} zF| �rDt|| t| ƒ ƒn(| dk�r`t|| t| ƒƒn t|| | ƒWn,tk �rš} z t| ƒ‚W5d} ~ XYnX�qdS)Nr)Ú ConfigParserz install-basezinstall-platbasez install-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptsz install-dataÚprefixz exec-prefixÚhomeÚuserÚrootz"Distribution.parse_config_files():z reading %srr;Ú_Úglobal)rr<)Z configparserrƒrVr„Ú base_prefixÚ frozensetr‚r rmÚreadZsectionsr9rSrQÚreplacerhrGrRÚ negative_optr>rÚ ValueErrorÚDistutilsOptionError)r^Ú filenamesrƒZignore_optionsÚparserÚfilenameZsectionr9rcrdreÚsrcÚaliasrrrrÚparse_config_files}s^  ü           zDistribution.parse_config_filescCs¾| ¡}g|_t||jƒ}| |j¡| ddi¡|j|j|d�}|  ¡}t   |j ¡|  |¡rhdS|r†| ||¡}|dkrhdSqh|jr¬|j|t|jƒdk|jd�dS|jsºtdƒ‚dS) a‡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). r+r*)ÚargsÚobjectNr©Údisplay_optionsrpzno commands suppliedT)Ú_get_toplevel_optionsrprršÚset_negative_aliasesrŽZ set_aliasesÚgetoptrFZget_option_orderr Z set_verbosityrÚhandle_display_optionsÚ_parse_command_optsrÚ _show_helpÚlenÚDistutilsArgError)r^Ztoplevel_optionsr’r—Ú option_orderrrrÚparse_command_line·s.      þzDistribution.parse_command_linecCs |jdgS)zÃ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. )zcommand-packages=Nz0list of packages that provide distutils commands)Úglobal_options©r^rrrr›úsÿz"Distribution._get_toplevel_optionsc Csþddlm}|d}t |¡s*td|ƒ‚|j |¡z| |¡}Wn*tk rn}z t |ƒ‚W5d}~XYnXt ||ƒs†t d|ƒ‚t |dƒrœt |jtƒs¬d}t ||ƒ‚|j}t |dƒrÐ| ¡}| |j¡t |d ƒròt |jtƒròt|jƒ}ng}| |j|j|¡| |¡| |d d…¡\}} t | d ƒ�rV| j�rV|j|d|gd �dSt |d ƒ�rÌt |jtƒ�rÌd} |jD]F\} } } }t | | | ¡ƒ�rzd } t|ƒ�r®|ƒnt d || fƒ‚�qz| �rÌdS| |¡}t| ƒ ¡D]\}}d|f||<�qâ|S)aÚ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. r©ÚCommandzinvalid 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_optionsrrr™zYinvalid help function %r for help option '%s': must be a callable object (function, etc.)z command line) Ú distutils.cmdr¨Ú command_reÚmatchÚ SystemExitrprÚget_command_classÚDistutilsModuleErrorr¢Ú issubclassZDistutilsClassErrorrYr r©rrŽÚcopyÚupdaterªÚfix_help_optionsÚset_option_tabler¥rœr�rr Z get_attr_nameÚcallablerSÚvarsrR)r^r’r—r¨rbZ cmd_classrrŽrªZoptsZhelp_option_foundZ help_optionZshortZdescÚfuncrcr!rrrrrŸsr     ÿ  ÿ     ÿ ÿþ   ÿ þÿ z Distribution._parse_command_optscCsPdD]F}t|j|ƒ}|dkrqt|tƒrdd„| d¡Dƒ}t|j||ƒqdS)z›Set final values for all the options on the Distribution instance, analogous to the .finalize_options() method of Command objects. ©r/r-NcSsg|] }| ¡‘qSr©Ústrip)r4Zelmrrrr6jsz1Distribution.finalize_options..ú,)rBr@r rrnr>)r^r`rrrrr]`s  zDistribution.finalize_optionsrc Csddlm}ddlm}|rR|r*| ¡}n|j}| |¡| |jd¡t dƒ|rt| |j ¡| d¡t dƒ|j D]z}t |t ƒr˜t||ƒr˜|} n | |¡} t| dƒrÐt | jtƒrÐ| | jt| jƒ¡n | | j¡| d| j¡t dƒqzt ||jƒƒd 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_usager§z Global options:r8zKInformation display options (just display information, ignore any commands)rªzOptions for '%s' command:N)Údistutils.corer¾r«r¨r›r¥rµZ print_helpÚ common_usageÚprintršrpr rr±r¯rYrªrr©r´rrE) r^r’r¥ršrpr¾r¨r9rbÚklassrrrr ms:     ÿ    ÿÿ  zDistribution._show_helpc CsÊddlm}|jr4| ¡tdƒt||jƒƒdSd}i}|jD]}d||d<qB|D]l\}}|rX| |¡rXt|ƒ}t |j d|ƒƒ}|dkr td  |¡ƒn |dkr¸td   |¡ƒnt|ƒd}qX|S) zÚ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. rr½r8rr7r¹r¼)r.r0r1r2r:) r¿r¾Z help_commandsÚprint_commandsrÁrEršrQrrBr@r}) r^r£r¾Zany_display_optionsZis_display_optionÚoptionrdrerrrrržŸs*   z#Distribution.handle_display_optionsc Csjt|dƒ|D]T}|j |¡}|s.| |¡}z |j}Wntk rPd}YnXtd|||fƒqdS)zZPrint a subset of the list of all commands -- used by 'print_commands()'. ú:ú(no description available)z %-*s %sN)rÁrCrQr¯r,ÚAttributeError)r^rproÚ max_lengthÚcmdrÂr,rrrÚprint_command_listÇs     zDistribution.print_command_listcCsžddl}|jj}i}|D] }d||<qg}|j ¡D]}| |¡s4| |¡q4d}||D]}t|ƒ|krZt|ƒ}qZ| |d|¡|ršt ƒ| |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.commandrbÚ__all__rCrlrQrr¡rÊrÁ)r^ruÚ std_commandsÚis_stdrÉÚextra_commandsrÈrrrrÃØs.      þþzDistribution.print_commandsc Cs°ddl}|jj}i}|D] }d||<qg}|j ¡D]}| |¡s4| |¡q4g}||D]P}|j |¡}|sx| |¡}z |j}Wnt k ršd}YnX| ||f¡qZ|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Æ) rËrbrÌrCrlrQrr¯r,rÇ) r^rurÍrÎrÉrÏÚrvrÂr,rrrÚget_command_listùs(         zDistribution.get_command_listcCsN|j}t|tƒsJ|dkrd}dd„| d¡Dƒ}d|krD| dd¡||_|S)z9Return a list of packages from which commands are loaded.Nr8cSsg|]}|dkr| ¡‘qS)r8rº)r4Zpkgrrrr6!sz5Distribution.get_command_packages..r¼zdistutils.commandr)rDr rrnÚinsert)r^ZpkgsrrrÚget_command_packagess  z!Distribution.get_command_packagesc Cs¸|j |¡}|r|S| ¡D]Š}d||f}|}zt|ƒtj|}Wntk r^YqYnXzt||ƒ}Wn&tk r”t d|||fƒ‚YnX||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) rCrQrÓÚ __import__rVr{Ú ImportErrorrBrÇr°)r^rbrÂZpkgnameZ module_nameZ klass_nameÚmodulerrrr¯'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.z1error in %s: command '%s' has no such option '%s')Úget_command_namerSr rmrRZboolean_optionsrÇrŽr rr>rrYr�r�) r^rOZ option_dictÚ command_namerÄÚsourcerZ bool_optsZneg_optZ is_stringrrrrr×hsF   ÿÿ        ÿÿz!Distribution._set_command_optionsrcCs|ddlm}t||ƒs&|}| |¡}n| ¡}|js8|S| ¡d|_d|j|<| |¡|rx|  ¡D]}|  ||¡qf|S)a³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. rr§) r«r¨r rÙrÛZ finalizedZinitialize_optionsrPr×Zget_sub_commandsÚreinitialize_command)r^rbZreinit_subcommandsr¨rÜÚsubrrrrÞ”s      z!Distribution.reinitialize_commandcCst ||¡dS©Nr )r^rÚlevelrrrrm½szDistribution.announcecCs|jD]}| |¡qdS)z¶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)rpÚ run_command)r^rÉrrrÚ run_commandsÀs zDistribution.run_commandscCsD|j |¡rdSt d|¡| |¡}| ¡| ¡d|j|<dS)aª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). Nz running %sr)rPrQr ÚinforÙZensure_finalizedÚrun)r^rbrØrrrrâÊs   zDistribution.run_commandcCst|jp|jpgƒdkS©Nr)r¡rHrIr¦rrrÚhas_pure_modulesÞszDistribution.has_pure_modulescCs|jot|jƒdkSræ)rLr¡r¦rrrÚhas_ext_modulesászDistribution.has_ext_modulescCs|jot|jƒdkSræ)rJr¡r¦rrrÚhas_c_librariesäszDistribution.has_c_librariescCs| ¡p| ¡Srà)rçrèr¦rrrÚ has_modulesçszDistribution.has_modulescCs|jot|jƒdkSræ)rKr¡r¦rrrÚ has_headersêszDistribution.has_headerscCs|jot|jƒdkSræ)rMr¡r¦rrrÚ has_scriptsíszDistribution.has_scriptscCs|jot|jƒdkSræ)rNr¡r¦rrrÚhas_data_filesðszDistribution.has_data_filescCs| ¡o| ¡ o| ¡ Srà)rçrèrér¦rrrÚis_pureós ÿþzDistribution.is_pure)N)NNr8)N)r)N)r))rÚ __module__Ú __qualname__Ú__doc__r¥rÀršr=rŽrhrSrtr‚r–r¤r›rŸr]r ržrÊrÃrÑrÓr¯rÙr×rÞr ÚINFOrmrãrârçrèrérêrërìrírîrrrrr,s‚û  ×,  0 :C [ ÿ 2(!" &  , ) rc@seZdZdZdZdBdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd„Zd d!„Zd"d#„ZeZd$d%„Zd&d'„Zd(d)„Zd*d+„Zd,d-„Zd.d/„Zd0d1„Zd2d3„Zd4d5„Zd6d7„Zd8d9„Z d:d;„Z!dd?„Z#d@dA„Z$dS)Cr?z]Dummy class to hold the distribution meta-data: name, version, author, and so forth. )r!r"r%Ú author_emailr'Úmaintainer_emailr)r*r,Úlong_descriptionr/r-r$r(Z contact_emailr.Ú download_urlr0r1r2NcCs‚|dk r| t|ƒ¡nfd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dSrà)Ú read_pkg_fileÚopenr!r"r%rór'rôr)r*r,rõr/r-r.rör0r1r2)r^ryrrrrh s&zDistributionMetadata.__init__cst|ƒ‰‡fdd„}‡fdd„}ˆd}|dƒ|_|dƒ|_|dƒ|_|d ƒ|_d |_|d ƒ|_d |_|d ƒ|_|d ƒ|_ dˆkrŽ|dƒ|_ nd |_ |dƒ|_ |dƒ|_dˆkrÀ|dƒ  d¡|_ |dƒ|_|dƒ|_|dkrü|dƒ|_|dƒ|_|dƒ|_nd |_d |_d |_d S)z-Reads the metadata values from a file object.csˆ|}|dkrdS|S©NZUNKNOWNr)r!r©rrrÚ _read_field(sz7DistributionMetadata.read_pkg_file.._read_fieldcsˆ |d¡}|gkrdS|Srà)Zget_all)r!ÚvaluesrúrrÚ _read_list.s z6DistributionMetadata.read_pkg_file.._read_listzmetadata-versionr!r"Zsummaryr%Nr&z home-pager*z download-urlr,r/r¼ÚplatformZ classifierú1.1r1r0r2)rr!r"r,r%r'rórôr)r*rörõrnr/r-r.r1r0r2)r^ÚfilerûrýZmetadata_versionrrúrr÷$s:                 z"DistributionMetadata.read_pkg_filec Cs2ttj |d¡ddd��}| |¡W5QRXdS)z7Write the PKG-INFO file into the release tree. zPKG-INFOÚwzUTF-8)ÚencodingN)rørxryr}Úwrite_pkg_file)r^Zbase_dirZpkg_inforrrÚwrite_pkg_infoXs ÿz#DistributionMetadata.write_pkg_infocCsbd}|js"|js"|js"|js"|jr&d}| d|¡| d| ¡¡| d| ¡¡| d| ¡¡| d|  ¡¡| d|  ¡¡| d |  ¡¡| d |  ¡¡|jrÈ| d |j¡t | ¡ƒ}| 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 z Author: %s zAuthor-email: %s z License: %s zDownload-URL: %s zDescription: %s r¼z Keywords: %s ZPlatformZ ClassifierZRequiresZProvidesZ ObsoletesN)r0r1r2r.rörXÚget_nameÚ get_versionÚget_descriptionÚget_urlÚ get_contactÚget_contact_emailÚ get_licenserÚget_long_descriptionr}Ú get_keywordsÚ _write_listÚ get_platformsÚget_classifiersÚ get_requiresÚ get_providesÚ get_obsoletes)r^rr"Z long_descr/rrrr_s6ÿÿ z#DistributionMetadata.write_pkg_filecCs |D]}| d||f¡qdS)Nz%s: %s )rX)r^rr!rürrrrr�sz DistributionMetadata._write_listcCs |jpdSrù)r!r¦rrrr‡szDistributionMetadata.get_namecCs |jpdS)Nz0.0.0)r"r¦rrrrŠsz DistributionMetadata.get_versioncCsd| ¡| ¡fS)Nz%s-%s)rrr¦rrrÚ get_fullname�sz!DistributionMetadata.get_fullnamecCs |jpdSrù)r%r¦rrrÚ get_author�szDistributionMetadata.get_authorcCs |jpdSrù)rór¦rrrÚget_author_email“sz%DistributionMetadata.get_author_emailcCs |jpdSrù)r'r¦rrrÚget_maintainer–sz#DistributionMetadata.get_maintainercCs |jpdSrù)rôr¦rrrÚget_maintainer_email™sz)DistributionMetadata.get_maintainer_emailcCs|jp|jpdSrù)r'r%r¦rrrr œsz DistributionMetadata.get_contactcCs|jp|jpdSrù)rôrór¦rrrr Ÿsz&DistributionMetadata.get_contact_emailcCs |jpdSrù)r)r¦rrrr¢szDistributionMetadata.get_urlcCs |jpdSrù)r*r¦rrrr ¥sz DistributionMetadata.get_licensecCs |jpdSrù)r,r¦rrrr©sz$DistributionMetadata.get_descriptioncCs |jpdSrù)rõr¦rrrr ¬sz)DistributionMetadata.get_long_descriptioncCs |jpgSrà)r/r¦rrrr ¯sz!DistributionMetadata.get_keywordscCst|dƒ|_dS)Nr/)rr/©r^rrrrÚ set_keywords²sz!DistributionMetadata.set_keywordscCs |jp dgSrù)r-r¦rrrrµsz"DistributionMetadata.get_platformscCst|dƒ|_dS)Nr-)rr-rrrrÚ set_platforms¸sz"DistributionMetadata.set_platformscCs |jpgSrà)r.r¦rrrr»sz$DistributionMetadata.get_classifierscCst|dƒ|_dS)Nr.)rr.rrrrÚset_classifiers¾sz$DistributionMetadata.set_classifierscCs |jpdSrù)rör¦rrrÚget_download_urlÁsz%DistributionMetadata.get_download_urlcCs |jpgSrà)r1r¦rrrrÅsz!DistributionMetadata.get_requirescCs,ddl}|D]}|j |¡q t|ƒ|_dSræ)Údistutils.versionpredicateÚversionpredicateÚVersionPredicaterr1©r^rrurrrrÚ set_requiresÈsz!DistributionMetadata.set_requirescCs |jpgSrà)r0r¦rrrrÎsz!DistributionMetadata.get_providescCs6dd„|Dƒ}|D]}ddl}|j |¡q||_dS)NcSsg|] }| ¡‘qSrrº)r4rrrrr6Òsz5DistributionMetadata.set_provides..r)rrZsplit_provisionr0)r^rrrurrrÚ set_providesÑs z!DistributionMetadata.set_providescCs |jpgSrà)r2r¦rrrrØsz"DistributionMetadata.get_obsoletescCs,ddl}|D]}|j |¡q t|ƒ|_dSræ)rrr rr2r!rrrÚ set_obsoletesÛsz"DistributionMetadata.set_obsoletes)N)%rrïrðrñrArhr÷rrrrrrrrrrr r rr Z get_licencerr r rrrrrrrr"rr#rr$rrrrr?ÿsD 4"r?cCs$g}|D]}| |dd…¡q|S)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. ré)r)r9Z new_optionsZ help_tuplerrrr´ásr´)rñrVrxÚreZemailrrTrÕZdistutils.errorsZdistutils.fancy_getoptrrZdistutils.utilrrrrur Zdistutils.debugr Úcompiler¬rrr?r´rrrrÚs4      Zc