관리-도구
편집 파일: install_scripts.cpython-311.pyc
� N�Dg7 � �f � d dl mZ d dlmc mZ d dlZd dlZddlm Z G d� dej � � ZdS )� )�logN� )�ensure_directoryc �, � e Zd ZdZd� Zd� Zd� Zdd�ZdS ) �install_scriptsz;Do normal script install, plus any egg_info wrapper scriptsc �R � t j � | � � d| _ d S )NF)�origr �initialize_options�no_ep��selfs ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/install_scripts.pyr z"install_scripts.initialize_options s$ � ���/�/��5�5�5��� � � � c �� � | � d� � | j j r t j � | � � ng | _ | j rd S | � � � d S )N�egg_info) �run_command�distribution�scriptsr r �run�outfilesr �_install_ep_scriptsr s r r zinstall_scripts.run sl � �����$�$�$���$� �� �$�$�T�*�*�*�*��D�M��:� ��F�� � �"�"�"�"�"r c � � ddl m}m} ddlm} | � d� � } ||j ||j |j � � |j |j � � }| � d� � }t |dd � � }|j }|t j k r|g}|� � � }|j � � � � |� � } |� || � � � � � D ]} | j | � � d S )Nr )�Distribution�PathMetadata� )�easy_installr � build_scripts� executable)� pkg_resourcesr r � r �get_finalized_command�egg_baser �egg_name�egg_version�getattr�ScriptWriter�sysr �best�command_spec_class� from_param�get_args� as_header�write_script)r r r �ei�ei_cmd�dist�bs_cmd� exec_param�writer�cmd�argss r r z#install_scripts._install_ep_scripts s' � �<�<�<�<�<�<�<�<�(�(�(�(�(�(��+�+�J�7�7���|��O��L���&�/�:�:��O��� � �� �+�+�O�<�<���V�\�4�8�8� �������'�'� %��J��������'�,�,�.�.�9�9�*�E�E���O�O�D�#�-�-�/�/�:�:� %� %�D��D��t�$�$�$� %� %r �tc � � ddl m}m} t j d|| j � � t j � | j |� � }| j � |� � |� � }| j s\t |� � t |d|z � � } | � |� � | � � � ||d|z � � dS dS )z1Write an executable file to the scripts directoryr )�chmod� current_umaskzInstalling %s script to %s�wi� N)�setuptools.command.easy_installr8 r9 r �info�install_dir�os�path�joinr �append�dry_runr �open�write�close) r �script_name�contents�mode�ignoredr8 r9 �target�mask�fs r r- zinstall_scripts.write_script4 s� � �H�H�H�H�H�H�H�H���-�{�D�<L�M�M�M�����d�.��<�<��� ���V�$�$�$��}�����|� (��V�$�$�$��V�S�4�Z�(�(�A� �G�G�H���� �G�G�I�I�I��E�&�%�$�,�'�'�'�'�'� (� (r N)r6 )�__name__� __module__�__qualname__�__doc__r r r r- � r r r r s[ � � � � � �E�E�� � � #� #� #�%� %� %�2(� (� (� (� (� (r r ) � distutilsr �!distutils.command.install_scripts�commandr r r>