/usr/local/lib/python3.9/site-packages/pip/_internal/operations/__pycache__
a ���h�o � @ sl d Z ddlmZ ddlZddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZmZmZmZmZmZ dd lmZ ddl m!Z!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7m8Z8 ddl9m:Z:m;Z; ddl<m=Z= ddl>m?Z?m@Z@mAZAmBZB ddlCmDZD ddlEmFZF ddlGmHZH e �r�ddlImJZJ e5eK�ZLd d!d"d#d#d$d%�d&d'�ZMd(d)d*d+d,�d-d.�ZNe G d/d0� d0��ZOdDd(d1d2d3d0d4�d5d6�ZPdEd(d2d3d0d7�d8d9�ZQdFd(d)d1d*d2d3d:d;�d<d=�ZRdGd(d)d3d#d2d?�d@dA�ZSG dBdC� dC�ZTdS )Hz(Prepares a distribution for installation� )�annotationsN)�Iterable)� dataclass)�Path)� TYPE_CHECKING)�canonicalize_name)�BuildEnvironmentInstaller)�)make_distribution_for_install_requirement)�InstalledDistribution)�DirectoryUrlHashUnsupported�HashMismatch�HashUnpinned�InstallationError�MetadataInconsistent�NetworkConnectionError�VcsHashUnsupported)� PackageFinder)�BaseDistribution�get_metadata_distribution)�ArchiveInfo)�Link)�Wheel)� Downloader)�HTTPRangeRequestUnsupported�dist_from_wheel_url)� PipSession)�BuildTracker)�InstallRequirement)� getLogger)�direct_url_for_editable�direct_url_from_link)�Hashes� MissingHashes)� indent_log)�display_path� hash_file�hide_url�redact_auth_from_requirement)� TempDirectory)�unpack_file)�vcs)�BarTyper r r �boolr )�req� build_tracker�build_env_installer�build_isolation�check_build_deps�returnc C sX t | �}|j}|durP|�| |�� |�|||� W d � n1 sF0 Y |�� S )z(Prepare a distribution for installation.N)r Zbuild_tracker_id�track�prepare_distribution_metadatar )r- r. r/ r0 r1 � abstract_distZ tracker_id� r6 �J/usr/local/lib/python3.9/site-packages/pip/_internal/operations/prepare.py�_get_prepared_distributionA s �"r8 r �str�int�None)�link�location� verbosityr2 c C s2 t �| j�}|d usJ �|j|t| j�|d� d S )N)�urlr>