选择文件�文件大�最�修改时间�作
[📄] 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
a ´iXã@s˜dZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z m Z ddlmZddlZe d ¡ZGd d „d eƒZGd d „d ee ƒZdS)zRdistutils.command.build_scripts Implements the Distutils 'build_scripts' command.éN)ÚST_MODE)Ú sysconfig)ÚCommand)Únewer)Ú convert_pathÚ Mixin2to3)Úlogs^#!.*python[0-9.]*([ ].*)?$c@sFeZdZdZgd¢ZdgZdd„Zdd„Zdd „Zd d „Z d d „Z dS)Ú build_scriptsz("build" scripts (copy and fixup #! line)))z build-dir=Údzdirectory to "build" (copy) to)ÚforceÚfz1forcibly build everything (ignore file timestamps)z executable=Úez*specify final destination interpreter pathr cCs"d|_d|_d|_d|_d|_dS©N)Ú build_dirÚscriptsr Ú executableÚoutfiles©Úself©rú7/usr/lib64/python3.9/distutils/command/build_scripts.pyÚinitialize_optionss z build_scripts.initialize_optionscCs| dddd¡|jj|_dS)NZbuild)r r)r r )rr)Zset_undefined_optionsZ distributionrrrrrÚfinalize_options%s ýzbuild_scripts.finalize_optionscCs|jSr)rrrrrÚget_source_files,szbuild_scripts.get_source_filescCs|js dS| ¡dSr)rÚ copy_scriptsrrrrÚrun/szbuild_scripts.runc CsÄ| |j¡g}g}|jD�],}d}t|ƒ}tj |jtj |¡¡}| |¡|j slt ||ƒslt   d|¡qzt |dƒ}Wnty˜|js�‚d}YnX0t |j¡\}}| d¡| ¡} | sÐ| d|¡qt | ¡} | rðd}|  d¡pîd } |�r$t  d ||j¡| |¡|j�stj�s(|j} n(tj t d ¡d t d ¡t d¡f¡} t | ¡} d| | d} z|  d¡Wn"t�yšt d !| ¡ƒ‚Yn0z|  |¡Wn$t�yÎt d !| |¡ƒ‚Yn0t |dƒ�(}| "| ¡| #| $¡¡Wdƒn1�s 0Y|�rH| %¡q|�r2| %¡| |¡| &||¡qtj'dk�r¼|D]`}|j�rtt  d|¡nDt (|¡t)d@}|dBd@}||k�rZt  d|||¡t *||¡�qZ||fS)a"Copy each script listed in 'self.scripts'; if it's marked as a Python script in the Unix way (first line matches 'first_line_re', ie. starts with "\#!" and contains "python"), then adjust the first line to refer to the current Python interpreter as we copy. Fznot copying %s (up-to-date)ÚrbNrz%s is an empty file (skipping)Téózcopying and adjusting %s -> %sZBINDIRz python%s%sÚVERSIONZEXEs#!ó zutf-8z.The shebang ({!r}) is not decodable from utf-8zAThe shebang ({!r}) is not decodable from the script encoding ({})ÚwbÚposixzchanging mode of %siÿimz!changing mode of %s from %o to %o)+ZmkpathrrrÚosÚpathÚjoinÚbasenameÚappendr rrÚdebugÚopenÚOSErrorÚdry_runÚtokenizeÚdetect_encodingÚreadlineÚseekÚwarnÚ first_line_reÚmatchÚgroupÚinforZ python_buildrZget_config_varÚfsencodeÚdecodeÚUnicodeDecodeErrorÚ ValueErrorÚformatÚwriteÚ writelinesÚ readlinesÚcloseZ copy_fileÚnameÚstatrÚchmod)rrÚ updated_filesZscriptZadjustZoutfiler ÚencodingÚlinesZ first_liner2Z post_interprZshebangZoutfÚfileZoldmodeZnewmoderrrr5s         ÿ  ÿþ ÿÿ þÿ   .     ÿzbuild_scripts.copy_scriptsN) Ú__name__Ú __module__Ú __qualname__Ú descriptionZ user_optionsZboolean_optionsrrrrrrrrrr sr c@seZdZdd„ZdS)Úbuild_scripts_2to3cCs&t |¡\}}|js| |¡||fSr)r rr+Zrun_2to3)rrrArrrrœs zbuild_scripts_2to3.copy_scriptsN)rErFrGrrrrrrIšsrI)Ú__doc__r#Úrer?rZ distutilsrZdistutils.corerZdistutils.dep_utilrZdistutils.utilrrrr,Úcompiler1r rIrrrrÚs