File: //lib64/python3.8/distutils/command/__pycache__/install_scripts.cpython-38.opt-1.pyc
U
e5dá ã @ sD d Z ddlZddlmZ ddlmZ ddlmZ G dd„ deƒZdS )zudistutils.command.install_scripts
Implements the Distutils 'install_scripts' command, for installing
Python scripts.é N)ÚCommand)Úlog)ÚST_MODEc @ sL e Zd ZdZddddgZddgZdd „ Zd
d„ Zdd
„ Zdd„ Z dd„ 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 ú9/usr/lib64/python3.8/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 ]H}| j rLt
d|¡ q4t |¡t
dB d@ }t
d||¡ t ||¡ q4d 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 jp
g 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__ZdescriptionZuser_optionsZboolean_optionsr r r r! r r r r r r s ür ) Ú__doc__r Zdistutils.corer Z distutilsr r r r r r r r Ú<module> s