B eÙØ(ÏÝTã @ 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))z skip-buildNzskip the build stepsr z skip-buildc C s d | _ d| _d | _d | _d S )Nr )Úinstall_dirr Ú build_dirÚ skip_build)Úself© r ú£/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el9.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/_distutils/command/install_scripts.pyÚinitialize_options s z"install_scripts.initialize_optionsc C s | dd¡ | dddd¡ d S )NÚbuild)Ú build_scriptsr Úinstall)r r )r r )r r )Úset_undefined_options)r r r r Úfinalize_options! s z install_scripts.finalize_optionsc C s† | j s| d¡ | | j| j¡| _tjdkr‚xT| ¡ D ]H}| j rNt d|¡ q6t |¡t dB d@ }t d||¡ t ||¡ q6W d S )Nr Úposixzchanging mode of %sim iÿ zchanging mode of %s to %o)r Úrun_commandÚ copy_treer r ÚoutfilesÚosÚnameÚget_outputsÚdry_runr ÚinfoÚstatr Úchmod)r ÚfileÚmoder r r Úrun) s zinstall_scripts.runc C s | j jp g S )N)ÚdistributionÚ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_outputsN)Ú__name__Ú __module__Ú__qualname__ÚdescriptionÚuser_optionsÚboolean_optionsr r r# r&