1jW > d Z ddlZddlZddlZddlZddlZddlmZm Z ddl mZmZm Z mZmZmZmZmZmZmZmZ ddlmZ ddlmZmZ ddlmZmZmZmZm Z m!Z!m"Z"m#Z# ddl$m%Z%m&Z&m'Z'm(Z( d gZ) ej* e+ Z,eee- ee- f Z.d e-de/fdZ0 d!d e-de-de-dee- de-f dZ1de-de-dee- fdZ2 G d de3 Z4 G d de3 Z5 ed G d d Z6 G d d Z7 e7 Z8 G d d Z9dS )"z)Handles all VCS (version control) support N) dataclassfield)AnyDictIterableIteratorListLiteralMappingOptionalTupleTypeUnion)SpinnerInterface) BadCommandInstallationError) HiddenTextask_path_exists backup_dirdisplay_pathhide_url hide_valueis_installable_dirrmtree)CommandArgscall_subprocessformat_command_argsmake_commandvcsnamereturnc x t j | j }|sdS |g dt j z v S )z3 Return true if the name looks like a URL. F)httphttpsfileftp)urllibparseurlsplitschemer all_schemes)r r* s r/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/pip/_internal/vcs/versioncontrol.pyis_urlr- 2 sB \ " "4 ( ( /F u555GGG repo_urlrevproject_namesubdirc Z | dd }| d| d| }|r|d| z }|S )z Return the URL for a VCS requirement. Args: repo_url: the remote VCS url, with any needed VCS prefix (e.g. "git+"). project_name: the (unescaped) project name. -_@z#egg=z&subdirectory=)replace)r/ r0 r1 r2 egg_project_namereqs r, make_vcs_requirement_urlr: <