File manager - Edit - /opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/__pycache__/req_command.cpython-311.pyc
Back
� ��]jLD � �, � d Z ddlmZ ddlZddlZddlmZ ddlmZ ddl m Z mZmZ ddl mZmZmZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZmZmZ ddlmZ ddl m!Z! ddl"m#Z# ddl$m%Z% ddl&m'Z' ddl(m)Z) ddl*m+Z+ ddl,m-Z-m.Z.m/Z/m0Z0m1Z1 ddl2m3Z3m4Z4 ddl5m6Z6 ddl7m8Z8 ddl9m:Z: ddl;m<Z< ddl=m>Z> ddl?m@Z@mAZA ddlBmCZCmDZDmEZE ejF eG� � ZHd2d"�ZIeEjJ eEjK eEjL gZM ed#d$�%� � ZNd3d(�ZOd4d0�ZP G d1� d$e� � ZQdS )5z�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. � )�annotationsN)�partial)�Values)�Any�Callable�TypeVar)�BuildEnvironmentInstaller�"InprocessBuildEnvironmentInstaller�#SubprocessBuildEnvironmentInstaller)� WheelCache)� cmdoptions)�make_target_python)�IndexGroupCommand)�SessionCommandMixin)�CommandError�PreviousBuildDirError�UnsupportedPythonVersion)� LinkCollector)� PackageFinder)�SelectionPreferences)�TargetPython)� PipSession)�BuildTracker)�RequirementPreparer)�install_req_from_editable�install_req_from_line�#install_req_from_parsed_requirement�install_req_from_pylock_package�install_req_from_req_string)�PEP723Exception�pep723_metadata)�parse_dependency_groups)�parse_requirements)�InstallRequirement)�BaseResolver)�check_requires_python)�is_valid_pylock_filename�select_from_pylock_path_or_url)� TempDirectory�TempDirectoryTypeRegistry� tempdir_kinds�optionsr �return�boolc �H � t j � d� � dk S )z� Check if regular constraints should be ignored because we are in a isolated build process and build constraints feature is enabled but no build constraints were passed. � _PIP_IN_BUILD_IGNORE_CONSTRAINTS�1)�os�environ�get�r, s �}/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/pip/_internal/cli/req_command.py�!should_ignore_regular_constraintsr7 @ s � � �:�>�>�<�=�=��D�D� � _CommandT�RequirementCommand)�bound�func�-Callable[[_CommandT, Values, list[str]], int]c � � �� dd��d�� fd �}|S )zNDecorator for common logic related to managing temporary directories. �registryr* r- �Nonec �F � t D ]}| � |d� � �d S �NF)�KEEPABLE_TEMPDIR_TYPES� set_delete)r? �ts r6 �configure_tempdir_registryz0with_cleanup.<locals>.configure_tempdir_registry[ s4 � �'� *� *�A�����5�)�)�)�)� *� *r8 �selfr9 r, r �args� list[str]�intc � �� | j �J �|j r �| j � � �| ||� � S # t $ r �| j � � � w xY w�N)�tempdir_registry�no_cleanr )rG r, rH rF r<