选择文件�文件大�最�修改时间�作
[📄] 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ÈddlZddlZddlZddlmZz ddlZWnek rHdZYnXddlTddlm Z m Z ddl m Z m Z mZddlmZddlmZe d¡Zd d „ZGd d „d ƒZGd d„dƒZdd„ZdS)éN)Úmessage_from_file)Ú*)Ú FancyGetoptÚtranslate_longopt)Ú check_environÚ strtoboolÚ rfc822_escape©Úlog)ÚDEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$cCsLt|tƒr n„Zd?d@„ZdAdB„ZdcdCdD„ZdddEdF„ZdedHdI„ZejfdJdK„ZdLdM„ZdNdO„ZdPdQ„Z dRdS„Z!dTdU„Z"dVdW„Z#dXdY„Z$dZd[„Z%d\d]„Z&d^d_„Z'd S)fÚ Distribution)Ú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)NrrÚget_ÚÚ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©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:)ZpprintrkÚsortedrGÚkeysÚannouncerQÚsplit) r^ÚheaderÚcommandsÚindentrkZcmd_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) NÚ distutilsz distutils.cfgÚposixz.pydistutils.cfgzpydistutils.cfgú~z setup.cfgzusing config files: %sz, )rÚosÚpathÚdirnamerVÚmodulesÚ__file__ÚjoinÚisfileÚappendr!r[Ú expanduserr rn)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 rnÚ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)Nr+r*)ÚargsÚobjectr©Údisplay_optionsrqzno commands suppliedT)Ú_get_toplevel_optionsrqrr›Ú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)N)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)Nr©ÚCommandzinvalid command name '%s'z&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Ú SystemExitrqr€Ú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)N©r/r-cSsg|] }| ¡‘qSr©Ústrip)r4Zelmrrrr6jsz1Distribution.finalize_options..ú,)rBr@r rror>)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ƒƒdS) Nr©Ú gen_usager¨z Global options:r8zKInformation display options (just display information, ignore any commands)r«zOptions for '%s' command:)Údistutils.corer¿r¬r©rœr¦r¶Z print_helpÚ common_usageÚprintr›rqr rr²r°rYr«rrªrµrrE) r^r“r¦r›rqr¿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) Nrr¾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)Nú:ú(no description available)z %-*s %s)rÂrCrQr°r,ÚAttributeError)r^rqrpÚ 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)NrrzStandard commandszExtra commands) Údistutils.commandrbÚ__all__rCrmrQr€r¢rËrÂ)r^rvÚ 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)NrrrÇ) rÌrbrÍrCrmrQr€r°r,rÈ) r^rvrÎ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)Nr8cSsg|]}|dkr| ¡‘qS)r8r»)r4Zpkgrrrr6!sz5Distribution.get_command_packages..r½zdistutils.commandr)rDr rroÚ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)Nz%s.%sz3invalid command '%s' (no class '%s' in module '%s')zinvalid command '%s') 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)Nz.z1error in %s: command '%s' has no such option '%s')Úget_command_namerSr rnrRZboolean_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)Nrr¨) r¬r©r rÚrÜZ finalizedZinitialize_optionsrPrØZget_sub_commandsÚreinitialize_command)r^rbZreinit_subcommandsr©rÝÚsubrrrrß”s      z!Distribution.reinitialize_commandcCst ||¡dSrir )r^rÚlevelrrrrn½szDistribution.announcecCs|jD]}| |¡qdSri)rqÚ run_command)r^rÊrrrÚ run_commandsÀs zDistribution.run_commandscCsD|j |¡rdSt d|¡| |¡}| ¡| ¡d|j|<dS)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| ¡Sri)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| ¡ Sri)rçrèrér§rrrÚis_pureós ÿþzDistribution.is_pure)N)NNr8)N)r)N)r)(rÚ __module__Ú __qualname__r¦rÁr›r=r�rhrSrurƒr—r¥rœr r]r¡rŸrËrÄrÒrÔr°rÚrØrßr ÚINFOrnrãrârçrèrérêrërìrírîrrrrr,s€û  ×,  0 :C [ ÿ 2(!" &  , ) rc@seZdZdZdAdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd„Zdd„Zdd „Zd!d"„ZeZd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„Zd7d8„Zd9d:„Z d;d<„Z!d=d>„Z"d?d@„Z#dS)Br?)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|_dSri)Ú read_pkg_fileÚopenr!r"r%ròr'rór)r*r,rôr/r-r.rõr0r1r2)r^rzrrrrh 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|_dS)Ncsˆ|}|dkrdS|S©NZUNKNOWNr)r!r©rrrÚ _read_field(sz7DistributionMetadata.read_pkg_file.._read_fieldcsˆ |d¡}|gkrdS|Sri)Zget_all)r!ÚvaluesrùrrÚ _read_list.s z6DistributionMetadata.read_pkg_file.._read_listzmetadata-versionr!r"Zsummaryr%r&z home-pager*z download-urlr,r/r½ÚplatformZ classifierú1.1r1r0r2)rr!r"r,r%r'ròrór)r*rõrôror/r-r.r1r0r2)r^ÚfilerúrüZmetadata_versionrrùrrö$s:                 z"DistributionMetadata.read_pkg_filec Cs2ttj |d¡ddd��}| |¡W5QRXdS)NzPKG-INFOÚwzUTF-8)Úencoding)r÷ryrzr~Ú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)Nz1.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 Obsoletes)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^rÿr"Z long_descr/rrrr_s6ÿÿ z#DistributionMetadata.write_pkg_filecCs |D]}| d||f¡qdS)Nz%s: %s )rX)r^rÿr!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 |jpgSri)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 |jpgSri)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 |jpgSri)r1r§rrrrÅsz!DistributionMetadata.get_requirescCs,ddl}|D]}|j |¡q t|ƒ|_dSræ)Údistutils.versionpredicateÚversionpredicateÚVersionPredicaterr1©r^rrvrrrrÚ set_requiresÈsz!DistributionMetadata.set_requirescCs |jpgSri)r0r§rrrrÎsz!DistributionMetadata.get_providescCs6dd„|Dƒ}|D]}ddl}|j |¡q||_dS)NcSsg|] }| ¡‘qSrr»)r4rrrrr6Òsz5DistributionMetadata.set_provides..r)rrZsplit_provisionr0)r^rrrvrrrÚ set_providesÑs z!DistributionMetadata.set_providescCs |jpgSri)r2r§rrrrØsz"DistributionMetadata.get_obsoletescCs,ddl}|D]}|j |¡q t|ƒ|_dSræ)rrrrr2r rrrÚ set_obsoletesÛsz"DistributionMetadata.set_obsoletes)N)$rrïrðrArhrörrr rrrrrrrrr rr Z get_licencerr r rrrrrrrr!rr"rr#rrrrr?ÿsB 4"r?cCs$g}|D]}| |dd…¡q|S)Nré)r€)r9Z new_optionsZ help_tuplerrrrµásrµ)rVryÚreZemailrrTrÖZdistutils.errorsZdistutils.fancy_getoptrrZdistutils.utilrrrrvr Zdistutils.debugr Úcompiler­rrr?rµrrrrÚs2      Zc