관리-도구
편집 파일: wheel.cpython-311.pyc
� �܋f � �X � d Z ddlZddlmZmZmZ ddlmZ ddlm Z G d� d� � Z dS )z`Represents a wheel file and provides access to the various parts of the name that have meaning. � N)�Dict�Iterable�List)�Tag)�InvalidWheelFilenamec �� � e Zd ZdZ ej dej � � Zdeddfd�Z de e fd�Zde e de fd �Zde e d eee f de fd�Zdee defd�ZdS ) �WheelzA wheel filez�^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]*?)) ((-(?P<build>\d[^-]*?))?-(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)-(?P<plat>[^\s-]+?) \.whl|\.dist-info)$�filename�returnNc � � � � j � |� � }|st |� d�� � �|� _ |� d� � � dd� � � _ |� d� � � dd� � � _ |� d� � � _ |� d� � � d� � � _ |� d � � � d� � � _ |� d � � � d� � � _ � fd�� j D � � � _ dS ) zX :raises InvalidWheelFilename: when the filename is invalid for a wheel z is not a valid wheel filename.�name�_�-�ver�build�pyver�.�abi�platc �Z �� h | ]'}�j D ]}�j D ]}t |||� � ����(S � )�abis�platsr )�.0�x�y�z�selfs ��Q/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/models/wheel.py� <setcomp>z!Wheel.__init__.<locals>.<setcomp>) s\ �� � � � ��4�9� � �67�d�j� � �IJ�C��1�a�L�L� � � � � � N)� wheel_file_re�matchr r �group�replacer �version� build_tag�split� pyversionsr r � file_tags)r r � wheel_infos ` r �__init__zWheel.__init__ s< �� � �'�-�-�h�7�7� �� U�&�(�'S�'S�'S�T�T�T� �� ��$�$�V�,�,�4�4�S�#�>�>�� � "�'�'��.�.�6�6�s�C�@�@���#�)�)�'�2�2���$�*�*�7�3�3�9�9�#�>�>����$�$�U�+�+�1�1�#�6�6�� ��%�%�f�-�-�3�3�C�8�8�� � � � � �"&�/� � � ����r! c �>