Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 \Âã @sÄdZddlZddlZddlZddlmZy ddlZWnek rLdZYnXddlTddl m Z m Z ddl m Z mZmZddlmZddlmZejd ƒZGd d „d ƒZGd d „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_]*)$c@speZdZdZd~dd€d�d‚gZdZdƒd„d…d†d‡dˆd‰dŠd‹dŒd�dŽd�d�d‘d’d“d”d•d–d—gZd>d?„eDƒZddiZd˜d@dA„Z dBdC„Z d™dEdF„Z dGdH„Z dšdIdJ„Z dKdL„ZdMdN„ZdOdP„ZdQdR„ZddgfdSdT„ZdUdV„ZdWdX„ZdYdZ„Zd[d\„Zd]d^„Zd_d`„Zd›dadb„Zdœdcdd„Zd�dfdg„Zejfdhdi„Zdjdk„Zdldm„Z dndo„Z!dpdq„Z"drds„Z#dtdu„Z$dvdw„Z%dxdy„Z&dzd{„Z'd|d}„Z(dS)žÚ 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Úvúrun verbosely (default)éÚquietÚqú!run quietly (turns verbosity off)údry-runÚnúdon't actually do anythingÚhelpÚhúshow detailed help messageú no-user-cfgNú-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 ú help-commandsúlist all available commandsÚnameúprint package nameÚversionÚVúprint package versionÚfullnameúprint -Úauthorúprint the author's nameú author-emailú print the author's email addressÚ maintainerúprint the maintainer's nameúmaintainer-emailú$print the maintainer's email addressÚcontactú7print the maintainer's name if known, else the author'sú contact-emailú@print the maintainer's email address if known, else the author'sÚurlúprint the URL for this packageÚlicenseú print the license of the packageÚlicenceúalias for --licenseÚ descriptionúprint the package descriptionúlong-descriptionú"print the long package descriptionÚ platformsúprint the list of platformsÚ classifiersúprint the list of classifiersÚkeywordsúprint the list of keywordsÚprovidesú+print the list of packages/modules providedÚrequiresú+print the list of packages/modules requiredÚ obsoletesú0print the list of packages/modules made obsoletecCsg|]}t|dƒ‘qS)r)r)Ú.0Úx©rHú/usr/lib64/python3.6/dist.pyú sszDistribution.cCsˆd|_d|_d|_x|jD]}t||dƒqWtƒ|_x,|jjD] }d|}t||t|j|ƒƒq@Wi|_ d|_ d|_ d|_ i|_ g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|�r8|jdƒ}|dk �rH|d=xD|jƒD]8\}}|j |ƒ}x"|jƒD]\} } d| f|| <�q(W�q Wd|k�rŽ|d|d <|d=d } t!dk �r~t!j"| ƒnt#j$j%| d ƒx¨|jƒD]œ\} } t&|jd | ƒ�rÈt|jd | ƒ| ƒnjt&|j| ƒ�ræt|j| | ƒnLt&|| ƒ�rt|| | ƒn2d t'| ƒ} t!dk �r"t!j"| ƒnt#j$j%| d ƒ�q˜Wd|_(|j dk �r|x0|j D]&} | j)dƒ�sdP| dk�rRd|_(P�qRW|j*ƒ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 scriptr4r2z:'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)ÚselfZattrsÚattrÚbasenameZ method_namerMÚcommandZ cmd_optionsÚopt_dictÚoptÚvalÚmsgÚkeyÚargrHrHrIÚ__init__zs‚                   zDistribution.__init__cCs&|jj|ƒ}|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)r[re)rrruÚdictrHrHrIrgs zDistribution.get_option_dictrLc CsÐddlm}|dkr"t|jjƒƒ}|dk r@|j||ƒ|d}|sV|j|dƒdSxt|D]l}|jj|ƒ}|dkrˆ|j|d|ƒq\|j|d|ƒ||ƒ}x$|jdƒD]}|j|d|ƒq®Wq\WdS)Nr)Úpformatz zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:rN)Úpprintr~Úsortedr[ÚkeysÚannouncereÚsplit) rrÚheaderÚcommandsÚindentr~Zcmd_namervÚoutÚlinerHrHrIÚdump_option_dicts&s&    zDistribution.dump_option_dictscCs¾g}tƒtjjtjdjƒ}tjj|dƒ}tjj|ƒrB|j |ƒtj dkrRd}nd}|j rˆtjjtjj dƒ|ƒ}tjj|ƒrˆ|j |ƒd}tjj|ƒr¢|j |ƒt rº|jdd j|ƒƒ|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ÚdirnamerjÚmodulesÚ__file__ÚjoinÚisfileÚappendrroÚ expanduserr r‚)rrÚfilesZsys_dirZsys_fileZ user_filenameZ user_fileZ local_filerHrHrIÚfind_config_filesBs&       zDistribution.find_config_filescCs´ddlm}tjtjkr8ddddddd d d d d ddg }ng}t|ƒ}|dkrT|jƒ}trb|jdƒ|ƒ}x˜|D]�}tr„|jd|ƒ|j |ƒxf|j ƒD]Z}|j |ƒ}|j |ƒ}x@|D]8} | dkr¶| |kr¶|j || ƒ} | jddƒ} || f|| <q¶Wq˜W|jƒqnWd|jk�r°x |jdjƒD]Ž\} \} } |jj | ƒ} yF| �rRt|| t| ƒ ƒn(| dk�rnt|| t| ƒƒn t|| | ƒWn,tk �r¨} zt| ƒ‚WYdd} ~ XnX�qWdS)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 %sÚ__name__rOÚ_Úglobalr rP)r rP)Z configparserr˜rjr™Ú base_prefixÚ frozensetr—r r‚ÚreadZsectionsrMrgreÚreplacer|r[rfÚ negative_optrRrÚ ValueErrorÚDistutilsOptionError)rrÚ filenamesr˜Zignore_optionsÚparserÚfilenameZsectionrMrvrwrxÚsrcÚaliasryrHrHrIÚparse_config_filesrsJ               zDistribution.parse_config_filescCsÂ|jƒ}g|_t||jƒ}|j|jƒ|jddiƒ|j|j|d�}|j ƒ}t j |j ƒ|j |ƒrhdSx |rˆ|j||ƒ}|dkrjdSqjW|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). r4r2)ÚargsÚobjectNr)Údisplay_optionsr…zno commands suppliedT)Ú_get_toplevel_optionsr…rr¯Úset_negative_aliasesr¤Z set_aliasesÚgetoptrZZget_option_orderr Z set_verbosityr Úhandle_display_optionsÚ_parse_command_optsrÚ _show_helpÚlenÚDistutilsArgError)rrZtoplevel_optionsr¨r­Ú option_orderrHrHrIÚ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. úcommand-packages=Nú0list of packages that provide distutils commands)rºNr»)Úglobal_options)rrrHrHrIr°ïsz"Distribution._get_toplevel_optionscCsddlm}|d}tj|ƒs*td|ƒ‚|jj|ƒy|j|ƒ}Wn*tk rn}zt |ƒ‚WYdd}~XnXt ||ƒs†t d|ƒ‚t |dƒošt |jtƒs¬d}t ||ƒ‚|j}t |dƒrÐ|jƒ}|j|jƒt |d ƒròt |jtƒròt|jƒ}ng}|j|j|j|ƒ|j|ƒ|j|d d…ƒ\}} t | d ƒ�rV| j�rV|j|d|gd �dSt |d ƒ�rÐt |jtƒ�rÐd} xP|jD]F\} } } }t | |j| ƒƒ�r|d } t|ƒ�r°|ƒnt d || fƒ‚�q|W| �rÐdS|j|ƒ}x&t| ƒjƒD]\}}d|f||<�qèW|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_optionsrr)r¯r…zYinvalid help function %r for help option '%s': must be a callable object (function, etc.)z command line) Ú distutils.cmdr½Ú command_reÚmatchÚ SystemExitr…r”Úget_command_classÚDistutilsModuleErrorr·Ú issubclassZDistutilsClassErrorrmÚ isinstancer¾Úlistr¤ÚcopyÚupdater¿Úfix_help_optionsÚset_option_tabler¼r±r²rrµZ get_attr_nameÚcallablergÚvarsrf)rrr¨r­r½ruZ cmd_classryr¤r¿ZoptsZhelp_option_foundZ help_optionZshortZdescÚfuncrvrÚvaluerHrHrIr´úsb                   z Distribution._parse_command_optscCsTxNdD]F}t|j|ƒ}|dkr qt|tƒrdd„|jdƒDƒ}t|j||ƒqWdS)z›Set final values for all the options on the Distribution instance, analogous to the .finalize_options() method of Command objects. r>r:NcSsg|] }|jƒ‘qSrH)Ústrip)rFZelmrHrHrIrJ_sz1Distribution.finalize_options..ú,)r>r:)rVrTrÇÚstrrƒrR)rrrsrÐrHrHrIrqUs   zDistribution.finalize_optionsc Cs ddlm}ddlm}|rR|r*|jƒ}n|j}|j|ƒ|j|jdƒt dƒ|rt|j|j ƒ|jd ƒt dƒx„|j D]z}t |t ƒršt||ƒrš|} n |j|ƒ} t| dƒrÒt | jtƒrÒ|j| jt| jƒƒn |j| jƒ|jd | jƒt dƒq|Wt ||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_usage)r½z Global options:rLz*Information display options (just display z!information, ignore any commands)r¿zOptions for '%s' command:NzKInformation display options (just display information, ignore any commands))Údistutils.corerÔrÀr½r°r¼rÌZ print_helpÚ common_usageÚprintr¯r…rÇÚtyperÆrÄrmr¿rÈr¾rËr�rY) rrr¨r¼r¯r…rÔr½rMruÚklassrHrHrIrµbs6           zDistribution._show_helpc CsÒddlm}|jr4|jƒtdƒt||jƒƒdSd}i}x|jD]}d||d<qDWxt|D]l\}}|r^|j|ƒr^t|ƒ}t |j d|ƒƒ}|dkr¦tdj |ƒƒn |dkr¾td j |ƒƒnt|ƒd}q^W|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. r)rÔrLrrKr>r:rÒr<r@rBrDrN)r>r:)r<r@rBrD) rÕrÔZ help_commandsÚprint_commandsr×rYr¯rerrVrTr’) rrr¸rÔZany_display_optionsZis_display_optionÚoptionrwrxrÐrHrHrIr³”s,  z#Distribution.handle_display_optionscCsnt|dƒx\|D]T}|jj|ƒ}|s0|j|ƒ}y |j}Wntk rRd}YnXtd|||fƒqWdS)zZPrint a subset of the list of all commands -- used by 'print_commands()'. ú:z(no description available)z %-*s %sN)r×rWrerÄr6ÚAttributeError)rrr…r„Ú max_lengthÚcmdrÙr6rHrHrIÚprint_command_list¼s      zDistribution.print_command_listcCsªddl}|jj}i}x|D] }d||<qWg}x&|jjƒD]}|j|ƒs:|j|ƒq:Wd}x$||D]}t|ƒ|krdt|ƒ}qdW|j|d|ƒ|r¦t ƒ|j|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.commandruÚ__all__rWr�rer”r¶ràr×)rrrŠÚ std_commandsÚis_stdrßÚextra_commandsrÞrHrHrIrÚÍs*     zDistribution.print_commandsc Cs¼ddl}|jj}i}x|D] }d||<qWg}x&|jjƒD]}|j|ƒs:|j|ƒq:Wg}x\||D]P}|jj|ƒ}|s‚|j|ƒ}y |j}Wnt k r¤d}YnX|j||fƒqdW|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'. rNrz(no description available)) rárurârWr�rer”rÄr6rÝ) rrrŠrãrärßråÚrvrÙr6rHrHrIÚget_command_listîs(        zDistribution.get_command_listcCsN|j}t|tƒsJ|dkrd}dd„|jdƒDƒ}d|krD|jddƒ||_|S)z9Return a list of packages from which commands are loaded.NrLcSsg|]}|dkr|jƒ‘qS)rL)rÑ)rFZpkgrHrHrIrJsz5Distribution.get_command_packages..rÒzdistutils.commandr)rXrÇrÈrƒÚinsert)rrZpkgsrHrHrIÚget_command_packagess  z!Distribution.get_command_packagescCs¶|jj|ƒ}|r|Sx�|jƒD]„}d||f}|}yt|ƒtj|}Wntk r^wYnXyt||ƒ}Wn&tk r”t d|||fƒ‚YnX||j|<|SWt 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) rWreréÚ __import__rjr�Ú ImportErrorrVrÝrÅ)rrrurÙZpkgnameZ module_nameZ klass_nameÚmodulerHrHrIrÄs(   zDistribution.get_command_classcCsn|jj|ƒ}| rj|rjtr(|jd|ƒ|j|ƒ}||ƒ}|j|<d|j|<|jj|ƒ}|rj|j||ƒ|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_namergr r‚rfZboolean_optionsrÝr¤rÇrÓrRrrmr¦r¥) rrrcZ option_dictÚ command_namerÛÚsourcerÐZ bool_optsZneg_optZ is_stringryrHrHrIrí]s>           z!Distribution._set_command_optionsrcCs€ddlm}t||ƒs&|}|j|ƒ}n|jƒ}|js8|S|jƒd|_d|j|<|j|ƒ|r|x|j ƒD]}|j ||ƒqhW|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. r)r½) rÀr½rÇrïrñZ finalizedZinitialize_optionsrdríZget_sub_commandsÚreinitialize_command)rrruZreinit_subcommandsr½ròÚsubrHrHrIrô‰s     z!Distribution.reinitialize_commandcCstj||ƒdS)N)r )rrryÚlevelrHrHrIr‚²szDistribution.announcecCsx|jD]}|j|ƒqWdS)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)r…Ú run_command)rrrßrHrHrIÚ run_commandsµs zDistribution.run_commandscCsD|jj|ƒrdStjd|ƒ|j|ƒ}|jƒ|jƒ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)rdrer ÚinforïZensure_finalizedZrun)rrrurîrHrHrIr÷¿s   zDistribution.run_commandcCst|jp|jpgƒdkS)Nr)r¶r\r])rrrHrHrIÚhas_pure_modulesÓszDistribution.has_pure_modulescCs|jot|jƒdkS)Nr)r`r¶)rrrHrHrIÚhas_ext_modulesÖszDistribution.has_ext_modulescCs|jot|jƒdkS)Nr)r^r¶)rrrHrHrIÚhas_c_librariesÙszDistribution.has_c_librariescCs|jƒp|jƒS)N)rúrû)rrrHrHrIÚ has_modulesÜszDistribution.has_modulescCs|jot|jƒdkS)Nr)r_r¶)rrrHrHrIÚ has_headersßszDistribution.has_headerscCs|jot|jƒdkS)Nr)rar¶)rrrHrHrIÚ has_scriptsâszDistribution.has_scriptscCs|jot|jƒdkS)Nr)rbr¶)rrrHrHrIÚhas_data_filesåszDistribution.has_data_filescCs|jƒo|jƒ o|jƒ S)N)rúrûrü)rrrHrHrIÚis_pureès zDistribution.is_pure)r r rr)rrr)rrr)rrr)rNr)rNr)rNr)rr r!)r"Nr#)r$Nr%)r&Nr')r(Nr))r*Nr+)r,Nr-)r.Nr/)r0Nr1)r2Nr3)r4Nr5)r6Nr7)r8Nr9)r:Nr;)r<Nr=)r>Nr?)r@NrA)rBNrC)rDNrE)N)NNrL)N)r)N)r))r�Ú __module__Ú __qualname__Ú__doc__r¼rÖr¯rQr¤r|rgr‰r—r¬r¹r°r´rqrµr³ràrÚrçrérÄrïrírôr ÚINFOr‚rør÷rúrûrürýrþrÿrrrHrHrHrIr s¨    " 0 :C [  1(!" &  , ) r c@súeZdZdZdOZdPdd„Zdd„Zdd„Zdd„Zdd „Z d!d"„Z d#d$„Z d%d&„Z d'd(„Z d)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„ZeZd7d8„Zd9d:„Zd;d<„Zd=d>„Zd?d@„ZdAdB„ZdCdD„ZdEdF„ZdGdH„ZdIdJ„ZdKdL„Z dMdN„Z!dS)QrSz]Dummy class to hold the distribution meta-data: name, version, author, and so forth. rrr$Ú author_emailr(Úmaintainer_emailr0r2r6Úlong_descriptionr>r:r"r,Ú contact_emailr<Ú download_urlr@rBrDNcCs‚|dk r|jt|ƒƒnfd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dS)N)Ú read_pkg_fileÚopenrrr$rr(rr0r2r6rr>r:r<r r@rBrD)rrrŽrHrHrIr|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ƒj dƒ|_ |dƒ|_|dƒ|_|dkrü|dƒ|_|dƒ|_|dƒ|_nd |_d |_d |_d S)z-Reads the metadata values from a file object.csˆ|}|dkrdS|S)NÚUNKNOWNrH)rrÐ)ryrHrIÚ _read_fieldsz7DistributionMetadata.read_pkg_file.._read_fieldcsˆj|dƒ}|gkrdS|S)N)Zget_all)rÚvalues)ryrHrIÚ _read_list#s z6DistributionMetadata.read_pkg_file.._read_listzmetadata-versionrrZsummaryr$Nz author-emailz home-pager2z download-urlr6r>rÒÚplatformZ classifierz1.1rBr@rD)rrrr6r$r(rrr0r2r rrƒr>r:r<rBr@rD)rrÚfilerrZmetadata_versionrH)ryrIr s:                 z"DistributionMetadata.read_pkg_filec Cs2ttjj|dƒddd��}|j|ƒWdQRXdS)z7Write the PKG-INFO file into the release tree. zPKG-INFOÚwzUTF-8)ÚencodingN)r r�rŽr’Úwrite_pkg_file)rrZbase_dirZpkg_inforHrHrIÚwrite_pkg_infoMs z#DistributionMetadata.write_pkg_infocCsbd}|js"|js"|js"|js"|jr&d}|jd|ƒ|jd|jƒƒ|jd|jƒƒ|jd|jƒƒ|jd|j ƒƒ|jd|j ƒƒ|jd |j ƒƒ|jd |j ƒƒ|jrÈ|jd |jƒt |jƒƒ}|jd |ƒd j|jƒƒ}|�r|jd|ƒ|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒ|j|d|jƒƒdS)z9Write the PKG-INFO format data to a file object. z1.0z1.1zMetadata-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)r@rBrDr<r rlÚ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)rrrrZ long_descr>rHrHrIrTs0  z#DistributionMetadata.write_pkg_filecCs$x|D]}|jd||fƒqWdS)Nz%s: %s )rl)rrrrrrÐrHrHrIr vs z DistributionMetadata._write_listcCs |jpdS)Nr )r)rrrHrHrIr|szDistributionMetadata.get_namecCs |jpdS)Nz0.0.0)r)rrrHrHrIrsz DistributionMetadata.get_versioncCsd|jƒ|jƒfS)Nz%s-%s)rr)rrrHrHrIÚ get_fullname‚sz!DistributionMetadata.get_fullnamecCs |jpdS)Nr )r$)rrrHrHrIÚ get_author…szDistributionMetadata.get_authorcCs |jpdS)Nr )r)rrrHrHrIÚget_author_emailˆsz%DistributionMetadata.get_author_emailcCs |jpdS)Nr )r()rrrHrHrIÚget_maintainer‹sz#DistributionMetadata.get_maintainercCs |jpdS)Nr )r)rrrHrHrIÚget_maintainer_emailŽsz)DistributionMetadata.get_maintainer_emailcCs|jp|jpdS)Nr )r(r$)rrrHrHrIr‘sz DistributionMetadata.get_contactcCs|jp|jpdS)Nr )rr)rrrHrHrIr”sz&DistributionMetadata.get_contact_emailcCs |jpdS)Nr )r0)rrrHrHrIr—szDistributionMetadata.get_urlcCs |jpdS)Nr )r2)rrrHrHrIršsz DistributionMetadata.get_licensecCs |jpdS)Nr )r6)rrrHrHrIržsz$DistributionMetadata.get_descriptioncCs |jpdS)Nr )r)rrrHrHrIr¡sz)DistributionMetadata.get_long_descriptioncCs |jpgS)N)r>)rrrHrHrIr¤sz!DistributionMetadata.get_keywordscCs |jp dgS)Nr )r:)rrrHrHrIr!§sz"DistributionMetadata.get_platformscCs |jpgS)N)r<)rrrHrHrIr"ªsz$DistributionMetadata.get_classifierscCs |jpdS)Nr )r )rrrHrHrIÚget_download_url­sz%DistributionMetadata.get_download_urlcCs |jpgS)N)rB)rrrHrHrIr#±sz!DistributionMetadata.get_requirescCs,ddl}x|D]}|jj|ƒqW||_dS)Nr)Údistutils.versionpredicateÚversionpredicateÚVersionPredicaterB)rrrÐrŠr rHrHrIÚ set_requires´s z!DistributionMetadata.set_requirescCs |jpgS)N)r@)rrrHrHrIr$ºsz!DistributionMetadata.get_providescCs:dd„|Dƒ}x |D]}ddl}|jj|ƒqW||_dS)NcSsg|] }|jƒ‘qSrH)rÑ)rFr rHrHrIrJ¾sz5DistributionMetadata.set_provides..r)r,r-Zsplit_provisionr@)rrrÐr rŠrHrHrIÚ set_provides½s  z!DistributionMetadata.set_providescCs |jpgS)N)rD)rrrHrHrIr%Äsz"DistributionMetadata.get_obsoletescCs,ddl}x|D]}|jj|ƒqW||_dS)Nr)r,r-r.rD)rrrÐrŠr rHrHrIÚ set_obsoletesÇs z"DistributionMetadata.set_obsoletes)rrr$rr(rr0r2r6rr>r:r"r,r r<r r@rBrD)N)"r�rrrrUr|r rrr rrr&r'r(r)r*rrrrZ get_licencerrrr!r"r+r#r/r$r0r%r1rHrHrHrIrSôsH 4"rScCs(g}x|D]}|j|dd…ƒq W|S)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. ré)r”)rMZ new_optionsZ help_tuplerHrHrIrËÍs rË)rrjr�ÚreZemailrrhrëZdistutils.errorsZdistutils.fancy_getoptrrZdistutils.utilrrrrŠr Zdistutils.debugr ÚcompilerÁr rSrËrHrHrHrIÚs2      ]Z