MINI MINI MANI MO
3
\á ã @ s@ d dl Z d dlmZ d dlmZ d dlmZ G dd„ deƒZdS )é N)ÚCommand)Úlog)ÚST_MODEc @ sL e Zd ZdZddddgZddgZdd„ Zdd„ Zdd„ Zdd„ Z dd„ Z
dS )Úinstall_scriptsz%install scripts (Python or otherwise)úinstall-dir=Údúdirectory to install scripts toú
build-dir=Úbú'build directory (where to install from)ÚforceÚfú-force installation (overwrite existing files)ú
skip-buildNúskip the build stepsc C s d | _ d| _d | _d | _d S )Nr )Úinstall_dirr Ú build_dirÚ
skip_build)Úself© r ú9/usr/lib64/python3.6/distutils/command/install_scripts.pyÚinitialize_options s z"install_scripts.initialize_optionsc C s | j dd ƒ | j dd
ddƒ d S )
NZbuildÚ
build_scriptsr Zinstallr r r r )r r )r r )r r )r r )Zset_undefined_options)r r r r Úfinalize_options! s
z install_scripts.finalize_optionsc C s† | j s| jdƒ | j| j| jƒ| _tjdkr‚xT| jƒ D ]H}| j rNt
jd|ƒ q6tj|ƒt
dB d@ }t
jd||ƒ tj||ƒ q6W 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 jp
g S )N)ZdistributionÚscripts)r r r r Ú
get_inputs8 s zinstall_scripts.get_inputsc C s
| j pg S )N)r )r r r r r ; s zinstall_scripts.get_outputs)r r r )r r
r )r r
r )r Nr )Ú__name__Ú
__module__Ú__qualname__ZdescriptionZuser_optionsZboolean_optionsr r r$ r&