관리-도구
편집 파일: bdist_wheel.cpython-311.pyc
� �܋f�S � �� � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZm Z ddlmZ ddlmZ ddlmZ ddlmZ dd lmZmZmZmZmZmZ dd lmZmZ ddlm Z m!Z! dd l"m#Z# ddl$m%Z% ddl$m&Z' ddl(m)Z) erddl*Z*d4d�Z+d5d�Z, e- e!j. d� � d � � Z/dZ0d6d�Z1d7d�Z2d8d�Z3 d9d:d$�Z4d;d%�Z5d4d&�Z6d5d'�Z7d<d.�Z8d=d1�Z9 G d2� d3e � � Z:dS )>zI Create a wheel (.whl) distribution. A wheel is a built archive format. � )�annotationsN)�BytesGenerator� Generator)�EmailPolicy)�log)�iglob)�rmtree)� TYPE_CHECKING�Callable�Iterable�Literal�Sequence�cast)�ZIP_DEFLATED� ZIP_STORED� )�Command�__version__)�pkginfo_to_metadata)�tags��version)� WheelFile�name�str�returnc �. � t j dd| � � S )z�Convert an arbitrary string to a standard distribution name Any runs of non-alphanumeric/. characters are replaced with a single '-'. �[^A-Za-z0-9.]+�-)�re�sub�r s �o/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/setuptools/command/bdist_wheel.py� safe_namer$ # s � � �6�"�C��.�.�.� r c �� � t t j | � � � � S # t j $ r/ | � dd� � } t j dd| � � cY S w xY w)zB Convert an arbitrary string to a standard version string � �.r r )r �_packaging_version�Version�InvalidVersion�replacer r! r s r# �safe_versionr- * sm � �6��%�-�g�6�6�7�7�7���,� 6� 6� 6��/�/�#�s�+�+���v�&��W�5�5�5�5�5�6���s � # �;A!� A!r( zcp3\d�boolc �2 � t j d� � dk S )N�P� )�struct�calcsize� r% r# �_is_32bit_interpreterr5 ; s � ��?�3���1�$�$r% c �, � dt j d � �S )N�pyr )�sys�version_infor4 r% r# � python_tagr: ? s � �%�� ��#�%�%�%r% �archive_root� str | Nonec �� � t j � � }|� d� � r| �ddlm} || |� � }nt � � r|dk rd}n|dk rd}|� d d � � S )z0Return our platform name 'win32', 'linux_x86_64'�macosxNr )�calculate_macosx_platform_tag�linux-x86_64z linux-i686� linux-aarch64zlinux-armv7lr �_)� sysconfig�get_platform� startswith�extern.wheel.macosx_libfiler? r5 r, )r; �resultr? s r# rD rD C s� � � � #� %� %�F� ����"�"� $�|�'?�O�O�O�O�O�O�.�.�|�V�D�D��� � � � $��^�#�#�!�F�F� �� &� &� $�F��>�>�#�s�#�#�#r% T�var�fallback�expected�warnc � � t j | � � }|�$|r t j d| � d�t d�� � |S ||k S )zfUse a fallback value for determining SOABI flags if the needed config var is unset or unavailable.NzConfig variable 'z+' is unset, Python ABI tag may be incorrectr �� stacklevel)rC �get_config_var�warningsrK �RuntimeWarning)rH rI rJ rK �vals r# �get_flagrS W s_ � � � "�3� '� '�C� �{�� ��M�T�C�T�T�T��� � � � � ���(�?�r% c �x � t j d� � } t j � � }| s�|dv r�t t d� � r�d}d}d}t dt t d� � |dk �� � rd }t d |dk |dk ot j dk �� � rt j dk rd}|� t j � � � |� |� |� �}�nk| r;|dk r5| � d � � r d| � d� � d z }�n.| r7|dk r1| � d� � r| � d� � d }n�| ra|dk r[d� | � d� � dd� � � }|� dd� � � dd� � }n�| ra|dk r[d� | � d� � dd� � � }|� dd� � � dd� � }n/| r+| � dd� � � dd� � }nd}|S )zJReturn the ABI tag based on SOABI (if available) or emulate SOABI (PyPy2).�SOABI)�cp�pp� maxunicode� �Py_DEBUG�gettotalrefcountrV )rK �d� WITH_PYMALLOC)� � �m�cpythonr � r rW Nr r( rB �graalpyr^ ) rC rO r �interpreter_name�hasattrr8 rS r9 �interpreter_versionrE �split�joinr, )�soabi�implr\ r` �u�abis r# �get_abi_tagrm h sX � ��)�'�2�2�E�� �"�"�D�� �T�\�)�)�g�c�<�.H�.H�)��������J���-?� @� @��PT��V�V�V� ��A����D�L��$�,�<�3�#3�f�#<� � � � � ���'�'��A��<�t�/�1�1�<�1�<�a�<��<�<��� � �4�4�<�<�E�$4�$4�Y�$?�$?�<��U�[�[��%�%�a�(�(��� � �4�4�<�<�E�$4�$4�T�$:�$:�<��k�k�#���q�!��� � �4�4�<�<��h�h�u�{�{�3�'�'����+�,�,���k�k�#�s�#�#�+�+�C��5�5��� � �4�9�$�$��h�h�u�{�{�3�'�'����+�,�,���k�k�#�s�#�#�+�+�C��5�5��� � ��m�m�C��%�%�-�-�c�3�7�7������Jr% c �H � t | � � � dd� � S �Nr rB )r$ r, r"