PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  pY> @sddlZddlZddlZddlmZyddlZWnek r^dZYnXddlTddlm Z m Z ddl m Z m Z mZddlmZddlmZejdZGd d d ZGd d d Zd dZdS)N)message_from_file)*) FancyGetopttranslate_longopt) check_environ strtobool rfc822_escape)log)DEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$c@seZdZd}d~dddgZdZdddddddddddddddddddddgZd=d>eDZddiZdd?d@ZdAdBZ dddCdDdEZ dFdGZ ddHdIZ dJdKZ dLdMZdNdOZdPdQZddgdRdSZdTdUZdVdWZdXdYZdZd[Zd\d]Zd^d_Zdd`daZddbdcZdddedfZejdgdhZdidjZdkdlZdmdnZ dodpZ!dqdrZ"dsdtZ#dudvZ$dwdxZ%dydzZ&d{d|Z'dS) Distributionverbosevrun verbosely (default)quietq!run quietly (turns verbosity off)dry-runndon't actually do anythinghelphshow detailed help message no-user-cfgN-ignore pydistutils.cfg in your home directoryzCommon commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package help-commandslist all available commandsnameprint package nameversionVprint package versionfullnameprint -authorprint the author's name author-email print the author's email address maintainerprint the maintainer's namemaintainer-email$print the maintainer's email addresscontact7print the maintainer's name if known, else the author's contact-email@print the maintainer's email address if known, else the author'surlprint the URL for this packagelicense print the license of the packagelicencealias for --license descriptionprint the package descriptionlong-description"print the long package description platformsprint the list of platforms classifiersprint the list of classifierskeywordsprint the list of keywordsprovides+print the list of packages/modules providedrequires+print the list of packages/modules required obsoletes0print the list of packages/modules made obsoletecCs g|]}t|dqS)r)r).0xrH#/opt/python35/lib/python3.5/dist.py ss zDistribution.cCsWd|_d|_d|_x!|jD]}t||dq%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=xV|jD]H\}}|j |}x*|jD]\} } d| f|| r:cSsg|]}|jqSrH)strip)rFZelmrHrHrIrJ_s z1Distribution.finalize_options..,)r>r:)rVrTrstrrrR)rrrsrrHrHrIrqUs  zDistribution.finalize_optionsc Cspddlm}ddlm}|ro|r;|j}n |j}|j||j|jdt d|r|j|j |jddt dx|j D]}t |t rt||r|} n|j|} t| dr't | jtr'|j| jt| jn|j| j|jd | jt dqWt ||jdS) Nr) gen_usage)rz Global options:rLz*Information display options (just display z!information, ignore any commands)rzOptions for '%s' command:)distutils.corerrrrrr print_help common_usageprintrrrtyperrrmrrrrrrY) rrrrrrrrrMruklassrHrHrIrbs6      zDistribution._show_helpc Csddlm}|jrD|jtdt||jdSd}i}x|jD]}d||dr:rr<r@rBrDrN)r>r:)r<r@rBrD) rrZ help_commandsprint_commandsrrYrrerrVrTr) rrrrZany_display_optionsZis_display_optionoptionrwrxrrHrHrIrs,        z#Distribution.handle_display_optionscCst|dxt|D]l}|jj|}|sB|j|}y |j}Wntk rid}YnXtd|||fqWdS)N:z(no description available)z %-*s %s)rrWrerr6AttributeError)rrrr max_lengthcmdrr6rHrHrIprint_command_lists    zDistribution.print_command_listcCsddl}|jj}i}x|D]}d||.rzdistutils.commandr)rXrrrinsert)rrZpkgsrHrHrIget_command_packagess    z!Distribution.get_command_packagescCs|jj|}|r|Sx|jD]}d||f}|}yt|tj|}Wntk rww)YnXyt||}Wn+tk rt d|||fYnX||j|<|SWt d|dS)Nz%s.%sz3invalid command '%s' (no class '%s' in module '%s')zinvalid command '%s') rWrer __import__rjr ImportErrorrVrr)rrrurZpkgname module_nameZ klass_namemodulerHrHrIrs(     zDistribution.get_command_classcCs|jj|}| r|rtr6|jd||j|}||}|j||jd|xz|jD]l\}\}}tr}|jd|||fydd|jD}Wntk rg}YnXy |j}Wntk ri}YnXyt|t } ||kr| rt |||t | nf||krG| rGt ||t |n;t ||rit |||nt d|||fWqKtk r} zt | WYdd} ~ XqKXqKWdS)Nz# setting options for '%s' command:z %s = %s (from %s)cSsg|]}t|qSrH)r)rForHrHrIrJqs z5Distribution._set_command_options..z1error in %s: command '%s' has no such option '%s')get_command_namergr rrfZboolean_optionsrrrrrRrrmrr) rrrcZ option_dict command_namersourcerZ bool_optsZneg_optZ is_stringryrHrHrIr]s>         z!Distribution._set_command_optionsrcCsddlm}t||s7|}|j|}n |j}|jsP|S|jd|_d|j|<|j||rx$|j D]}|j ||qW|S)Nr)r) rrrrrZ finalizedZinitialize_optionsrdrZget_sub_commandsreinitialize_command)rrruZreinit_subcommandsrrsubrHrHrIrs      z!Distribution.reinitialize_commandcCstj||dS)N)r )rrrylevelrHrHrIrszDistribution.announcecCs%x|jD]}|j|q WdS)N)r run_command)rrrrHrHrI run_commandsszDistribution.run_commandscCsZ|jj|rdStjd||j|}|j|jd|j|Nr?)r@NrA)rBNrC)rDNrE)(r __module__ __qualname__rrrrQrr|rgrrrrrrrqrrrrrrrrrrr INFOrrrrrrrrrrrrHrHrHrIr s      0: C [ 1 (  ! " &,)        r c@soeZdZdNZdddZddZddZddZddZd d!Z d"d#Z d$d%Z d&d'Z d(d)Z d*d+Zd,d-Zd.d/Zd0d1Zd2d3Zd4d5ZeZd6d7Zd8d9Zd:d;Zd<d=Zd>d?Zd@dAZdBdCZdDdEZdFdGZdHdIZdJdKZdLdMZ dS)OrSrrr$ author_emailr(maintainer_emailr0r2r6long_descriptionr>r:r"r, contact_emailr< download_urlr@rBrDNcCs|dk r"|jt|nd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_dS)N) read_pkg_fileopenrrr$r r(r r0r2r6r r>r:r<rr@rBrD)rrrrHrHrIr|s&                 zDistributionMetadata.__init__cst|fdd}fdd}d}|d|_|d|_|d|_|d |_d|_|d |_d|_|d |_|d |_ d kr|d |_ n d|_ |d|_ |d|_dkr|dj d|_ |d|_|d|_|dkrx|d|_|d|_|d|_nd|_d|_d|_dS)Ncs|}|dkrdS|S)NUNKNOWNrH)rr)ryrHrI _read_fields  z7DistributionMetadata.read_pkg_file.._read_fieldcs&j|d}|gkr"dS|S)N)Zget_all)rvalues)ryrHrI _read_list$s z6DistributionMetadata.read_pkg_file.._read_listzmetadata-versionrrZsummaryr$z author-emailz home-pager2z download-urlr6r>rplatformZ classifierz1.1rBr@rD)rrrr6r$r(r r r0r2rr rr>r:r<rBr@rD)rrfilerrZmetadata_versionrH)ryrIrs:          z"DistributionMetadata.read_pkg_filec Cs?ttjj|dddd}|j|WdQRXdS)NzPKG-INFOwencodingzUTF-8)rrrrwrite_pkg_file)rrbase_dirZpkg_inforHrHrIwrite_pkg_infoNs z#DistributionMetadata.write_pkg_infocCsd}|js3|js3|js3|js3|jr9d}|jd||jd|j|jd|j|jd|j|jd|j |jd|j |jd |j |jd |j |jr|jd |jt |j}|jd |d j|j}|rW|jd||j|d|j|j|d|j|j|d|j|j|d|j|j|d|jdS)Nz1.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 rz Keywords: %s ZPlatformZ ClassifierZRequiresZProvidesZ Obsoletes)r@rBrDr<rrlget_name get_versionget_descriptionget_url get_contactget_contact_email get_licenserget_long_descriptionr get_keywords _write_list get_platformsget_classifiers get_requires get_provides get_obsoletes)rrrrZ long_descr>rHrHrIrUs0 z#DistributionMetadata.write_pkg_filecCs,x%|D]}|jd||fqWdS)Nz%s: %s )rl)rrrrrrrHrHrIr%ws z DistributionMetadata._write_listcCs |jp dS)Nr)r)rrrHrHrIr}szDistributionMetadata.get_namecCs |jp dS)Nz0.0.0)r)rrrHrHrIrsz DistributionMetadata.get_versioncCsd|j|jfS)Nz%s-%s)rr)rrrHrHrI get_fullnamesz!DistributionMetadata.get_fullnamecCs |jp dS)Nr)r$)rrrHrHrI get_authorszDistributionMetadata.get_authorcCs |jp dS)Nr)r )rrrHrHrIget_author_emailsz%DistributionMetadata.get_author_emailcCs |jp dS)Nr)r()rrrHrHrIget_maintainersz#DistributionMetadata.get_maintainercCs |jp dS)Nr)r )rrrHrHrIget_maintainer_emailsz)DistributionMetadata.get_maintainer_emailcCs|jp|jpdS)Nr)r(r$)rrrHrHrIr sz DistributionMetadata.get_contactcCs|jp|jpdS)Nr)r r )rrrHrHrIr!sz&DistributionMetadata.get_contact_emailcCs |jp dS)Nr)r0)rrrHrHrIrszDistributionMetadata.get_urlcCs |jp dS)Nr)r2)rrrHrHrIr"sz DistributionMetadata.get_licensecCs |jp dS)Nr)r6)rrrHrHrIrsz$DistributionMetadata.get_descriptioncCs |jp dS)Nr)r )rrrHrHrIr#sz)DistributionMetadata.get_long_descriptioncCs |jp gS)N)r>)rrrHrHrIr$sz!DistributionMetadata.get_keywordscCs|jpdgS)Nr)r:)rrrHrHrIr&sz"DistributionMetadata.get_platformscCs |jp gS)N)r<)rrrHrHrIr'sz$DistributionMetadata.get_classifierscCs |jp dS)Nr)r)rrrHrHrIget_download_urlsz%DistributionMetadata.get_download_urlcCs |jp gS)N)rB)rrrHrHrIr(sz!DistributionMetadata.get_requirescCs:ddl}x|D]}|jj|qW||_dS)Nr)distutils.versionpredicateversionpredicateVersionPredicaterB)rrrrr rHrHrI set_requiress  z!DistributionMetadata.set_requirescCs |jp gS)N)r@)rrrHrHrIr)sz!DistributionMetadata.get_providescCsMdd|D}x*|D]"}ddl}|jj|qW||_dS)NcSsg|]}|jqSrH)r)rFr rHrHrIrJs z5DistributionMetadata.set_provides..r)r1r2Zsplit_provisionr@)rrrr rrHrHrI set_providess   z!DistributionMetadata.set_providescCs |jp gS)N)rD)rrrHrHrIr*sz"DistributionMetadata.get_obsoletescCs:ddl}x|D]}|jj|qW||_dS)Nr)r1r2r3rD)rrrrr rHrHrI set_obsoletess  z"DistributionMetadata.set_obsoletes)rrr$r r(r r0r2r6r r>r:r"r,r r2r<rr@rBrD)!rrrrUr|rrrr%rrr+r,r-r.r/r r!rr"Z get_licencerr#r$r&r'r0r(r4r)r5r*r6rHrHrHrIrSsH  4  "                       rScCs2g}x%|D]}|j|ddq W|S)Nr)r)rMZ new_optionsZ help_tuplerHrHrIrs r)rjrreZemailrrhrZdistutils.errorsZdistutils.fancy_getoptrrZdistutils.utilrrrrr Zdistutils.debugr compilerr rSrrHrHrHrIs&