Current File : //usr/lib/python3/dist-packages/setuptools/command/__pycache__/install_egg_info.cpython-312.pyc
�

0A7h����ddlmZmZddlZddlZddlmZddlmZddlm	Z	ddl
mZGd�d	eje�Z
y)
�)�log�dir_utilN)�Command)�
namespaces)�unpack_archive�)�ensure_directoryc�8�eZdZdZdZdgZd�Zd�Zd�Zd�Z	d�Z
y)	�install_egg_infoz.Install an .egg-info directory for the package)zinstall-dir=�dzdirectory to install toc�.�d|_d|_d|_y�N)�install_dir�install_layout�
prefix_option��selfs �E/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py�initialize_optionsz#install_egg_info.initialize_optionss�����"���!���c���|jdd�|jdd�tjdkDr|jdd�|jd�}|j	��d�}|j
rm|j
j
�d	vrtd
��|j
j
�|_|jdtjddzd
�}nE|jsdtjvrn&|jdtjddzd
�}|j|_
tjj!|j"|�|_g|_y)N�install_lib)rr�install)rri)rr�egg_infoz	.egg-info��debz"unknown value for --install-layoutz-py%s���real_prefix)�set_undefined_options�sys�
hexversion�get_finalized_command�_get_egg_basenamer�lower�DistutilsOptionError�replace�versionr�__dict__r�source�os�path�joinr�target�outputs)r�ei_cmd�basenames   r�finalize_optionsz!install_egg_info.finalize_optionss1���"�"�=�2P�Q��"�"�9�-P�Q��>�>�I�%��&�&�y�1R�S��+�+�J�7���.�.�0�1��;������&�&�,�,�.�'�9�*�+O�P�P�"&�"5�"5�";�";�"=�D���'�'��#�+�+�b�q�/�(A�2�F�H�
�
�
�=�C�L�L�#@���'�'��#�+�+�b�q�/�(A�2�F�H��o�o����g�g�l�l�4�#3�#3�X�>�����rc��|jd�tjj|j�rUtjj|j�s,t
j|j|j��nbtjj|j�r9|jtj|jfd|jz�|jst|j�|j|jdd|j�d|j���|j�y)Nr)�dry_runz	Removing �zCopying z to )�run_commandr+r,�isdirr.�islinkr�remove_treer4�exists�execute�unlinkr	�copytreer*�install_namespacesrs r�runzinstall_egg_info.run/s�������$�
�7�7�=�=����%�b�g�g�n�n�T�[�[�.I�� � ����d�l�l�C�
�W�W�^�^�D�K�K�
(��L�L����T�[�[�N�K�$�+�+�4M�N��|�|��T�[�[�)����T�]�]�B�d�k�k�4�;�;�(W�X����!rc��|jSr)r/rs r�get_outputszinstall_egg_info.get_outputs:s���|�|�rc�R���fd�}t�j�j|�y)Nc�0��dD]}|j|�sd|z|vs�y�jr5�jdvr'|jd�rtjd�y�jj|�tjd||�|S)N)z.svn/zCVS/�/rzSOURCES.txtzSkipping SOURCES.txtzCopying %s to %s)�
startswithrr�infor/�append�debug)�src�dst�skiprs   �r�skimmerz*install_egg_info.copytree.<locals>.skimmer?s����(�
 ���>�>�$�'�3��:��+<��
 ��"�"�t�':�':�g�'E�#�.�.�Yf�Jg����/�0���L�L����$��I�I�(�#�s�3��Jr)rr*r.)rrLs` rr=zinstall_egg_info.copytree=s���	�	�t�{�{�D�K�K��9rN)�__name__�
__module__�__qualname__�__doc__�description�user_optionsrr2r?rAr=r5rrrr
s/��8�B�K�	9��L�"�
�.	"��:rr)�	distutilsrrr+r!�
setuptoolsrr�setuptools.archive_utilr�_pathr	�	Installerrr5rr�<module>rXs-��#���!�2�$�C:�z�+�+�W�C:r