File: //usr/local/lib/python3.10/site-packages/pip/_internal/commands/__pycache__/install.cpython-310.pyc
o
��i�~ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlmZmZ d dl m
Z
mZmZ d dl
mZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZmZmZ d d
lmZmZ d dlmZm Z d dl!m"Z" d d
l#m$Z$ d dl%m&Z& d dl'm(Z( d dl)m*Z* d dl+m,Z,m-Z- d dl.m/Z/ d dl0m1Z1m2Z2m3Z3 d dl4m5Z5 d dl6m7Z7m8Z8 d dl9m:Z: d dl;m<Z< d dl=m>Z> d dl?m@Z@mAZAmBZBmCZCmDZD d dlEmFZF d dlGmHZHmIZI d dlJmKZKmLZLmMZM e>eN�ZOde&deKfdd �ZPG d!d"� d"e�ZQ # # d=d$eRd%eeS d&eeS d'eRd(eeS deeS fd)d*�ZTd&eeS d'eRdeRfd+d,�ZU #d>d-eeR d.eeS d/eeS d0eeS d1eRdeRfd2d3�ZVd4ee1 d5eeeS ddfd6d7�ZWd8eXd9eRd:eRdeSfd;d<�ZYdS )?� N)�
SUPPRESS_HELP�Values)�Iterable�List�Optional)�canonicalize_name)�
print_json)�
WheelCache)�
cmdoptions)�make_target_python)�RequirementCommand�warn_if_run_as_root�with_cleanup)�ERROR�SUCCESS)�CommandError�InstallationError)�
get_scheme)�get_environment)�
FormatControl)�InstallationReport)�get_build_tracker)�ConflictDetails�check_install_conflicts)�install_given_reqs)�InstallRequirement�LegacySetupPyOptionsCheckMode�check_legacy_setup_py_options)�WINDOWS)�#LegacyInstallReasonFailedBdistWheel�
deprecated)�parse_distutils_args��test_writable_dir)� getLogger)�check_externally_managed�
ensure_dir�get_pip_version�(protect_pip_from_modification_on_windows�write_output)�
TempDirectory)�running_under_virtualenv�virtualenv_no_global)�BdistWheelAllowedPredicate�build� should_build_for_install_command�format_control�returnc s dt dtf� fdd�}|S )N�reqr1 c s t | jpd�}� �|�}d|v S )N� �binary)r �name�get_allowed_formats)r2 �canonical_name�allowed_formats�r0 � �I/usr/local/lib/python3.10/site-packages/pip/_internal/commands/install.py�check_binary_allowedC s
z;get_check_bdist_wheel_allowed.<locals>.check_binary_allowed)r �bool)r0 r<