� !A?h���R�dZddlZddlmZddlmZddlmZGd�de��ZdS)zudistutils.command.install_scripts Implements the Distutils 'install_scripts' command, for installing Python scripts.�N)�Command)�log)�ST_MODEc�@�eZdZdZgd�ZddgZd�Zd�Zd�Zd�Z d �Z d S) �install_scriptsz%install scripts (Python or otherwise)))z install-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�>�d|_d|_d|_d|_dS)Nr)� install_dirr � build_dir� skip_build��selfs �N/opt/alt/python-internal/lib64/python3.11/distutils/command/install_scripts.py�initialize_optionsz"install_scripts.initialize_optionss#������� ���������c�b�|�dd��|�dddd��dS)N�build)� build_scriptsr�install)rr)r r )rr)�set_undefined_optionsrs r�finalize_optionsz install_scripts.finalize_options!sF�� �"�"�7�,J�K�K�K� �"�"�9�#E�#5�#?� $� $� $� $� $rc��|js|�d��|�|j|j��|_t jdkr�|���D]q}|j rtj d|���t j |��tdzdz}tj d||��t j||���pdSdS)Nr�posixzchanging mode of %simi�zchanging mode of %s to %o)r� run_command� copy_treerr�outfiles�os�name� get_outputs�dry_runr�info�statr�chmod)r�file�modes r�runzinstall_scripts.run)s����� .� � � �_� -� -� -����t�~�t�7G�H�H�� � �7�g� � ��(�(�*�*� )� )���<�)��H�2�D�9�9�9�9��W�T�]�]�7�3�u�<��F�D��H�8�$��E�E�E��H�T�4�(�(�(�(� � � )� )rc��|jjpgS�N)� distribution�scriptsrs r� get_inputszinstall_scripts.get_inputs8s��� �(�.�B�.rc��|jpgSr,)r rs rr#zinstall_scripts.get_outputs;s���}�"��"rN) �__name__� __module__� __qualname__� description� user_options�boolean_optionsrrr*r/r#�rrrrs�������9�K����L�� �-�O���� $�$�$� )� )� )�/�/�/�#�#�#�#�#rr) �__doc__r!�distutils.corer� distutilsrr&rrr7rr�r;s����� � � � �"�"�"�"�"�"�������������.#�.#�.#�.#�.#�g�.#�.#�.#�.#�.#r