관리-도구
편집 파일: misc.cpython-310.pyc
o ƚRe*Q � @ s~ d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlm Z d dlmZmZmZ d dlmZ d dlmZmZmZmZmZmZmZmZmZmZmZm Z m!Z! d dl"m#Z# d dl$m%Z%m&Z&m'Z' d dl(m)Z) d d l*m+Z+ d d l,m-Z-m.Z.m/Z/ d dl,m0Z0 d dl1m2Z2 d d l3m4Z4 d dl5m6Z6 g d�Z7e�8e9�Z:e d�Z;eee< e<ef Z=ee>e>e>f Z?ee@eee@ ee@ f f ZAde@fdd�ZBdee>df dee>e>e>f fdd�ZCde@ddfdd�ZDde@fdd�ZEe%de&d�e'd�d �d�d"e@d#eFddfd$d%��ZGd&edef de@d'e=ddfd(d)�ZHde@de@fd*d+�ZId�d"e@d-e@de@fd.d/�ZJd0e@d1ee@ de@fd2d3�ZKd0e@ddfd4d5�ZLd0e@d1ee@ de@fd6d7�ZMd0e@de@fd8d9�ZNd0e@de@fd:d;�ZOd<e@de>fd=d>�ZPd?eQde@fd@dA�ZRdBeee deee@ ee> f fdCdD�ZSde@deFfdEdF�ZTejUfdGedHe>deeV fdIdJ�ZWd�de@dKeFde@fdLdM�ZXde@dee@e@f fdNdO�ZYdPe@dQe@ddfdRdS�ZZde@deFfdTdU�Z[dVe#deFfdWdX�Z\dVe#deFfdYdZ�Z]dVe#deFfd[d\�Z^d]d^� Z_d_e@dee# fd`da�Z`dVe#de@fdbdc�Zaddedeeddfdfdg�ZbG dhdi� die �Zce jddje@deec fdkdl��Zedeec fdmdn�Zfdeec fdodp�Zgdqedredee fdsdt�Zhdue@dvee> de@fdwdx�Zid�dze@d{e@de@fd|d}�Zjdze@dee@ee> f fd~d�Zkdze@deAfd�d��Zldze@de@fd�d��Zmd�e@d�ee@geedf f dee@eAf fd�d��Zndze@deAfd�d��Zodze@dee@ fd�d��Zpd�e@dee@e@ee@e@f f fd�d��Zqd�e@de@fd�d��Zrd�e@de@fd�d��ZsG d�d�� d��Ztd�e@detfd�d��Zud�e@detfd�d��Zvd�eFddfd�d��ZwdeFfd�d��Zxd�de@d�e>deee>f fd�d��ZydeFfd�d��Zzd�ee deeeef fd�d��Z{d�ee;geFf d�ee; deee; ee; f fd�d��Z|dS )�� N)�StringIO)�filterfalse�tee�zip_longest)� TracebackType) �Any�BinaryIO�Callable�ContextManager�Iterable�Iterator�List�Optional�TextIO�Tuple�Type�TypeVar�cast��Distribution)�retry�stop_after_delay� wait_fixed)�__version__)�CommandError)�get_major_minor_version� site_packages� user_site)� get_scheme)�WINDOWS)�egg_link_path_from_location)�running_under_virtualenv) �rmtree�display_path� backup_dir�ask�splitext�format_size�is_installable_dir�normalize_path�renames�get_prog�captured_stdout� ensure_dir�remove_auth_from_url�T�returnc C s4 t j�t j�t�dd�} t j�| �} d�t| t� �S )Nz..zpip {} from {} (python {})) �os�path�join�dirname�__file__�abspath�formatr r )�pip_pkg_dir� r9 ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/utils/misc.py�get_pip_versionG s �r; �py_version_info.c C sD t | �dk r| dt | � d 7 } nt | �dkr| dd� } td| �S )ax Convert a tuple of ints representing a Python version to one of length three. :param py_version_info: a tuple of ints representing a Python version, or None to specify no version. The tuple can have any length. :return: a tuple of length three if `py_version_info` is non-None. Otherwise, return `py_version_info` unchanged (i.e. None). � )r N�VersionInfo)�lenr )r<