选择文件�文件大�最�修改时间�作
[📄] 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Í ã@sLdZddlZddlZddlZddlmZddlmZdZ Gdd„deƒZ dS)zkdistutils.command.install_lib Implements the Distutils 'install_lib' command (install all Python modules).éN)ÚCommand)ÚDistutilsOptionErrorz.pyc@s„eZdZdZdddddddgZd d d gZd d iZd d„Zdd„Zdd„Z dd„Z dd„Z dd„Z dd„Z dd„Zdd„Zdd „Zd!S)"Ú install_libz7install all Python modules (extensions and pure Python))z install-dir=Údzdirectory to install to)z build-dir=Úbz'build directory (where to install from))ÚforceÚfz-force installation (overwrite existing files))ÚcompileÚczcompile .py to .pyc [default])ú no-compileNzdon't compile .py files)z optimize=ÚOzlalso compile with optimization: -O1 for "python -O", -O2 for "python -OO", and -O0 to disable [default: -O0])ú skip-buildNzskip the build stepsrr r r cCs(d|_d|_d|_d|_d|_d|_dS)Nr)Ú install_dirÚ build_dirrr ÚoptimizeÚ skip_build©Úself©rú5/usr/lib64/python3.8/distutils/command/install_lib.pyÚinitialize_options3s zinstall_lib.initialize_optionsc Cs†| ddddddd¡|jdkr&d|_|jdkr6d |_t|jtƒs‚zt|jƒ|_|jd kr^t‚Wn ttfk r€td ƒ‚YnXdS) NÚinstall)Ú build_libr)rr)rr)r r )rr)rrTF)réézoptimize must be 0, 1, or 2)Zset_undefined_optionsr rÚ isinstanceÚintÚAssertionErrorÚ ValueErrorrrrrrÚfinalize_options<s&ú     zinstall_lib.finalize_optionscCs0| ¡| ¡}|dk r,|j ¡r,| |¡dS©N)ÚbuildrÚ distributionÚhas_pure_modulesÚ byte_compile©rZoutfilesrrrÚrunVszinstall_lib.runcCs2|js.|j ¡r| d¡|j ¡r.| d¡dS)NÚbuild_pyÚ build_ext)rr"r#Z run_commandÚhas_ext_modulesrrrrr!fs    zinstall_lib.buildcCs8tj |j¡r | |j|j¡}n| d|j¡dS|S)Nz3'%s' does not exist -- no Python modules to install)ÚosÚpathÚisdirrZ copy_treerÚwarnr%rrrrmsÿzinstall_lib.installcCsrtjr| d¡dSddlm}| d¡j}|jrH||d|j||j d�|j dkrn|||j |j||j |j d�dS)Nz%byte-compiling is disabled, skipping.r)r$r)rrÚprefixÚdry_run)rrr.Úverboser/) ÚsysÚdont_write_bytecoder-Zdistutils.utilr$Úget_finalized_commandÚrootr rr/rr0)rÚfilesr$Z install_rootrrrr$vs$   þ þzinstall_lib.byte_compilec Csd|sgS| |¡}| ¡}t||ƒ}t|ƒttjƒ}g}|D] } | tj || |d…¡¡q>|Sr ) r3Ú get_outputsÚgetattrÚlenr*ÚsepÚappendr+Újoin) rZhas_anyZ build_cmdZ cmd_optionZ output_dirZ build_filesrÚ prefix_lenZoutputsÚfilerrrÚ_mutate_outputs�s  zinstall_lib._mutate_outputscCsrg}|D]d}tj tj |¡¡d}|tkr.q|jrJ| tjj |dd�¡|j dkr| tjj ||j d�¡q|S)NrÚ)Ú optimizationr) r*r+ÚsplitextÚnormcaseÚPYTHON_SOURCE_EXTENSIONr r:Ú importlibÚutilÚcache_from_sourcer)rZ py_filenamesZbytecode_filesZpy_fileZextrrrÚ_bytecode_filenamesžs  ÿ  ÿ zinstall_lib._bytecode_filenamescCsR| |j ¡dd|j¡}|jr*| |¡}ng}| |j ¡dd|j¡}|||S)zÁReturn the list of files that would be installed if this command were actually run. Not affected by the "dry-run" flag or whether modules have actually been built yet. r'rr()r>r"r#rr rGr))rZ pure_outputsZbytecode_outputsZ ext_outputsrrrr6´s  þÿ  þÿzinstall_lib.get_outputscCsLg}|j ¡r&| d¡}| | ¡¡|j ¡rH| d¡}| | ¡¡|S)zþGet the list of files that are input to this command, ie. the files that get installed as they are named in the build tree. The files in this list correspond one-to-one to the output filenames returned by 'get_outputs()'. r'r()r"r#r3Úextendr6r))rZinputsr'r(rrrÚ get_inputsÉs    zinstall_lib.get_inputsN)Ú__name__Ú __module__Ú __qualname__Z descriptionZ user_optionsZboolean_optionsZ negative_optrrr&r!rr$r>rGr6rIrrrrrs*÷   r) Ú__doc__r*Úimportlib.utilrDr1Zdistutils.corerZdistutils.errorsrrCrrrrrÚs