� ,�Re�����dZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddlmZddlmZdd lmZGd �d e ��Zd ed efd�Zded efd�Zd�Zd�ZdS)zD Create a dist_info directory As defined in the wheel specification �N)�contextmanager)�cleandoc)�Path)�Command)�log)� packaging)�SetuptoolsDeprecationWarningc�\�eZdZdZgd�ZddgZddiZd�Zd�Ze de d e fd ���Z d �Z d S) � dist_infozcreate a .dist-info directory))z egg-base=�ezjdirectory containing .egg-info directories (default: top of the source tree) DEPRECATED: use --output-dir.)z output-dir=�ozYdirectory inside of which the .dist-info will becreated (default: top of the source tree))�tag-date�dz0Add date stamp (e.g. 20050528) to version number)z tag-build=�bz-Specify explicit tag to add to version number)�no-date�Dz"Don't include date stamp [default])� keep-egg-infoNz,*TRANSITIONAL* will be removed in the futurerrrc�h�d|_d|_d|_d|_d|_d|_d|_dS)NF)�egg_base� output_dir�name� dist_info_dir�tag_date� tag_build� keep_egg_info)�selfs ��/builddir/build/BUILDROOT/alt-python311-setuptools-65.6.3-2.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/setuptools/command/dist_info.py�initialize_optionszdist_info.initialize_options(s;���� ������ �!����� ����"�����c���|jr/d}tj|t��|jp|j|_|j}|jp tj}t|jp|��|_|� d��}t|j��|_|j r |j |_ n |j |_ |j r |j |_ n |j |_ |���||_t!|�����}t%|�����}|�d|��|_tj�|j|j�d���|_dS)NzA--egg-base is deprecated for dist_info command. Use --output-dir.�egg_info�-z .dist-info)r�warnings�warnr r� distribution�src_root�os�curdirr�reinitialize_command�strrr�finalize_optionsr!�_safe�get_name�_version� get_versionr�path�joinr)r�msg�dist� project_dirr!r�versions rr+zdist_info.finalize_options1sN�� �=� ?�U�C� �M�#�;� <� <� <�"�m�>�t��D�O�� ���m�0�r�y� ��t��=�+�>�>����,�,�Z�8�8�����0�0��� �=� .� $� �H� � �$�-�D�M� �>� 0�!%��H� � �%�/�D�N��!�!�#�#�#� �� ��T�]�]�_�_�%�%���4�+�+�-�-�.�.���'�'�g�'�'�� ��W�\�\�$�/�d�i�;S�;S�;S�T�T����r�dir_path� requires_bkpc#�K�|r�|�d�}t|d���t||dd��� dV�t|d���tj||��dS#t|d���tj||��wxYwdV�dS)Nz.__bkp__T)� ignore_errors)� dirs_exist_ok�symlinks)�_rm�_copy�shutil�move)rr6r7�bkp_names r�_maybe_bkp_dirzdist_info._maybe_bkp_dirPs����� � �"�,�,�,�H� ��� -� -� -� -� �(�H�D�4� H� H� H� H� 0������H�D�1�1�1�1�� �H�h�/�/�/�/�/���H�D�1�1�1�1�� �H�h�/�/�/�/���� �E�E�E�E�Es �A�(Bc�4�|j�dd���|j���|jj}tj�|��s Jd���tjd� tj� |j ������|� d��}|� ||j��5|�||j ��ddd��dS#1swxYwYdS)NT)�parents�exist_okz&.egg-info dir should have been createdz creating '{}'� bdist_wheel)r�mkdirr!�runr'r0�isdirr�info�format�abspathr�get_finalized_commandrAr�egg2dist)r� egg_info_dirrEs rrGz dist_info.run^sL�� ����d�T��:�:�:� � �������}�-� ��w�}�}�\�*�*�T�T�,T�T�T�T� ���'�'������8J�(K�(K�L�L�M�M�M��0�0��?�?� �� � ��t�/A� B� B� C� C� � � ��t�/A� B� B� B� C� C� C� C� C� C� C� C� C� C� C� C���� C� C� C� C� C� Cs�$D � D�DN)�__name__� __module__� __qualname__� description� user_options�boolean_options� negative_optrr+rr*�boolrArG�rrr r s�������1�K� � � �L�"�?�3�O��z�*�L�#�#�#�U�U�U�>� �s� �$� � � ��^� � C� C� C� C� Crr � component�returnc�.�tjdd|��S)zAEscape a component used to form a wheel name according to PEP 491z [^\w\d.]+�_)�re�sub)rXs rr,r,ls�� �6�,��Y� /� /�/rr5c�|�|�dd��} ttj�|�����dd��S#tjj$rOd|�d|�d�}t jt|����t|��� d��cYSwxYw)z0Convert an arbitrary string to a version string.� �.r"r[zInvalid version: zk. !! ################### # Invalid version # ################### z� is not valid according to PEP 440. Please make sure specify a valid version for your package. Also note that future releases of setuptools may halt the build process if an invalid version is given. !! ) �replacer*rr5�Version�InvalidVersionr#r$rr,�strip)r5�vr2s rr.r.qs�������S�!�!�A�#��9�$�,�,�Q�/�/�0�0�8�8��c�B�B�B�� � � +� #� #� #�  �G�  �  � �  �  �  �� � �h�s�m�m�$�$�$��Q�x�x�~�~�c�"�"�"�"�"� #���s�?A�A B;�:B;c �l�tj�|��rtj|fi|��dSdS)N)r'r0rHr>�rmtree)�dir_name�optss rr<r<�s@�� �w�}�}�X���(�� �h�'�'�$�'�'�'�'�'�(�(rc �x�tjdkr|�dd��tj||fi|��dS)N)��r:)�sys� version_info�popr>�copytree)�src�dstris rr=r=�sD�� ��&� � � ����$�'�'�'� �O�C��%�%��%�%�%�%�%r)�__doc__r'r\r>rmr#� contextlibr�inspectr�pathlibr�distutils.corer� distutilsr�setuptools.externr�setuptools._deprecation_warningr r r*r,r.r<r=rWrr�r{sc����  � � � � � � � � � � � � � � � �����%�%�%�%�%�%�������������"�"�"�"�"�"�������'�'�'�'�'�'�H�H�H�H�H�H�TC�TC�TC�TC�TC��TC�TC�TC�n0�S�0�S�0�0�0�0� #�c�#�c�#�#�#�#�*(�(�(� &�&�&�&�&r