관리-도구
편집 파일: prepare.cpython-311.pyc
� �܋f�m � � � 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� � ZHde1de/dedeId eId!efd"�ZJd#e#d$eKd%eLd!dfd&�ZMe G d'� d(� � � � ZN d4d#e#d)e(d*eeK d+ee8 d!eNf d,�ZO d4d#e#d*eeK d+ee8 d!eNfd-�ZP d4d#e#d$eKd)e(d%eLd*eeK d+ee8 d!eeN fd.�ZQ d5d#e#d*eKd+ee8 d0eId!eeK f d1�ZR G d2� d3� � ZSdS )6z)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 �� � t | � � }|j }|�E|� | |� � 5 |� |||� � ddd� � n# 1 swxY w Y |� � � S )z(Prepare a distribution for installation.N)r �build_tracker_id�track�prepare_distribution_metadatar )r- r. r/ r0 r1 � abstract_dist� tracker_ids �W/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/operations/prepare.py�_get_prepared_distributionr: <