관리-도구
편집 파일: __init__.cpython-38.pyc
U ʗRe� � @ s d dl Z d dlZd dlZd dlZd dlmZmZmZmZm Z d dl mZ ddlm Z mZmZmZmZ ervd dlmZ neZddd d ddd ddg Zed�dd�ZG dd� de�Zejdd�ed�dd��Zed�dd�Zeee ed�dd �Zee d�dd�Zeee d�dd�ZdS )� N)� TYPE_CHECKING�List�Optional�Type�cast)� strtobool� )�BaseDistribution�BaseEnvironment�FilesystemWheel�MemoryWheel�Wheel)�Protocolr r r r r �get_default_environment�get_environment�get_wheel_distribution�select_backend)�returnc C sZ t �tt�� tttjd ��W 5 Q R � S Q R X tj dk r@dS ddl } tt| jdd��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_METADATA)� � Fr NT) � contextlib�suppress�KeyError� ValueError�boolr �os�environ�sys�version_info�importlib.metadata�getattr�metadata�� importlib� r% ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/metadata/__init__.py�_should_use_importlib_metadata s $ r'