ruạṛ
a eV�ib@ � @ s� 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/m0Z0 ddl1m2Z2m3Z3 ddl4m5Z5 ddl6m7Z7 ddl8m9Z9 ddl:m;Z; ddl<m=Z= ddl>m?Z?m@Z@mAZA e�BeC�ZDddd�d d!�ZEeAjFeAjGeAjHgZIed"d#d$�ZJd%d%d&�d'd(�ZKd)d*dd+d,d-�d.d/�ZLG d0d#� d#e�ZMdS )1z�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_req_string)�PEP723Exception�pep723_metadata)�parse_dependency_groups)�parse_requirements)�InstallRequirement)�BaseResolver)�check_requires_python)� TempDirectory�TempDirectoryTypeRegistry� tempdir_kindsr �bool��options�returnc C s t j�d�dkS )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* � r2 �P/opt/bart/bart_venv/lib/python3.9/site-packages/pip/_internal/cli/req_command.py�!should_ignore_regular_constraints; s r4 � _CommandT�RequirementCommand)�boundz-Callable[[_CommandT, Values, list[str]], int])�funcr+ c s. ddd�dd�� dddd d �� �fdd�}|S ) zNDecorator for common logic related to managing temporary directories. r&