관리-도구
편집 파일: __init__.cpython-311.pyc
� �܋f� � �^ � d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z d dl mZ ddlm Z mZmZmZmZ er d dlmZmZ neZg d�Zdefd �Z G d � de� � Z ej d�� � defd �� � Zdefd�Zdeee defd�Zdede fd�Zdedede fd�Zde dedede fd�Z!dS )� N)� TYPE_CHECKING�List�Optional�Type�cast)� strtobool� )�BaseDistribution�BaseEnvironment�FilesystemWheel�MemoryWheel�Wheel)�Literal�Protocol) r r r r r �get_default_environment�get_environment�get_wheel_distribution�select_backend�returnc �: � t j t t � � 5 t t t j d � � � � cddd� � S # 1 swxY w Y t j dk rdS ddl } t t | j dd� � � � S )a� Whether to use the ``importlib.metadata`` or ``pkg_resources`` backend. By default, pip uses ``importlib.metadata`` on Python 3.11+, and ``pkg_resourcess`` otherwise. This can be overridden by a couple of ways: * If environment variable ``_PIP_USE_IMPORTLIB_METADATA`` is set, it dictates whether ``importlib.metadata`` is used, regardless of Python version. * On Python 3.11+, Python distributors can patch ``importlib.metadata`` to add a global constant ``_PIP_USE_IMPORTLIB_METADATA = False``. This makes pip use ``pkg_resources`` (unless the user set the aforementioned environment variable to *True*). �_PIP_USE_IMPORTLIB_METADATAN)� � Fr T) � contextlib�suppress�KeyError� ValueError�boolr �os�environ�sys�version_info�importlib.metadata�getattr�metadata�� importlibs �V/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/metadata/__init__.py�_should_use_importlib_metadatar) s� � � � �X�z� 2� 2� J� J��I�b�j�)F�G�H�H�I�I�J� J� J� J� J� J� J� J� J� J� J� J���� J� J� J� J� ��'�!�!��u������� �*�,I�4�P�P�Q�Q�Qs �,A�A� Ac �F � e Zd ZU ded<