File: //snap/certbot/4965/lib/python3.12/site-packages/setuptools/__pycache__/wheel.cpython-312.pyc
�
9�h% � � � d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m
Z
ddlmZ ddl
mZ ddlmZ ddlZddlmZ ddlmZmZ d d
lmZ d dlmZ d dlmZ dd
lmZ ej@ dejB � jD Z#dZ$ejJ d� � Z&dd�Z'ejP d� � Z) G d� d� Z*y)zWheels support.� N)�Requirement)�sys_tags)�canonicalize_name)�Version)�_unpack_zipfile_obj)�
_egg_basename�write_requirements� )�extras_from_deps)�metadata)�_read_utf8_with_fallback)�get_platformz�^(?P<project_name>.+?)-(?P<version>\d.*?)
((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?)
)\.whl$z8__import__('pkg_resources').declare_namespace(__name__)
c �~ � t � D � ch c]% } | j | j | j f��' c} S c c} w �N)r �interpreter�abi�platform)�ts ��/build/snapcraft-certbot-c9561b03ef7f16aa90eb6754ca5f17a1/parts/certbot/install/lib/python3.12/site-packages/setuptools/wheel.py�_get_supported_tagsr % s. � �
9A�
�C�1�Q�]�]�A�E�E�1�:�:�.�C�C��Cs �*:c �� � t j | � D �]$ \ }}}t j j || � }|D ]Y }t j j ||� }t j j |||� }t j
||� �[ t
t t |� � � D ] \ } }
t j j ||
� }t j j |||
� }t j j |� r�gt j
||� || = �� ��' t j | d�� D ] \ }}}|rJ �t j |� �! y)zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)�topdownN)�os�walk�path�relpath�join�renames�reversed�list� enumerate�exists�rmdir)�src_dir�dst_dir�dirpath�dirnames� filenames�subdir�f�src�dst�n�ds r �unpackr/ - s( � �(*����(8�
�$���9�������'�2��� !�A��'�'�,�,�w��*�C��'�'�,�,�w���2�C��J�J�s�C� � !� �T�)�H�"5�6�7� �D�A�q��'�'�,�,�w��*�C��'�'�,�,�w���2�C��7�7�>�>�#�&� �
�
�3��$��Q�K� �
� )+�����(F� �$���9���}�
������ c # � K � ddl m} | j | j � } d�� | j |� y# | j |� w xY w�w)z*
Temporarily disable info traces.
r )�logN)� distutilsr2 �
set_threshold�WARN)r2 �saveds r �disable_info_tracesr7 C sC � �� �
����c�h�h�'�E�!�
����%� �����%� �s �"A�; �A�A�Ac �z � e Zd Zd
d�Zd� Zd� Zd� Zd� Zd
d�Zd� Z e
d � � Ze
d
� � Ze
d� � Z
e
d� � Zy)�WheelNc �� � t t j j |� � }|�t d|��� �|| _ |j
� j � D ] \ }}t | ||� � y )Nzinvalid wheel name: ) �
WHEEL_NAMEr r �basename�
ValueError�filename� groupdict�items�setattr)�selfr>