a
lj @ 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 ?/usr/lib/python3.9/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) mimetypesZ
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=