o ÏÓçháã@sB ddlZddlmZddlmZddlmZGdd„deƒZdS)éN)ÚCommand)Úlog)ÚST_MODEc@sHeZdZdZgd¢ZddgZdd„Zdd„Zd d „Zd d „Z d d„Z dS)Úinstall_scriptsz%install scripts (Python or otherwise)))z install-dir=Údzdirectory to install scripts to)z build-dir=Úbz'build directory (where to install from))ÚforceÚfz-force installation (overwrite existing files))ú skip-buildNzskip the build stepsrr cCsd|_d|_d|_d|_dS)Nr)Ú install_dirrÚ build_dirÚ skip_build©Úself©rúH/opt/alt/python310/lib64/python3.10/distutils/command/install_scripts.pyÚinitialize_optionss z"install_scripts.initialize_optionscCs | dd¡| dddd¡dS)NZbuild)Ú build_scriptsr Zinstall)rr )rr)r r )Zset_undefined_optionsrrrrÚfinalize_options!s ýz install_scripts.finalize_optionscCs†|js| d¡| |j|j¡|_tjdkr?| ¡D]&}|j r&t   d|¡qt  |¡t dBd@}t   d||¡t ||¡qdSdS)NrÚposixzchanging mode of %simiÿzchanging mode of %s to %o)r Z run_commandZ copy_treer r ÚoutfilesÚosÚnameÚ get_outputsZdry_runrÚinfoÚstatrÚchmod)rÚfileÚmoderrrÚrun)s   ÷zinstall_scripts.runcCs |jjpgS©N)Z distributionZscriptsrrrrÚ get_inputs8s zinstall_scripts.get_inputscCs |jpgSr )rrrrrr;s zinstall_scripts.get_outputsN) Ú__name__Ú __module__Ú __qualname__Ú descriptionZ user_optionsZboolean_optionsrrrr!rrrrrrs r)rZdistutils.corerZ distutilsrrrrrrrrÚs