관리-도구
편집 파일: target_python.cpython-311.pyc
� �܋f� � �h � d dl Z d dlmZmZmZmZ d dlmZ d dlm Z m Z d dlmZ G d� d� � Z dS )� N)�List�Optional�Set�Tuple)�Tag)� get_supported�version_info_to_nodot)�normalize_version_infoc �� � e Zd ZdZg d�Z ddeee deee df deee dee d df d �Z d efd�Zd ee fd�Z d ee fd �ZdS )�TargetPythonzx Encapsulates the properties of a Python interpreter one is targeting for a package install, download, etc. )�_given_py_version_info�abis�implementation� platforms� py_version�py_version_info�_valid_tags�_valid_tags_setNr r .r r �returnc �" � || _ |�t j dd� }nt |� � }d� t t |dd� � � � � }|| _ || _ || _ || _ || _ d| _ d| _ dS )a< :param platforms: A list of strings or None. If None, searches for packages that are supported by the current system. Otherwise, will find packages that can be built on the platforms passed in. These packages will only be downloaded for distribution: they will not be built locally. :param py_version_info: An optional tuple of ints representing the Python version information to use (e.g. `sys.version_info[:3]`). This can have length 1, 2, or 3 when provided. :param abis: A list of strings or None. This is passed to compatibility_tags.py's get_supported() function as is. :param implementation: A string or None. This is passed to compatibility_tags.py's get_supported() function as is. N� �.� )r �sys�version_infor �join�map�strr r r r r r r )�selfr r r r r s �Y/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_internal/models/target_python.py�__init__zTargetPython.__init__ s� � �, '6��#��"�!�.�r��r�2�O�O�4�_�E�E�O��X�X�c�#��r��r�':�;�;�<�<� ��� �,���"���$���.��� 15���37����� c �� � d}| j �$d� d� | j D � � � � }d| j fd|fd| j fd| j fg}d� d � |D � � � � S ) zD Format the given, non-None attributes for display. Nr c 3 �4 K � | ]}t |� � V � �d S )N)r )�.0�parts r � <genexpr>z,TargetPython.format_given.<locals>.<genexpr>J s9 � � � � '� '�"��D� � �'� '� '� '� '� 'r"