관리-도구
편집 파일: bdist_egg.cpython-311.pyc
� N�Dg�@ � �N � d Z ddlmZmZ ddlmZ ddlmZ ddlZddl Z ddl Z ddlZddlZddl mZ ddlmZ dd lmZ dd lmZmZ d� Zd� Zd � Zd� Z G d� de� � Ze� d� � � � � Zd� Zd� Z d� Z!ddd�Z"d� Z#d� Z$d� Z%g d�Z&dd�Z'dS ) z6setuptools.command.bdist_egg Build .egg distributions� )�remove_tree�mkpath)�log)�CodeTypeN)�Library)�Command� )�ensure_directory)�get_path�get_python_versionc � � t d� � S )N�purelib)r � � �|/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/command/bdist_egg.py�_get_purelibr s � ��I���r c � � d| v r%t j � | � � d } | � d� � r | d d� } | S )N�.r �modulei����)�os�path�splitext�endswith)�filenames r �strip_moduler sM � � �h����7�#�#�H�-�-�a�0������"�"� !��C�R�C�=���Or c # � K � t j | � � D ]5\ }}}|� � � |� � � |||fV � �6dS )zbDo os.walk in a reproducible way, independent of indeterministic filesystem readdir order N)r �walk�sort)�dir�base�dirs�filess r �sorted_walkr# ! s` � � � � �W�S�\�\� � ���d�E�� � ���� � � �����D�%������ � r c �� � t j d� � � � � }t |d� � 5 }|� || z � � d d d � � d S # 1 swxY w Y d S )Na� def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, importlib.util __file__ = pkg_resources.resource_filename(__name__, %r) __loader__ = None; del __bootstrap__, __loader__ spec = importlib.util.spec_from_file_location(__name__,__file__) mod = importlib.util.module_from_spec(spec) spec.loader.exec_module(mod) __bootstrap__() �w)�textwrap�dedent�lstrip�open�write)�resource�pyfile�_stub_template�fs r � write_stubr/ + s� � ��_� �� � �f�h�h� � �f�c� � � +�a� �����)�*�*�*�+� +� +� +� +� +� +� +� +� +� +� +���� +� +� +� +� +� +s �A�A!�$A!c �d � e Zd ZdZg d�Zg d�Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� ZdS )� bdist_eggzcreate an "egg" distribution))z bdist-dir=�bz1temporary directory for creating the distribution)z plat-name=�pzdplatform name to embed in generated filenames (by default uses `pkg_resources.get_build_platform()`))�exclude-source-filesNz+remove all .py files from the generated egg)� keep-temp�kzPkeep the pseudo-installation tree around after creating the distribution archive)z dist-dir=�dz-directory to put final built distributions in)� skip-buildNz2skip rebuilding everything (for testing/debugging))r5 r8 r4 c �h � d | _ d | _ d| _ d | _ d| _ d | _ d | _ d S )Nr )� bdist_dir� plat_name� keep_temp�dist_dir� skip_build� egg_output�exclude_source_files��selfs r �initialize_optionszbdist_egg.initialize_optionsU s: � ������������ �������$(��!�!�!r c �4 � | � d� � x}| _ |j | _ | j �?| � d� � j }t j � |d� � | _ | j �ddl m } |� � | _ | � dd� � | j �p|� t � � | j � � � o| j �� � }t j � | j |dz � � | _ d S d S ) N�egg_info�bdist�eggr )�get_build_platform)r= r= )� py_version�platformz.egg)�get_finalized_command�ei_cmdrE r: � bdist_baser r �joinr; � pkg_resourcesrH �set_undefined_optionsr? �_get_egg_basenamer �distribution�has_ext_modulesr= )rB rL rM rH �basenames r �finalize_optionszbdist_egg.finalize_options^ s � �#�9�9�*�E�E�E������� ��>�!��3�3�G�<�<�G�J��W�\�\�*�e�<�<�D�N��>�!�8�8�8�8�8�8�/�/�1�1�D�N��"�"�7�,D�E�E�E��?�"��/�/�-�/�/��*�:�:�<�<�O��� 0� � �H� !�g�l�l�4�=�(�V�:K�L�L�D�O�O�O� #�"r c � � | j | � d� � _ t j � t j � t � � � � � � }| j j g c}| j _ |D ]�}t |t � � r�t |� � dk r�t j � |d � � r�t j � |d � � }t j � |� � }||k s"|� |t j z � � r"|t |� � dz d � |d f}| j j � |� � �� t# j d| j � � | � ddd �� � || j _ d S # || j _ w xY w)N�installr r � zinstalling package data to %s�install_data)�force�root)r: rK �install_libr r �normcase�realpathr rR � data_files� isinstance�tuple�len�isabs� startswith�sep�appendr �info�call_command)rB � site_packages�old�itemr^ � normalizeds r �do_install_datazbdist_egg.do_install_datav s� � �<@�N��"�"�9�-�-�9���(�(���)9�)9�,�.�.�)I�)I�J�J� �,0�,=�,H�"�)��T� � )�� 6� 6�D��$��&�&� K�3�t�9�9��>�>��7�=�=��a��)�)� K�!�w�/�/��Q��8�8�H�!#��!1�!1�(�!;�!;�J�!�]�2�2�j�6K�6K�%���.�7� 7�2� (��M�(:�(:�Q�(>�(@�(@�A�4��7�J����(�/�/��5�5�5�5� /��H�4�d�n�E�E�E����n�A�D��A�A�A�+.�D��(�(�(��3�D��(�.�.�.�.s �2G �Gc � � | j gS )N)r? rA s r �get_outputszbdist_egg.get_outputs� s � ��� � r c � � t D ]}|� || j � � �|� d| j � � |� d| j � � | j |fi |��}| � |� � |S )z8Invoke reinitialized command `cmdname` with keyword argsr>