� !A?h� � �P � d dl Z d dlmZ d dlmZ d dlmZ G d� de� � ZdS )� N)�Command)�log)�ST_MODEc �@ � e Zd ZdZg d�ZddgZd� Zd� Zd� Zd� Z d � Z d S )�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 �> � d | _ d| _ d | _ d | _ d S )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_options s# � ������ ��������� c �b � | � dd� � | � dddd� � d S )N�build)� build_scriptsr �install)r r )r r )r r )�set_undefined_optionsr s r �finalize_optionsz install_scripts.finalize_options! sF � ��"�"�7�,J�K�K�K��"�"�9�#E�#5�#?� $� $� $� $� $r c � � | j s| � d� � | � | j | j � � | _ t j dk r�| � � � D ]q}| j rt j d|� � �t j |� � t dz dz }t j d||� � t j ||� � �pd S 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�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�(�(�(�(� �� )� )r c � � | j j pg S �N)�distribution�scriptsr s r � get_inputszinstall_scripts.get_inputs8 s � �� �(�.�B�.r c � � | j pg S r, )r r s r r# zinstall_scripts.get_outputs; s � ��}�"��"r N)�__name__� __module__�__qualname__�description�user_options�boolean_optionsr r r* r/ r# � r r r r s� � � � � � �9�K�� � �L� ��-�O�� � �$� $� $� )� )� )�/� /� /�#� #� #� #� #r r )r! �distutils.corer � distutilsr r&