o
ai @ s< 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 dZd ed
efddZG d
d deZG dd deZG dd deZG dd deZ dededededed
eee ee f fddZ!dS ) N)CallableIterableOptionalTuple)InstallationCandidate)Link)path_to_urlurl_to_path)is_urlc @ s> e Zd Zedee fddZdefddZde fddZ
dS )
LinkSourcereturnc C t )z,Returns the underlying link, if there's one.NotImplementedErrorself r /builddir/build/BUILDROOT/alt-python310-pip-21.3.1-5.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/index/sources.pylink s zLinkSource.linkc C r
)z9Candidates found by parsing an archive listing HTML file.r r r r r page_candidates zLinkSource.page_candidatesc C r
)z,Links found by specifying archives directly.r r r r r
file_links r 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 @ sX e Zd ZdZdededdfddZedee fdd Z
defd
dZde
fdd
ZdS )_FlatDirectorySourcezLink source specified by ``--find-links=