�
��^i� � �� � d dl Z d dlZd dlZd dlZd dlmZmZmZmZ d dl m
Z
d dlmZ d dl
mZmZ d dlmZ e j e� � Zee
Zee Zeegee
f Zeegef Z G d� d� � Zd ed
efd�Z G d� d
e� � Z G d� de� � Z G d� de� � Z G d� de� � Z dededededed
eee ee f fd�Z!dS )� N)�Callable�Iterable�Optional�Tuple)�InstallationCandidate)�Link)�path_to_url�url_to_path)�is_urlc �N � e Zd Zedee fd�� � Zdefd�Zde fd�Z
dS )�
LinkSource�returnc � � t � � �)z,Returns the underlying link, if there's one.��NotImplementedError��selfs ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/index/sources.py�linkzLinkSource.link s � � "�#�#�#� c � � t � � �)z9Candidates found by parsing an archive listing HTML file.r r s r �page_candidateszLinkSource.page_candidates � � �!�#�#�#r c � � t � � �)z,Links found by specifying archives directly.r r s r �
file_linkszLinkSource.file_links r r N)�__name__�
__module__�__qualname__�propertyr r r �FoundCandidatesr �
FoundLinksr � r r r
r
ss � � � � � �
�$�h�t�n� $� $� $� �X�$�$�� $� $� $� $�$�J� $� $� $� $� $� $r r
�file_urlr c �B � t j | d�� � d dk S )NF)�strictr z text/html)� mimetypes�
guess_type)r# s r �
_is_html_filer( # s" � �����7�7�7��:�k�I�Ir c �f � e Zd ZdZdededdfd�Zedee fd�� � Z
defd�Zde
fd �ZdS )
�_FlatDirectorySourcez�Link source specified by ``--find-links=