R`if Z d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z mZmZm Z mZmZmZmZmZmZmZmZmZ d dlmZ d dlmZmZ d dlmZmZ d dlm Z m!Z! d dl"m#Z# d dl$m%Z%m&Z&m'Z' d d l(m)Z)m*Z*m+Z+ d d l,m-Z- d dl.m/Z/ d dl0m1Z1m2Z2 d d l3m4Z4 ddl5m6Z6 erd dl m7Z7 ne8Z7ee e!f Z9ee:ejv f Z< ejz e> Z? G d de7 Z@dee:df dee:df de:fdZA G d de ZB G d de7 ZC G d d ZD G d de7 ZE G d d!eE ZF G d" d#eE ZGy)$ N) IO TYPE_CHECKINGAny Collection ContainerDictIterableIteratorList NamedTupleOptionalTupleUnion)Requirement)InvalidSpecifierSpecifierSet)NormalizedNamecanonicalize_name) LegacyVersionVersion)NoneMetadataError) get_scheme site_packages user_site)DIRECT_URL_METADATA_NAME DirectUrlDirectUrlValidationError)stdlib_pkgs)egg_link_path_from_sys_path)is_localnormalize_path)url_to_path )msg_to_json)Protocolc N e Zd Zedefd Zedefd Zedefd Zy)BaseEntryPointreturnc t NNotImplementedErrorselfs /builddir/build/BUILDROOT/alt-python312-pip-23.3.1-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/pip/_internal/metadata/base.pynamezBaseEntryPoint.name9 !## c t r* r+ r- s r/ valuezBaseEntryPoint.value= r1 r2 c t r* r+ r- s r/ groupzBaseEntryPoint.groupA r1 r2 N)__name__ __module____qualname__propertystrr0 r4 r6 r2 r/ r' r' 8 sQ $c $ $ $s $ $ $s $ $r2 r' entry.infor( c | r-| d dk( r%|r|d dk( r|dz }n|dd }| dd } | r | d dk( r%t t j g || S )a Convert a legacy installed-files.txt path into modern RECORD path. The legacy format stores paths relative to the info directory, while the modern format stores paths relative to the package root, e.g. the site-packages directory. :param entry: Path parts of the installed-files.txt entry. :param info: Path parts of the egg-info directory relative to package root. :returns: The converted entry. For best compatibility with symlinks, this does not use ``abspath()`` or ``Path.resolve()``, but tries to work with path parts: 1. While ``entry`` starts with ``..``, remove the equal amounts of parts from ``info``; if ``info`` is empty, start appending ``..`` instead. 2. Join the two directly. r ..)r@ Nr# r; pathlibPath)r= r> s r/ _convert_installed_files_pathrE F sm * E!H$tBx4'GOD9Dab E!H$ w||*T*E*++r2 c , e Zd ZU eed<