Submit
Path:
~
/
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
pip
/
_internal
/
cli
/
__pycache__
/
File Content:
req_command.cpython-311.opt-1.pyc
� � h�/ � � � d Z ddlZddlmZ ddlmZ ddlmZmZm Z m Z ddlmZ ddl mZ ddlmZ dd lmZ dd lmZmZ ddlmZ ddlmZ dd lmZ ddlmZ ddlmZ ddlm Z ddl!m"Z" ddl#m$Z$m%Z%m&Z&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z- ddl.m/Z/m0Z0m1Z1 ej2 e3� � Z4e1j5 e1j6 e1j7 gZ8dedefd�Z9 G d� de� � Z:dS )z�Contains the RequirementCommand base class. This class is in a separate module so the commands that do not always need PackageFinder capability don't unnecessarily import the PackageFinder machinery and all its vendored dependencies, etc. � N)�partial)�Values)�Any�List�Optional�Tuple)� WheelCache)� cmdoptions)�IndexGroupCommand)�SessionCommandMixin)�CommandError�PreviousBuildDirError)� LinkCollector)� PackageFinder)�SelectionPreferences)�TargetPython)� PipSession)�BuildTracker)�RequirementPreparer)�install_req_from_editable�install_req_from_line�#install_req_from_parsed_requirement�install_req_from_req_string)�parse_requirements)�InstallRequirement)�BaseResolver)� TempDirectory�TempDirectoryTypeRegistry� tempdir_kinds�func�returnc � � �� dt ddfd��dt dt dt t dt t f�� fd�}|S ) zNDecorator for common logic related to managing temporary directories. �registryr! Nc �F � t D ]}| � |d� � �d S )NF)�KEEPABLE_TEMPDIR_TYPES� set_delete)r# �ts �R/opt/cloudlinux/venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py�configure_tempdir_registryz0with_cleanup.<locals>.configure_tempdir_registry7 s4 � �'� *� *�A�����5�)�)�)�)� *� *� �self�options�argsc � �� |j r �| j � � �| ||� � S # t $ r �| j � � � w xY w�N)�no_clean�tempdir_registryr )r+ r, r- r) r s ��r( �wrapperzwith_cleanup.<locals>.wrapper; sq �� � �� >�&�&�t�'<�=�=�=� ��4��g�t�,�,�,��$� � � � '�&�t�'<�=�=�=�� ���s �'