3
Q'íc> ã @ s¬ d Z ddlmZ ddlZddlZddlZddlZddlZddlm Z m
Z
mZ ddlm
Z
ddlm Z ddlmZ ddlmZ ejd ejjZd
Zdd ZG d
d deZdS )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$ztry:
__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| ddD ]\}}}| 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)Úsrc_dirZdst_dirÚdirpathÚdirnamesÚ filenamesÚsubdirÚfÚsrcÚdstÚnÚd© r ú6/tmp/pip-build-l_bcah40/setuptools/setuptools/wheel.pyÚunpack s
r"