o
0¦iá ã @ sB d dl Z d dlmZ d dlmZ d dlmZ G dd„ deƒZdS )é N)ÚCommand)Úlog)ÚST_MODEc @ sH e Zd ZdZg d¢ZddgZdd„ Zdd„ Zd d
„ Zdd„ Z d
d„ Z
dS )Úinstall_scriptsz%install scripts (Python or otherwise)))zinstall-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 stepsr r
c C s d | _ d| _d | _d | _d S )Nr )Úinstall_dirr Ú build_dirÚ
skip_build©Úself© r úH/opt/alt/python310/lib64/python3.10/distutils/command/install_scripts.pyÚinitialize_options s
z"install_scripts.initialize_optionsc C s | dd¡ | dddd¡ d S )NZbuild)Ú
build_scriptsr Zinstall)r r )r r )r
r
)Zset_undefined_optionsr r r r Úfinalize_options! s ýz install_scripts.finalize_optionsc C s† | j s| d¡ | | j| j¡| _tjdkr?| ¡ D ]&}| j r&t
d|¡ qt |¡t
dB d@ }t
d||¡ t ||¡ qd S d S )Nr Úposixzchanging mode of %sim iÿ zchanging mode of %s to %o)r
Zrun_commandZ copy_treer r ÚoutfilesÚosÚnameÚget_outputsZdry_runr ÚinfoÚstatr Úchmod)r ÚfileÚmoder r r Úrun) s
÷zinstall_scripts.runc C s | j jpg S ©N)ZdistributionZscriptsr r r r Ú
get_inputs8 s zinstall_scripts.get_inputsc C s
| j pg S r )r r r r r r ; s
zinstall_scripts.get_outputsN)Ú__name__Ú
__module__Ú__qualname__ÚdescriptionZuser_optionsZboolean_optionsr r r r! r r r r r r s r )r Zdistutils.corer Z distutilsr r r r r r r r Ú