Your IP : 3.138.137.244
B
��Re` � @ s� d Z ddlmZ ddlmZ ddlZddlZddlZddlZddl Z ddl
Z
ddlZddlZddlm
Z
ddlmZ ddlmZ ddlmZ e �d e j�jZd
Zdd� ZG d
d� d�ZdS )zWheels support.� )�get_platform)�logN)�
parse_version)�sys_tags)�canonicalize_name)�write_requirementsz�^(?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 C s� x�t �| �D ]�\}}}t j�|| �}x6|D ].}t j�||�}t j�|||�}t �||� q*W xXttt|���D ]D\} }
t j�||
�}t j�|||
�}t j� |�snt �||� || = qnW qW x.t j| dd�D ]\}}}|r�t
�t �|� q�W dS )zDMove everything under `src_dir` to `dst_dir`, and delete the former.T)�topdownN)�os�walk�path�relpath�join�renames�reversed�list� enumerate�exists�AssertionError�rmdir)�src_dirZdst_dir�dirpath�dirnames� filenames�subdir�f�src�dst�n�d� r ��/builddir/build/BUILDROOT/alt-python37-setuptools-58.3.0-4.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/setuptools/wheel.py�unpack s
r! c @ sh e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z e
dd� �Ze
dd� �Ze
dd� �Z
dS )�Wheelc C sT t tj�|��}|d kr$td| ��|| _x$|�� �� D ]\}}t| ||� q8W d S )Nzinvalid wheel name: %r) �
WHEEL_NAMEr r �basename�
ValueError�filename� groupdict�items�setattr)�selfr&