AlkantarClanX12
Current Path : /lib/python3.8/site-packages/setuptools/__pycache__/ |
Current File : //lib/python3.8/site-packages/setuptools/__pycache__/wheel.cpython-38.pyc |
U �Qab� � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl mZ ddlm Z ddlmZ ddl mZ ddlmZ eZe�d ej�jZd Zdd� ZG d d� d�ZdS )zWheels support.� )�get_platformN)� parse_version)�canonicalize_name)�PY3)� pep425tags)�write_requirementsz�^(?P<project_name>.+?)-(?P<version>\d.*?) ((-(?P<build>\d.*?))?-(?P<py_version>.+?)-(?P<abi>.+?)-(?P<platform>.+?) )\.whl$z�try: __import__('pkg_resources').declare_namespace(__name__) except ImportError: __path__ = __import__('pkgutil').extend_path(__path__, __name__) c C s� t �| �D ]�\}}}t j�|| �}|D ].}t j�||�}t j�|||�}t �||� q&ttt|���D ]D\} } t j�|| �}t j�||| �}t j� |�sft �||� || = qfq t j| dd�D ]\}}}|r�t �t �|� q�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)Zsrc_dirZdst_dir�dirpathZdirnames� filenames�subdir�f�srcZdst�n�d� r �4/usr/lib/python3.8/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 sP t tj�|��}|d kr$td| ��|| _|�� �� D ]\}}t| ||� q6d S )Nzinvalid wheel name: %r) � WHEEL_NAMEr r �basename� ValueError�filename� groupdict�items�setattr)�selfr# �match�k�vr r r �__init__= s zWheel.__init__c C s&