OwlCyberSecurity - MANAGER
Edit File: _distutils.cpython-310.pyc
o ����ƚRe�����������������������@���sp��d�Z�ddlZddlZddlZddlmZ�ddlmZ�ddlm Z �ddlmZ�ddl mZmZmZmZmZmZ�ddlmZ�dd lmZ�dd lmZ�ddlmZ�e�e�Z d#d d�dede dedede dede deeef�fdd�Z! d#dede dee�dee�de dee�defdd�Z"defdd�Z#defdd�Z$defdd �Z%dedeeef�fd!d"�Z&dS�)$z7Locations where we look for configs, install stuff, etc�����N)�Command)�SCHEME_KEYS)�install��get_python_lib)�Dict�List�Optional�Tuple�Union�cast)�Scheme)�WINDOWS)�running_under_virtualenv����)�get_major_minor_versionF)�ignore_config_files� dist_name�user�home�root�isolated�prefixr����returnc������������� ���C���s���ddl�m}�d|�i}|rdg|d<�||�} |s9z| ����W�n�ty8���| ���} t�dd�dd ��| D�����Y�nw�d }| jddd �}|d usHJ��t t |�}|r[|r[J�d|��d|�����|ri|riJ�d|��d|�����|pm|j|_|ss|rvd|_|pz|j|_|p�|j |_ |p�|j|_|����i�} tD�]}t|d|��| |<�q�d| �d�v�r�| �t|j|jd���t��r�|r�|}n |r�|j}n|j}tj�|dddt�����|��| d<�|d ur�tj�tj�| d���d�}tj�||dd ���| d<�| S�)z+ Return a distutils install scheme r���)�Distribution�namez --no-user-cfg�script_argsz6Ignore distutils configs in %s due to encoding errors.z, c�����������������s���s�����|�] }t�j�|�V��qd�S�)N)�os�path�basename)�.0�p��r"�����/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_internal/locations/_distutils.py� <genexpr>4���s�����z#distutils_scheme.<locals>.<genexpr>Nr���T)�createzuser=z prefix=zhome=���install_�install_lib)�purelib�platlib�include�site�python�headersr���)�distutils.distr����parse_config_files�UnicodeDecodeError�find_config_files�logger�warning�join�get_command_objr����distutils_install_commandr���r���r���r����finalize_optionsr����getattr�get_option_dict�update�dictr(���r����install_userbaser���r���r���� splitdrive�abspath)r���r���r���r���r���r���r���r���� dist_args�d�paths�obj�i�scheme�key� path_no_driver"���r"���r#����distutils_scheme���sd��� �� �rH���c�����������������C���s8���t�|�|||||�}t|d�|d�|d�|d�|d�d�S�)a;�� Get the "scheme" corresponding to the input parameters. The distutils documentation provides the context for the available schemes: https://docs.python.org/3/install/index.html#alternate-installation :param dist_name: the name of the package to retrieve the scheme for, used in the headers scheme path :param user: indicates to use the "user" scheme :param home: indicates to use the "home" scheme and provides the base directory for the same :param root: root under which other directories are re-based :param isolated: equivalent to --no-user-cfg, i.e. do not consider ~/.pydistutils.cfg (posix) or ~/pydistutils.cfg (non-posix) for scheme paths :param prefix: indicates to use the "prefix" scheme and provides the base directory for the same r*���r)���r.����scripts�data)r*���r)���r.���rI���rJ���)rH���r ���)r���r���r���r���r���r���rE���r"���r"���r#���� get_schemei���s����rK���c������������������C���sr���t�j�tj�}�trt�j�|�d�}t�j�|�st�j�|�d�}|S�tjd�d��dkr2|�d�d��dkr2dS�t�j�|�d�S�)N�Scripts�bin�����darwin����z/System/Library/z/usr/local/bin) r���r����normpath�sysr���r���r5����exists�platform)r����bin_pyr"���r"���r#����get_bin_prefix����s���"rV���c�������������������C���� ���t�dd�S�)NF�� plat_specificr���r"���r"���r"���r#����get_purelib�������� rZ���c�������������������C���rW���)NTrX���r���r"���r"���r"���r#����get_platlib����r[���r\���c�����������������C���s���t�d|�d�t�d|�d�fS�)NF)rY���r���Tr���)r���r"���r"���r#����get_prefixed_libs����s��� �r]���)FNNFN)'�__doc__�loggingr���rR���� distutils.cmdr����DistutilsCommand�distutils.command.installr���r���r7����distutils.sysconfigr����typingr���r���r ���r ���r���r����pip._internal.models.schemer ����pip._internal.utils.compatr����pip._internal.utils.virtualenvr����baser���� getLogger�__name__r3����str�boolrH���rK���rV���rZ���r\���r]���r"���r"���r"���r#����<module>���s|���� ��������� �S������� �#