관리-도구
편집 파일: prepare.cpython-312.pyc
� G��e�m � � � d Z ddlZddlZddlZddlmZ ddlmZmZm Z m Z ddlmZ ddl mZ ddlmZ ddlmZmZmZmZmZmZmZ dd lmZ dd lmZmZ ddlmZ ddl m!Z! dd l"m#Z# ddl$m%Z%m&Z& ddl'm(Z(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/ ddl0m1Z1 ddl2m3Z3m4Z4 ddl5m6Z6m7Z7 ddl8m9Z9 ddl:m;Z;m<Z<m=Z=m>Z> ddl?m@Z@ ddlAmBZB ddlCmDZD e1eE� ZFde/de-dedeGdeGd efd!�ZHd"e!d#eId$eJd dfd%�ZK G d&� d'� ZL d2d"e!d(e&d)e eI d*e e6 d eLf d+�ZM d2d"e!d)e eI d*e e6 d eLfd,�ZN d2d"e!d#eId(e&d$eJd)e eI d*e e6 d e eL fd-�ZO d3d"e!d)eId*e e6 d.eGd e eI f d/�ZP G d0� d1� ZQy)4z)Prepares a distribution for installation � N)�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 }|�>|j | |� 5 |j |||� ddd� |j � S |j � S # 1 sw Y |j � S xY w)z(Prepare a distribution for installation.N)r �build_tracker_id�track�prepare_distribution_metadatar )r, r- r. r/ r0 � abstract_dist� tracker_ids ��/builddir/build/BUILDROOT/alt-python312-pip-23.3.1-1.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/operations/prepare.py�_get_prepared_distributionr9 ; s� � � >�c�B�M��/�/�J��� � � ��j� 1� ��7�7���)9� � � �2�2�4�4�=�2�2�4�4� � �2�2�4�4�s �A(�(B �link�location� verbosityc � � t j | j � }|�J �|j |t | j � |�� y )N)�urlr<