| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/pip/_internal/commands/__pycache__/ |
Upload File : |
�
�/�c� � � � d dl Z d dlmZ d dlmZmZmZmZmZ d dl m
Z
mZ d dlm
Z
d dlmZ d dlmZmZ d dlmZ d d lmZmZmZ d d
lmZ d dlmZ d dlmZ d d
lm Z d dl!m"Z" d dl#m$Z$ e j% e&� � Z' G d� de� � Z(dS )� N)�Values)�Any�Iterable�List�Optional�Union)�
LegacyVersion�Version)�
cmdoptions)�IndexGroupCommand)�ERROR�SUCCESS)�print_dist_installation_info)�CommandError�DistributionNotFound�PipError)�
LinkCollector)�
PackageFinder)�SelectionPreferences)�TargetPython)�
PipSession)�write_outputc � � e Zd ZdZdZdZdd�Zdedee de
fd �Z dded
ede
e de
e def
d
�Zdedee ddfd�ZdS )�IndexCommandz=
Inspect information available from package indexes.
Tz&
%prog versions <package>
�returnNc �N � t j | j � � | j � t j � � � � | j � t j � � � � | j � t j � � � � | j � t j � � � � t j t j | j
� � }| j
� d|� � | j
� d| j � � d S )Nr )r �add_target_python_options�cmd_opts�
add_option�ignore_requires_python�pre� no_binary�only_binary�make_option_group�index_group�parser�insert_option_group)�self�
index_optss �>/usr/lib/python3/dist-packages/pip/_internal/commands/index.py�add_optionszIndexCommand.add_options s� � ��,�T�]�;�;�;��
� � ��!B�!D�!D�E�E�E��
� � ���!1�!1�2�2�2��
� � ��!5�!7�!7�8�8�8��
� � ��!7�!9�!9�:�:�:��1��"��K�
�
�
�
��'�'��:�6�6�6���'�'��4�=�9�9�9�9�9� �options�argsc � � d| j i}t � d� � |r
|d |vrBt � dd� t |� � � � � � t S |d } || ||dd � � � nC# t $ r6}t � |j d � � t cY d }~S d }~ww xY wt S )N�versionsztpip index is currently an experimental command. It may be removed/changed in a future release without prior warning.r zNeed an action (%s) to perform.�, � )
�get_available_package_versions�logger�warning�error�join�sortedr
r r. r )r( r- r. �handlers�action�es r* �runzIndexCommand.run0 s� � ���;�
�� ���
%�
�
�
� � �t�A�w�h�.�.��L�L�1�� � �&��*�*�+�+�
�
�
� �L��a��� ��H�V��W�d�1�2�2�h�/�/�/�/��� � � ��L�L�����#�#�#��L�L�L�L�L�L����� ���� �s �;B �
C� +C�C�C�session�
target_pythonr c � � t j ||�� � }t d|j |�� � }t j |||�� � S )zK
Create a package finder appropriate to the index command.
)r- F)�allow_yanked�allow_all_prereleasesr )�link_collector�selection_prefsr>