a (šReá ã @ 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 @ 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 ú£/builddir/build/BUILDROOT/alt-python39-setuptools-58.3.0-2.el8.x86_64/opt/alt/python39/lib/python3.9/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_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 Ú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Úscriptsr r r r Ú get_inputs8 s zinstall_scripts.get_inputsc C s | j pg S r&