3
Q'íc
} ã @ s$ d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ddl
Z ddlZddlZddl
Z
ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlZddlmZ ddlmZmZ dd lmZmZm Z dd
l!m"Z"m#Z# ddlm$Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z* dd
l+m,Z, ddl-m.Z. ddl/m0Z0 ddl1m2Z2 ddl3m4Z4 ddl5m6Z6 ddl7m8Z8 dZ9d9Z:ej;e<Z=G dd de>Z?dd Z@dd ZAd;ddZBd d! ZCd"d# ZDejEd$ejFZGd%d& ZHd'd( ZId<d+d,ZJd-d. ZKeKd/d0 ZLd1d2 ZMd3d4 ZNG d5d6 d6e>ZOG d7d8 d8e>ZPdS )=zH
Support for installing and building the "wheel" binary package format.
é )Úabsolute_importN)Úurlsafe_b64encode)ÚParser)ÚStringIO)Ú
expanduser)Úpath_to_urlÚ
unpack_url)ÚInstallationErrorÚInvalidWheelFilenameÚUnsupportedWheel)Údistutils_schemeÚPIP_DELETE_MARKER_FILENAME)Ú
pep425tags)Úcall_subprocessÚ
ensure_dirÚcaptured_stdoutÚrmtreeÚread_chunks)Úopen_spinner)Ú
indent_log)ÚSETUPTOOLS_SHIM)ÚScriptMaker)Ú
pkg_resources)Úcanonicalize_name)Úconfigparserz.whlé c @ s e Zd ZdZdd Zdd ZdS )Ú
WheelCachez&A cache of wheels for future installs.c C s |rt |nd| _|| _dS )zÉCreate a wheel cache.
:param cache_dir: The root of the cache.
:param format_control: A pip.index.FormatControl object to limit
binaries being read from the cache.
N)r Ú
_cache_dirÚ_format_control)ÚselfÚ cache_dirÚformat_control© r"