관리-도구
편집 파일: misc.cpython-311.pyc
� �Re*Q � � � 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�Z7 ej8 e9� � Z: e d� � Z;eee< e<ef Z=ee>e>e>f Z?ee@eee@ ee@ f f ZAde@fd�ZBdee>df dee>e>e>f fd�ZCde@ddfd�ZDde@fd�ZE e%d e&d� � e'd� � �� � dvde@deFddfd �� � ZGd!edef de@d"e=ddfd#�ZHde@de@fd$�ZIdwde@d&e@de@fd'�ZJd(e@d)ee@ de@fd*�ZKd(e@ddfd+�ZLd(e@d)ee@ de@fd,�ZMd(e@de@fd-�ZNd(e@de@fd.�ZOd/e@de>fd0�ZPd1eQde@fd2�ZRd3eee deee@ ee> f fd4�ZSde@deFfd5�ZTejU fd6ed7e>deeV fd8�ZWdxde@d9eFde@fd:�ZXde@dee@e@f fd;�ZYd<e@d=e@ddfd>�ZZde@deFfd?�Z[d@e#deFfdA�Z\d@e#deFfdB�Z]d@e#deFfdC�Z^dD� Z_dEe@dee# fdF�Z`d@e#de@fdG�ZadHedIeddfdJ�Zb G dK� dLe � � Zce jd dMe@deec fdN�� � Zedeec fdO�Zfdeec fdP�ZgdQedRedee fdS�ZhdTe@dUee> de@fdV�ZidydXe@dYe@de@fdZ�ZjdXe@dee@ee> f fd[�ZkdXe@deAfd\�ZldXe@de@fd]�Zmd^e@d_ee@geedf f dee@eAf fd`�ZndXe@deAfda�ZodXe@dee@ fdb�Zpd^e@dee@e@ee@e@f f fdc�Zqd^e@de@fdd�Zrd^e@de@fde�Zs G df� dg� � Ztdhe@detfdi�Zud^e@detfdj�ZvdkeFddfdl�ZwdeFfdm�Zxdzde@doe>deee>f fdp�ZydeFfdq�Zzdree deeeef fds�Z{dtee;geFf dree; deee; ee; f fdu�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 � � 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_dirs ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/utils/misc.py�get_pip_versionr<