3
”Re¿M ã @ s: d Z ddlZddlZddlZddlZddlmZ ddlmZ ddl m
Z
ddlmZm
Z
mZmZmZmZmZ ddlmZ ddlmZ dd lmZ dd
lmZmZmZmZ ddlmZ ddl m!Z! dd
l"m#Z# ddl$m%Z% e!�r¾ddl&m'Z'm(Z(m)Z)m*Z* ddl+m,Z, ddlm-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7 ddlm8Z8 e�r†e,de'e9e(e9 ge(e9 f e:dœdd�Z;n8e,de'e9e9gdf e'e9e(e9 ge(e9 f e:e:dœdd�Z;ejdd„ Z?dd „ Z@G d!d"„ d"eAƒZBd3d#d$„ZCd%d&„ ZDd'd(„ ZEd4d)d*„ZFd5d+d,„ZGd-d.„ ZHd/d0„ ZIG d1d2„ d2eAƒZJdS )6z)Prepares a distribution for installation
é N)ÚPY2)Ú)make_distribution_for_install_requirement)ÚInstalledDistribution)ÚDirectoryUrlHashUnsupportedÚHashMismatchÚHashUnpinnedÚInstallationErrorÚNetworkConnectionErrorÚPreviousBuildDirErrorÚVcsHashUnsupported)Úcopy2_fixed)Ú
MissingHashes)Ú
indent_log)Údisplay_pathÚhide_urlÚpath_to_displayÚrmtree)Ú
TempDirectory)ÚMYPY_CHECK_RUNNING)Úunpack_file)Úvcs)ÚCallableÚListÚOptionalÚTuple)Ú TypedDict)ÚAbstractDistribution)Ú
PackageFinder)ÚLink)Ú
Downloader)ÚInstallRequirement)ÚRequirementTracker)ÚHashesÚCopytreeKwargs)ÚignoreÚsymlinksF)Útotal)Ú
copy_functionr$ Úignore_dangling_symlinksr% c
C s. t | ƒ}|j| ƒ� |j||ƒ W dQ R X |S )z-Prepare a distribution for installation.
N)r ÚtrackÚprepare_distribution_metadata)ÚreqÚreq_trackerÚfinderÚbuild_isolationÚ
abstract_dist© r0 ú�/builddir/build/BUILDROOT/alt-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/site-packages/pip/_internal/operations/prepare.pyÚ_get_prepared_distributionP s r2 c C s0 t j| jƒ}|d k st‚|j|t| jƒd� d S )N)Úurl)r Úget_backend_for_schemeÚschemeÚAssertionErrorÚunpackr r3 )ÚlinkÚlocationÚvcs_backendr0 r0 r1 Úunpack_vcs_link_ s r; c @ s e Zd Zdd„ ZdS )ÚFilec C s || _ || _d S )N)ÚpathÚcontent_type)Úselfr= r> r0 r0 r1 Ú__init__g s z
File.__init__N)Ú__name__Ú
__module__Ú__qualname__r@ r0 r0 r0 r1 r<