OwlCyberSecurity - MANAGER
Edit File: install.cpython-38.pyc
U ʗRekv � @ sh 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 dl0m1Z1 d dl2m3Z3 d dl4m5Z5 d dl6m7Z7 d dl8m9Z9 d dl:m;Z;m<Z<m=Z=m>Z> d dl?m@Z@ d dlAmBZBmCZC d dlDmEZEmFZFmGZG e9eH�ZIe&eEd�dd�ZJG dd � d e�ZKd1eLeeM eeM eLeeM eeM d"�d#d$�ZNeeM eLeLd%�d&d'�ZOd2eeL eeM eeM eeM eLeLd(�d)d*�ZPee1 eeeM dd+�d,d-�ZQeReLeLeMd.�d/d0�ZSdS )3� 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)�WINDOWS)�parse_distutils_args��test_writable_dir)� getLogger)� ensure_dir�get_pip_version�(protect_pip_from_modification_on_windows�write_output)� TempDirectory)�running_under_virtualenv�virtualenv_no_global)�BinaryAllowedPredicate�build� should_build_for_install_command)�format_control�returnc s t td�� fdd�}|S )N)�reqr, c s t | jp d�}� �|�}d|kS )N� �binary)r �name�get_allowed_formats)r- �canonical_name�allowed_formats�r+ � ��/builddir/build/BUILDROOT/alt-python38-pip-22.2.1-2.el8.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/commands/install.py�check_binary_allowed8 s z6get_check_binary_allowed.<locals>.check_binary_allowed)r �bool)r+ r7 r5 r4 r6 �get_check_binary_allowed7 s r9 c @ sz e Zd ZdZdZdd�dd�Zeeee e d�dd ��Ze ee dd �dd�Zee ee d �dd�Zee dd�dd�ZdS )�InstallCommandaI Install packages from: - PyPI (and other indexes) using requirement specifiers. - VCS project urls. - Local project directories. - Local or remote source archives. pip also supports installing from "requirements files", which provide an easy way to specify a whole environment to be installed. a% %prog [options] <requirement specifier> [package-index-options] ... %prog [options] -r <requirements file> [package-index-options] ... %prog [options] [-e] <vcs project url> ... %prog [options] [-e] <local project path> ... %prog [options] <archive url/path> ...N)r, c C s� | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j jdddddd� | j jddd d d dd� t�| j � | j jd dddd� | j jdddt d� | j jddd d dd� | j jddd d dd� | j �t� � � | j jdddddd� | j jddddd gd!d"� | j jd#d$dd%d� | j jd&d'd(dd)d� | j �t�� � | j �t�� � | j �t� � � | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j jd*dd+d,d-d� | j jd.dd+d/d0� | j jd1dd2d,d3d� | j jd4dd5d,d6d� | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j �t�� � | j �t�� � t�tj| j�}| j�d7|� | j�d7| j � | j jd8d9d:d d;d� d S )<Nz --dry-run� store_true�dry_runFz�Don't actually install anything, just print what would be. Can be used in combination with --ignore-installed to 'resolve' the requirements.)�action�dest�default�helpz-tz--target� target_dir�dirz�Install packages into <dir>. By default this will not replace existing files/folders in <dir>. Use --upgrade to replace existing packages in <dir> with new versions.)r>