Current File : //usr/lib/python3/dist-packages/pip/_internal/index/__pycache__/sources.cpython-312.pyc |
�
/�g�! � �� � d dl Z d dlZd dlZd dlmZ d dlmZmZmZm Z m
Z
mZ d dlm
Z
mZmZmZmZmZ d dlmZ d dlmZ d dlmZmZ d dlmZ e j8 e� Zee Zee Z eegee f Z!eege"f Z# G d � d
� Z$de%de"fd
�Z& G d� d� Z' G d� de$� Z( G d� de$� Z) G d� de$� Z* G d� de$� Z+de%de!de#de"de"de%dee
e% e
e$ f fd�Z,y)� N)�defaultdict)�Callable�Dict�Iterable�List�Optional�Tuple)�InvalidSdistFilename�InvalidVersion�InvalidWheelFilename�canonicalize_name�parse_sdist_filename�parse_wheel_filename)�InstallationCandidate)�Link)�path_to_url�url_to_path)�is_urlc �@ � e Zd Zedee fd�� Zdefd�Zde fd�Z
y)�
LinkSource�returnc � � t � �)z,Returns the underlying link, if there's one.��NotImplementedError��selfs �=/usr/lib/python3/dist-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'