� ,�Re���~�ddlmZmZddlZddlmZddlmZddlmZddl m Z ddl Z Gd�d ej e��Z dS) �)�log�dir_utilN)�Command)� namespaces)�unpack_archive�)�ensure_directoryc�:�eZdZdZdZdgZd�Zd�Zd�Zd�Z d�Z dS) �install_egg_infoz.Install an .egg-info directory for the package)z install-dir=�dzdirectory to install toc��d|_dS�N)� install_dir��selfs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/install_egg_info.py�initialize_optionsz#install_egg_info.initialize_optionss�������c�B�|�dd��|�d��}tjdd|j|j�����dz}|j|_tj � |j |��|_ g|_ dS)N� install_lib)rr�egg_infoz .egg-info)�set_undefined_options�get_finalized_command� pkg_resources� Distribution�egg_name� egg_versionr�source�os�path�joinr�target�outputs)r�ei_cmd�basenames r�finalize_optionsz!install_egg_info.finalize_optionss��� �"�"�=�#A� C� C� C��+�+�J�7�7�� �-� �$����);� � � �(�*�*�{�#���o�� ��g�l�l�4�#3�X�>�>�� ��� � � rc�^�|�d��tj�|j��rEtj�|j��s!t j|j|j���nStj� |j��r/|� tj |jfd|jz��|jst|j��|� |j dd|j�d|j����|���dS)Nr)�dry_runz Removing �zCopying z to )� run_commandrr �isdirr"�islinkr� remove_treer(�exists�execute�unlinkr �copytreer�install_namespacesrs r�runzinstall_egg_info.run"s�� ����$�$�$� �7�=�=��� %� %� O�b�g�n�n�T�[�.I�.I� O� � ���d�l� C� C� C� C� C� �W�^�^�D�K� (� (� O� �L�L���T�[�N�K�$�+�4M� N� N� N��|� *� �T�[� )� )� )� � � � �M�2�2�T�[�[�[�$�+�+�N� � � � ���!�!�!�!�!rc��|jSr)r#rs r� get_outputszinstall_egg_info.get_outputs/s ���|�rc�H���fd�}t�j�j|��dS)Nc���dD]!}|�|��sd|z|vrdS�"�j�|��tjd||��|S)N)z.svn/zCVS/�/zCopying %s to %s)� startswithr#�appendr�debug)�src�dst�skiprs �r�skimmerz*install_egg_info.copytree..skimmer4sr���(� � ���>�>�$�'�'� �3��:��+<�+<��4�4�,=� �L� � �� $� $� $� �I�(�#�s� 3� 3� 3��Jr)rrr")rr?s` rr1zinstall_egg_info.copytree2s:��� � � � � � �t�{�D�K��9�9�9�9�9rN) �__name__� __module__� __qualname__�__doc__� description� user_optionsrr&r3r5r1r)rrr r sv������8�8�B�K� 9��L� � � � � � � "� "� "���� :� :� :� :� :rr )� distutilsrrr� setuptoolsrr�setuptools.archive_utilr�_pathr r� Installerr r)rr�rKs���#�#�#�#�#�#�#�#� � � � �������!�!�!�!�!�!�2�2�2�2�2�2�$�$�$�$�$�$�����4:�4:�4:�4:�4:�z�+�W�4:�4:�4:�4:�4:r