1jb ^ 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 d dl!m"Z" d dl#m$Z$m%Z% d d l&m'Z'm(Z(m)Z) d d l*m+Z+ d dl,m-Z- d dl.m/Z/m0Z0 d d l1m2Z2 ddl3m4Z4 ee5ej6 f Z7 ej8 e9 Z: G d de Z;dee5df dee5df de5fdZ< G d de Z= G d de Z> G d d Z? G d de Z@ G d d e@ ZA G d! d"e@ ZBdS )# N) IOAny Collection ContainerDictIterableIteratorList NamedTupleOptionalProtocolTupleUnion)Requirement)InvalidSpecifierSpecifierSet)NormalizedNamecanonicalize_name)Version)NoneMetadataError) 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_jsonc b e Zd Zedefd Zedefd Zedefd ZdS )BaseEntryPointreturnc t NNotImplementedErrorselfs m/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/pip/_internal/metadata/base.pynamezBaseEntryPoint.name2 !### c t r' r( r* s r, valuezBaseEntryPoint.value6 r. r/ c t r' r( r* s r, groupzBaseEntryPoint.group: r. r/ N)__name__ __module____qualname__propertystrr- r1 r3 r/ r, r$ r$ 1 s $c $ $ $ X$ $s $ $ $ X$ $s $ $ $ X$ $ $r/ r$ entry.infor% c | rB| d dk r6|r|d dk r|dz }n |dd }| dd } | r| d dk 6t t j g || R 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! r8 pathlibPath)r: r; s r, _convert_installed_files_pathrB ? s * E!H$$ tBx4''GODD9Dabb E!H$$ w|*T*E***+++r/ c . e Zd ZU eed<