관리-도구
편집 파일: prepare.cpython-38.pyc
U &?�f�m � @ sj d Z ddlZddlZddlZddlmZ ddlmZ ddlm Z m Z mZmZ ddl mZ ddlmZ ddlmZ dd lmZmZmZmZmZmZmZ dd lmZ ddlmZmZ ddl m!Z! dd l"m#Z# ddl$m%Z% ddl&m'Z'm(Z( ddl)m*Z*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5m6Z6 ddl7m8Z8m9Z9 ddl:m;Z; ddl<m=Z=m>Z>m?Z?m@Z@ ddlAmBZB ddlCmDZD ddlEmFZF e3eG�ZHe1e/eeIeIed�dd�ZJe#eKeLdd�d d!�ZMeG d"d#� d#��ZNd3e#e(eeK ee8 eNd$�d%d&�ZOd4e#eeK ee8 eNd'�d(d)�ZPd5e#eKe(eLeeK ee8 eeN d*�d+d,�ZQd6e#eKee8 eIeeK d.�d/d0�ZRG d1d2� d2�ZSdS )7z)Prepares a distribution for installation � N)� dataclass)�Path)�Dict�Iterable�List�Optional)�canonicalize_name)�)make_distribution_for_install_requirement)�InstalledDistribution)�DirectoryUrlHashUnsupported�HashMismatch�HashUnpinned�InstallationError�MetadataInconsistent�NetworkConnectionError�VcsHashUnsupported)� PackageFinder)�BaseDistribution�get_metadata_distribution)�ArchiveInfo)�Link)�Wheel)�BatchDownloader� 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)�req� build_tracker�finder�build_isolation�check_build_deps�returnc C sD t | �}|j}|dk r<|�| |�� |�|||� W 5 Q R X |�� S )z(Prepare a distribution for installation.N)r �build_tracker_id�track�prepare_distribution_metadatar )r, r- r. r/ r0 � abstract_dist� tracker_id� r7 �N/opt/hc_python/lib/python3.8/site-packages/pip/_internal/operations/prepare.py�_get_prepared_distribution<