R`i 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 jJ e& Z' G d de Z(y) N)Values)AnyIterableListOptionalUnion)
LegacyVersionVersion)
cmdoptions)IndexGroupCommand)ERRORSUCCESS)print_dist_installation_info)CommandErrorDistributionNotFoundPipError)
LinkCollector)
PackageFinder)SelectionPreferences)TargetPython)
PipSession)write_outputc e Zd ZdZdZdZddZdedee de
fd Z dded
ede
e de
e def
d
Zdedee ddfdZy)IndexCommandz=
Inspect information available from package indexes.
Tz&
%prog versions
returnNc t j | j | j j t j | j j t j
| j j t j | j j t j t j t j | j }| j j d| | j j d| j y )Nr )r add_target_python_optionscmd_opts
add_optionignore_requires_pythonpre no_binaryonly_binarymake_option_groupindex_groupparserinsert_option_group)self
index_optss /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/commands/index.pyadd_optionszIndexCommand.add_options s ,,T]];
!B!B!DE
!12
!5!5!78
!7!7!9:11""KK
'':6''4==9 optionsargsc t d| j i}t j d |r|d |vr4t j ddj t | t S |d } || ||dd t S # t $ r2}t j |j d t cY d }~S d }~ww xY w)Nversionsztpip 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_versionsloggerwarningerrorjoinsortedr
r r. r )r( r- r. handlersactiones r* runzIndexCommand.run0 s ;;
%
tAwh.LL1 &*+
La HVWd12h/
LL#L s 'A<