U
ʗRe @ s0 d dl Z d dlZd dlZd dlZd dlmZmZmZmZ d dl m
Z
d dlmZ d dl
mZmZ d dlmZ e eZee
Zee Zeegee
f Zeegef ZG dd dZeed d
dZG dd
d
eZG dd deZG dd deZG dd deZ eeeeeeee ee f dddZ!dS ) N)CallableIterableOptionalTuple)InstallationCandidate)Link)path_to_urlurl_to_path)is_urlc @ s> e Zd Zeee dddZedddZe dddZ
dS )
LinkSourcereturnc C s
t dS )z,Returns the underlying link, if there's one.NNotImplementedErrorself r /builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/index/sources.pylink s zLinkSource.linkc C s
t dS )z9Candidates found by parsing an archive listing HTML file.Nr r r r r page_candidates s zLinkSource.page_candidatesc C s
t dS )z,Links found by specifying archives directly.Nr r r r r
file_links s zLinkSource.file_linksN)__name__
__module____qualname__propertyr r r FoundCandidatesr
FoundLinksr r r r r r s r )file_urlr
c C s t j| ddd dkS )NF)strictr z text/html) mimetypes
guess_type)r r r r
_is_html_file# s r! c @ sT e Zd ZdZeeddddZeee dddZ
edd d
Ze
dddZdS )
_FlatDirectorySourcezLink source specified by ``--find-links=