ok
Direktori : /opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/ |
Current File : //opt/alt/python36/lib/python3.6/site-packages/setuptools/__pycache__/wheel.cpython-36.pyc |
3 �t^A � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z m Z mZ ddlm Z ddlm Z ddlmZ ddlmZ ejd ej�jZd Zdd� ZG d d� de�ZdS )zWheels support.� )�get_platformN)�Distribution�PathMetadata� parse_version)�PY3)r )� 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� x�t j| �D ]�\}}}t jj|| �}x6|D ].}t jj||�}t jj|||�}t j||� q*W xXttt|���D ]D\} } t jj|| �}t jj||| �}t jj |�snt j||� || = qnW qW x0t j| dd�D ]\}}}| s�t �t j|� 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)Zsrc_dirZdst_dir�dirpathZdirnames� filenames�subdir�f�src�dst�n�d� r � /wheel.py�unpack s r c @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )�Wheelc C sT t tjj|��}|d kr$td| ��|| _x$|j� j� D ]\}}t| ||� q8W d S )Nzinvalid wheel name: %r) � WHEEL_NAMEr r �basename� ValueError�filename� groupdict�items�setattr)�selfr% �match�k�vr r r �__init__7 s zWheel.__init__c C s&