Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/site-packages/pip/_internal/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/site-packages/pip/_internal/__pycache__/exceptions.cpython-311.pyc

�

�@�eR\�
��dZddlZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZddlm
Z
mZmZmZmZmZddlmZmZddlmZmZmZddlmZddlmZe
rdd	lmZdd
lm Z ddl!m"Z"ddl#m$Z$ej%e&��Z'd
e(de)fd�Z*d
eee(fdede(de(def
d�Z+Gd�de,��Z-Gd�de-��Z.Gd�de-��Z/Gd�de-��Z0Gd�de-��Z1Gd�de.��Z2Gd �d!e.��Z3Gd"�d#e-��Z4Gd$�d%e0��Z5Gd&�d'e0��Z6Gd(�d)e0��Z7Gd*�d+e0��Z8Gd,�d-e-��Z9Gd.�d/e-��Z:Gd0�d1e-��Z;Gd2�d3e-��Z<Gd4�d5e-��Z=Gd6�d7e0��Z>Gd8�d9e0��Z?Gd:�d;e0��Z@Gd<�d=e0��ZAGd>�d?e.e0��ZBGd@�dAeBe0��ZCGdB�dCe0��ZDGdD�dEe0��ZEGdF�dGeE��ZFGdH�dIeE��ZGGdJ�dKeE��ZHGdL�dMeE��ZIGdN�dOeE��ZJGdP�dQe0��ZKGdR�dSe/��ZLdTejM�dU�ZNGdV�dWe.��ZOdS)Xz�Exceptions used throughout package.

This module MUST NOT try to import from anything within `pip._internal` to
operate. This is expected to be importable from any/all files within the
subpackage and, thus, should not depend on them.
�N)�chain�groupby�repeat)�
TYPE_CHECKING�Dict�Iterator�List�Optional�Union)�Request�Response)�Console�ConsoleOptions�RenderResult)�escape)�Text)�_Hash)�Literal)�BaseDistribution)�InstallRequirement�s�returnc�0�tjd|��duS)Nz^[a-z]+(-[a-z]+)*$)�re�match)rs �C/usr/local/lib/python3.11/site-packages/pip/_internal/exceptions.py�_is_kebab_caser$s��
�8�)�1�-�-�T�9�9��console�prefix�indentc��t|t��r|}n|�|��}|�|d���|�d|��d����|�d�����zS)N�ignore)�overflow�
T)�allow_blank)�
isinstancer�
render_str�join�split)rrr r!�texts     r�_prefix_with_indentr,(s����!�T���%�����!�!�!�$�$�����f�x��8�8�7�;M�;M��V�
�
��<N�<�<�
�d�4�:�:�$�:�'�'�(�(�)�)rc��eZdZdZdS)�PipErrorzThe base pip error.N��__name__�
__module__�__qualname__�__doc__�rrr.r.9s���������rr.c���eZdZUdZeed<ddddd�dddeedeeefd	eeeefd
eeeefdeeeefdeed
df�fd�Z	d
efd�Z
deded
e
fd�Z�xZS)�DiagnosticPipErrora�An error, that presents diagnostic information to the user.

    This contains a bunch of logic, to enable pretty presentation of our error
    messages. Each error gets a unique reference. Each error can also include
    additional context, a hint and/or a note -- which are presented with the
    main error message in a consistent style.

    This is adapted from the error output styling in `sphinx-theme-builder`.
    �	reference�errorN)�kindr7�	note_stmt�linkr9zLiteral["error", "warning"]�message�context�	hint_stmtr:r;rc�P��|�!t|d��s
Jd���|j}t|��s
Jd���||_||_||_||_||_||_||_t���
d|jj�d|j�d���dS)Nr7zerror reference not provided!z#error reference must be kebab-case!�<z: �>)
�hasattrr7rr9r<r=r:r>r;�super�__init__�	__class__r0)	�selfr9r7r<r=r>r:r;rEs	        �rrDzDiagnosticPipError.__init__Js�������4��-�-�N�N�/N�N�N�N���I��i�(�(�O�O�*O�O�O�O���	�"���������"���"�����	�
�����I�T�^�4�I�I���I�I�I�J�J�J�J�Jrc
�r�d|jj�d|j�d|j�d|j�d|j�d|j�d�
S)Nr@z(reference=z
, message=z
, context=z, note_stmt=z, hint_stmt=z)>)rEr0r7r<r=r:r>�rFs r�__repr__zDiagnosticPipError.__repr__hss��
���'�
�
���
�
��|�
�
��|�
�
���	
�
�
��
�
�
�	
rr�optionsc#�PK�|jdkrdnd}d|�d|j�d|j�d�V�dV�|jsg|j�Et	|j|d|�d	�d|�d
����V�t	|j|d|�d�d|�d
����V�n8t	|j|dd���V�n|jV�|j�
dV�|jV�|j�|j�dV�|j�t	|j|dd���V�|j�t	|j|dd���V�|j�dV�d|j��V�dSdS)Nr8�red�yellow�[z bold]z[/]: [bold]z[/]�u]×[/] u]│[/] )r r!u]╰─>[/] z]   [/] u[red]×[/] z  z[magenta bold]note[/]: z      z[cyan bold]hint[/]: zLink: )	r9r7�
ascii_onlyr=r,r<r:r>r;)rFrrJ�colours    r�__rich_console__z#DiagnosticPipError.__rich_console__ss����
�)�w�.�.���H��I�&�I�I��	�I�I�d�n�I�I�I�I�I�I������!�	#��|�'�)��L��.�v�.�.�.�/�v�/�/�/�	������*��L��3�v�3�3�3�/�v�/�/�/�	�������*��L��(��	��������,�����|�'������l�"�"�"��>�%���)C��H�H�H��>�%�%����0��	���
�
�
��>�%�%����-��	���
�
�
��9� ��H�H�H�&�4�9�&�&�&�&�&�&�&�!� r)r0r1r2r3�str�__annotations__r
rrrDrIrrrrR�
__classcell__�rEs@rr6r6=sT�����������N�N�N�
/6�#'�15�"�K�K�K�,�K��C�=�	K�
�s�D�y�!�K��%��T�	�*�+�
K��E�#�t�)�,�-�K��E�#�t�)�,�-�K��s�m�K�
�K�K�K�K�K�K�<	
�#�	
�	
�	
�	
�:'��:'� �:'�
�	:'�:'�:'�:'�:'�:'�:'�:'rr6c��eZdZdZdS)�ConfigurationErrorz"General exception in configurationNr/r4rrrXrX�s������,�,�,�,rrXc��eZdZdZdS)�InstallationErrorz%General exception during installationNr/r4rrrZrZ�s������/�/�/�/rrZc��eZdZdZdS)�UninstallationErrorz'General exception during uninstallationNr/r4rrr\r\�s������1�1�1�1rr\c�0��eZdZdZdZdeddf�fd�Z�xZS)�MissingPyProjectBuildRequireszNRaised when pyproject.toml has `build-system`, but no `build-system.requires`.z'missing-pyproject-build-system-requires�packagerNc���t���dt|����td��dtd�����dS)N�Can not process zrThis package has an invalid pyproject.toml file.
The [build-system] table is missing the mandatory `requires` key.�;This is an issue with the package mentioned above, not pip.�+See PEP 518 for the detailed specification.�r<r=r:r>�rCrDrr)rFr_rEs  �rrDz&MissingPyProjectBuildRequires.__init__�sd���
�����8�v�g���8�8��T���T��H�I�I�	�	
�	
�	
�	
�	
r�r0r1r2r3r7rSrDrUrVs@rr^r^�sV�������X�X�9�I�	
�3�	
�4�	
�	
�	
�	
�	
�	
�	
�	
�	
�	
rr^c�4��eZdZdZdZdededdf�fd�Z�xZS)�InvalidPyProjectBuildRequiresz>Raised when pyproject.toml an invalid `build-system.requires`.z'invalid-pyproject-build-system-requiresr_�reasonrNc���t���dt|����td|����dtd�����dS)NrazKThis package has an invalid `build-system.requires` key in pyproject.toml.
rbrcrdre)rFr_rirEs   �rrDz&InvalidPyProjectBuildRequires.__init__�sp���
�����8�v�g���8�8��-�$*�-�-���T��H�I�I�	�	
�	
�	
�	
�	
rrfrVs@rrhrh�s]�������H�H�9�I�	
�3�	
��	
��	
�	
�	
�	
�	
�	
�	
�	
�	
�	
rrhc�2�eZdZdZdddeddfd�Zdefd�ZdS)	�NoneMetadataErrora4Raised when accessing a Distribution's "METADATA" or "PKG-INFO".

    This signifies an inconsistency, when the Distribution claims to have
    the metadata file (if not, raise ``FileNotFoundError`` instead), but is
    not actually able to produce its content. This may be due to permission
    errors.
    �distr�
metadata_namerNc�"�||_||_dS)z�
        :param dist: A Distribution object.
        :param metadata_name: The name of the metadata being accessed
            (can be "METADATA" or "PKG-INFO").
        N)rmrn)rFrmrns   rrDzNoneMetadataError.__init__�s����	�*����rc�&�d|j�d|j��S)NzNone z" metadata found for distribution: )rnrmrHs r�__str__zNoneMetadataError.__str__�s ��Y�t�)�X�X�T�Y�X�X�Xr�r0r1r2r3rSrDrqr4rrrlrl�sp��������+� �+��+�
�	+�+�+�+�Y��Y�Y�Y�Y�Y�Yrrlc��eZdZdZdefd�ZdS)�UserInstallationInvalidzBA --user install is requested on an environment without user site.rc��dS)Nz$User base directory is not specifiedr4rHs rrqzUserInstallationInvalid.__str__s��5�5rN)r0r1r2r3rSrqr4rrrtrt�s5������L�L�6��6�6�6�6�6�6rrtc��eZdZdefd�ZdS)�InvalidSchemeCombinationrc��d�d�|jdd�D����}d|�d|jd�d�S)Nz, c3�4K�|]}t|��V��dS�N)rS)�.0�as  r�	<genexpr>z3InvalidSchemeCombination.__str__.<locals>.<genexpr>s(����:�:�a�3�q�6�6�:�:�:�:�:�:r���zCannot set z and z	 together)r)�args)rF�befores  rrqz InvalidSchemeCombination.__str__sK�����:�:�4�9�S�b�S�>�:�:�:�:�:��B�V�B�B�$�)�B�-�B�B�B�BrN)r0r1r2rSrqr4rrrwrws6������C��C�C�C�C�C�Crrwc��eZdZdZdS)�DistributionNotFoundzCRaised when a distribution cannot be found to satisfy a requirementNr/r4rrr�r�
s������M�M�M�Mrr�c��eZdZdZdS)�RequirementsFileParseErrorzDRaised when a general error occurs parsing a requirements file line.Nr/r4rrr�r�s������N�N�N�Nrr�c��eZdZdZdS)�BestVersionAlreadyInstalledzNRaised when the most up-to-date version of a package is already
    installed.Nr/r4rrr�r�s���������rr�c��eZdZdZdS)�
BadCommandz0Raised when virtualenv or a command is not foundNr/r4rrr�r�s������:�:�:�:rr�c��eZdZdZdS)�CommandErrorz7Raised when there is an error in command-line argumentsNr/r4rrr�r�s������A�A�A�Arr�c��eZdZdZdS)�PreviousBuildDirErrorz:Raised when there's a previous conflicting build directoryNr/r4rrr�r�s������D�D�D�Drr�c	�^��eZdZdZ		d	dedeedeeddf�fd�
Zdefd�Z	�xZ
S)
�NetworkConnectionErrorzHTTP connection errorN�	error_msg�response�requestrc����||_||_||_|j�(|js!t|d��r|jj|_t	���|||��dS)zc
        Initialize NetworkConnectionError with  `request` and `response`
        objects.
        Nr�)r�r�r�rBrCrD)rFr�r�r�rEs    �rrDzNetworkConnectionError.__init__&sn���!��
����"����M�%��L�
&���)�,�,�
&� �=�0�D�L�
������H�g�6�6�6�6�6rc�*�t|j��Srz)rSr�rHs rrqzNetworkConnectionError.__str__;s���4�>�"�"�"r)NN)r0r1r2r3rSr
r
rrDrqrUrVs@rr�r�#s����������
(,�%)�	7�7��7��8�$�7��'�"�	7�

�7�7�7�7�7�7�*#��#�#�#�#�#�#�#�#rr�c��eZdZdZdS)�InvalidWheelFilenamezInvalid wheel filename.Nr/r4rrr�r�?s������!�!�!�!rr�c��eZdZdZdS)�UnsupportedWheelzUnsupported wheel.Nr/r4rrr�r�Cs���������rr�c�.�eZdZdZdedefd�Zdefd�ZdS)�InvalidWheelzInvalid (e.g. corrupt) wheel.�location�namec�"�||_||_dSrz)r�r�)rFr�r�s   rrDzInvalidWheel.__init__Js�� ��
���	�	�	rrc�(�d|j�d|j�d�S)NzWheel 'z
' located at z is invalid.)r�r�rHs rrqzInvalidWheel.__str__Ns��L���L�L���L�L�L�LrNrrr4rrr�r�Gs^������'�'����C�����M��M�M�M�M�M�Mrr�c
�:�eZdZdZdddedededdf
d	�Zdefd
�ZdS)�MetadataInconsistentaBuilt metadata contains inconsistent information.

    This is raised when the metadata contains values (e.g. name and version)
    that do not match the information previously obtained from sdist filename,
    user-supplied ``#egg=`` value, or an install requirement name.
    �ireqr�field�f_val�m_valrNc�>�||_||_||_||_dSrz�r�r�r�r�)rFr�r�r�r�s     rrDzMetadataInconsistent.__init__Zs$����	���
���
���
�
�
rc�F�d|j�d|j�d|j�d|j��S)Nz
Requested z has inconsistent z: expected z, but metadata has r�rHs rrqzMetadataInconsistent.__str__bsO��
H���
H�
H�d�j�
H�
H��
�
H�
H�9=��
H�
H�	
rrrr4rrr�r�Rsu���������(��14��=@��IL��	
�����
��
�
�
�
�
�
rr�c�\��eZdZdZdZdededeeeddf�fd�Z	defd	�Z
�xZS)
�InstallationSubprocessErrorzA subprocess call failed.zsubprocess-exited-with-error�command_description�	exit_code�output_linesrNc�r��|�td��}n]tjdt|���d���td�|����ztjd��z}t	���dt
|���d|��|dd�	��||_||_dS)
NzSee above for output.z[red][z lines of output][/]
rOz[red]\[end of output][/]z[green]z)[/] did not run successfully.
exit code: zNThis error originates from a subprocess, and is likely not a problem with pip.�r<r=r>r:)	r�from_markup�lenr)rCrDrr�r�)rFr�r�r��
output_promptrEs     �rrDz$InstallationSubprocessError.__init__ns������ �!8�9�9�M�M�� �!S�#�l�*;�*;�!S�!S�!S�T�T��r�w�w�|�,�,�-�-�.��"�#>�?�?�@�
�	�����*�&�!4�5�5�*�*�'�*�*�"��$�	�	
�	
�	
�$7�� �"����rc�$�|j�d|j��S)Nz
 exited with )r�r�rHs rrqz#InstallationSubprocessError.__str__�s���*�I�I���I�I�Ir)r0r1r2r3r7rS�intr
r	rDrqrUrVs@rr�r�is��������#�#�.�I�#�!�#��	#�
�t�C�y�)�#�
�
#�#�#�#�#�#�@J��J�J�J�J�J�J�J�Jrr�c�8��eZdZdZdeddf�fd�Zdefd�Z�xZS)�MetadataGenerationFailedzmetadata-generation-failed�package_detailsrNc�z��tt|���dt|��dd���dS)Nz4Encountered error while generating package metadata.zSee above for details.rbr�)rCr�rDr)rFr�rEs  �rrDz!MetadataGenerationFailed.__init__�sK���
	�)�4�0�0�9�9�J��?�+�+�.�S�		:�	
�	
�	
�	
�	
rc��dS)Nzmetadata generation failedr4rHs rrqz MetadataGenerationFailed.__str__�s��+�+r)r0r1r2r7rSrDrqrUrVs@rr�r��sq�������,�I�

��

�
�	

�

�

�

�

�

�,��,�,�,�,�,�,�,�,rr�c�:�eZdZdZd
d�Zdd�Zdefd�Zdefd	�Z	dS)�
HashErrorsz:Multiple HashError instances rolled into one for reportingrNc��g|_dSrz)�errorsrHs rrDzHashErrors.__init__�s
��)+����rr8�	HashErrorc�:�|j�|��dSrz)r��append)rFr8s  rr�zHashErrors.append�s������5�!�!�!�!�!rc��g}|j�d����t|jd���D]>\}}|�|j��|�d�|D�����?|rd�|��SdS)Nc��|jSrz)�order��es r�<lambda>z$HashErrors.__str__.<locals>.<lambda>�s��q�w�r)�keyc��|jSrzrVr�s rr�z$HashErrors.__str__.<locals>.<lambda>�s����rc3�>K�|]}|���V��dSrz)�body)r{r�s  rr}z%HashErrors.__str__.<locals>.<genexpr>�s*����9�9�a������9�9�9�9�9�9rr%rO)r��sortrr��head�extendr))rF�lines�cls�
errors_of_clss    rrqzHashErrors.__str__�s���������.�.��/�/�/�")�$�+�7L�7L�"M�"M�	:�	:��C���L�L���"�"�"��L�L�9�9�=�9�9�9�9�9�9�9��	$��9�9�U�#�#�#��rrc�*�t|j��Srz)�boolr�rHs r�__bool__zHashErrors.__bool__�s���D�K� � � r)rN)r8r�rN)
r0r1r2r3rDr�rSrqr�r�r4rrr�r��sx������D�D�,�,�,�,�"�"�"�"�������!�$�!�!�!�!�!�!rr�c�d�eZdZUdZdZeded<dZdZe	ed<de
fd	�Zde
fd
�Zde
fd�Z
dS)r�a�
    A failure to verify a package against known-good hashes

    :cvar order: An int sorting hash exception classes by difficulty of
        recovery (lower being harder), so the user doesn't bother fretting
        about unpinned packages when he has deeper issues, like VCS
        dependencies, to deal with. Also keeps error reports in a
        deterministic order.
    :cvar head: A section heading for display above potentially many
        exceptions of this kind
    :ivar req: The InstallRequirement that triggered this error. This is
        pasted on after the exception is instantiated, because it's not
        typically available earlier.

    Nr�reqrOr~r�rc�0�d|�����S)a=Return a summary of me for display under the heading.

        This default implementation simply prints a description of the
        triggering requirement.

        :param req: The InstallRequirement that provoked this error, with
            its link already populated by the resolver's _populate_link().

        �    )�_requirement_namerHs rr�zHashError.body�s��1�d�,�,�.�.�0�0�0rc�>�|j�d|�����S)Nr%)r�r�rHs rrqzHashError.__str__�s ���)�,�,�t�y�y�{�{�,�,�,rc�<�|jrt|j��ndS)z�Return a description of the requirement that triggered me.

        This default implementation returns long description of the req, with
        line numbers

        �unknown package)r�rSrHs rr�zHashError._requirement_name�s��!%��?�s�4�8�}�}�}�.?�?r)r0r1r2r3r�r
rTr�r�r�rSr�rqr�r4rrr�r��s���������� +/�C��&�	'�.�.�.�
�D��E�3�O�O�O�
1�c�
1�
1�
1�
1�-��-�-�-�-�@�3�@�@�@�@�@�@rr�c��eZdZdZdZdZdS)�VcsHashUnsupported�uA hash was provided for a version-control-system-based requirement, but
    we don't have a method for hashing those.rzlCan't verify hashes for these requirements because we don't have a way to hash version control repositories:N�r0r1r2r3r�r�r4rrr�r��s)������1�1�
�E�	;�	�D�Drr�c��eZdZdZdZdZdS)�DirectoryUrlHashUnsupportedr��zUCan't verify hashes for these file:// requirements because they point to directories:Nr�r4rrr�r��s)������1�1�
�E�	 �	�D�Drr�c�6�eZdZdZdZdZdeddfd�Zdefd�ZdS)	�HashMissingz2A hash was needed for a requirement but is absent.�awHashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)�gotten_hashrNc��||_dS)zq
        :param gotten_hash: The hash of the (possibly malicious) archive we
            just downloaded
        N)r�)rFr�s  rrDzHashMissing.__init__s��
'����rc��ddlm}d}|jr.|jjr|jjnt|jdd��}d�|pd||j��S)Nr)�
FAVORITE_HASHr�z    {} --hash={}:{}r�)�pip._internal.utils.hashesr�r��	is_direct�
original_link�getattr�formatr�)rFr�r_s   rr�zHashMissing.bodys~��<�<�<�<�<�<����8�
	��8�%�4���&�&��T�X�u�d�3�3�
�%�+�+��(�(�-��9I�
�
�	
r)	r0r1r2r3r�r�rSrDr�r4rrr�r�sf������<�<�
�E�	�	�'�C�'�D�'�'�'�'�
�c�
�
�
�
�
�
rr�c��eZdZdZdZdZdS)�HashUnpinnedzPA requirement had a hash specified but was not pinned to a specific
    version.�zaIn --require-hashes mode, all requirements must have their versions pinned with ==. These do not:Nr�r4rrr�r�*s)��������
�E�	1�	�D�Drr�c�r�eZdZdZdZdZdeeeefdeedfddfd	�Z	defd
�Z
defd�ZdS)�HashMismatchz�
    Distribution file hash values don't match.

    :ivar package_name: The name of the package that triggered the hash
        mismatch. Feel free to write to this after the exception is raise to
        improve its error message.

    �z�THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.�allowed�gotsrrNc�"�||_||_dS)z�
        :param allowed: A dict of algorithm names pointing to lists of allowed
            hex digests
        :param gots: A dict of algorithm names pointing to hashes we
            actually got from the files under suspicion
        N)r�r�)rFr�r�s   rrDzHashMismatch.__init__Gs�������	�	�	rc�Z�d|����d|�����S)Nr�z:
)r��_hash_comparisonrHs rr�zHashMismatch.bodyQs0��L�d�,�,�.�.�L�L�4�3H�3H�3J�3J�L�L�Lrc�N��dtddfd�}g}|j���D]g\}}||���|��fd�|D����|�d|j|����d����hd�|��S)aE
        Return a comparison of actual and expected hash values.

        Example::

               Expected sha256 abcdeabcdeabcdeabcdeabcdeabcdeabcdeabcdeabcde
                            or 123451234512345123451234512345123451234512345
                    Got        bcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdefbcdef

        �	hash_namerz
chain[str]c�>�t|gtd����S)Nz    or)rr)r�s r�hash_then_orz3HashMismatch._hash_comparison.<locals>.hash_then_or`s���)��f�X�&6�&6�7�7�7rc3�B�K�|]}dt����d|��V��dS)z        Expected � N)�next)r{r�r s  �rr}z0HashMismatch._hash_comparison.<locals>.<genexpr>hs:�����U�U�a�@�d�6�l�l�@�@�Q�@�@�U�U�U�U�U�Urz             Got        r%)rSr��itemsr�r�r��	hexdigestr))rFr�r�r��	expectedsr s     @rr�zHashMismatch._hash_comparisonTs����	8�C�	8�L�	8�	8�	8�	8�
��$(�L�$6�$6�$8�$8�	�	� �I�y�!�\�)�,�,�F��L�L�U�U�U�U�9�U�U�U�U�U�U��L�L�O�4�9�Y�+?�+I�+I�+K�+K�O�O�O�
�
�
�
��y�y����r)r0r1r2r3r�r�rrSr	rDr�r�r4rrr�r�5s���������
�E�	/�	���S�$�s�)�^� 4��D��g��<N��SW�����M�c�M�M�M�M� �#� � � � � � rr�c��eZdZdZdS)�UnsupportedPythonVersionzMUnsupported python version according to Requires-Python package
    metadata.Nr/r4rrrros���������rrc	�j��eZdZdZ			d
dedeedeejddf�fd�
Zdefd	�Z	�xZ
S)�!ConfigurationFileCouldNotBeLoadedz8When there are errors while loading a configuration file�could not be loadedNri�fnamer8rc�t��t���|��||_||_||_dSrz)rCrDrirr8)rFrirr8rEs    �rrDz*ConfigurationFileCouldNotBeLoaded.__init__ws6���	��������������
���
�
�
rc�h�|j�d|j�d�}n|j�J�d|j�d�}d|j�|��S)Nz in �.z.
r%zConfiguration file )rr8ri)rF�message_parts  rrqz)ConfigurationFileCouldNotBeLoaded.__str__�sS���:�!�/�$�*�/�/�/�L�L��:�)�)�)�/���/�/�/�L�@�T�[�@�,�@�@�@r)rNN)r0r1r2r3rSr
�configparser�ErrorrDrqrUrVs@rrrts��������B�B�,�#�.2�		�	��	���}�	���*�+�		�

�	�	�	�	�	�	�A��A�A�A�A�A�A�A�ArrzThe Python environment under z� is managed externally, and may not be
manipulated by the user. Please use specific tooling from the distributor of
the Python installation to interact with this environment instead.
c���eZdZdZdZdeeddf�fd�Zede	efd���Z
edee
jefddfd	���Z�xZS)
�ExternallyManagedEnvironmentaPThe current environment is externally managed.

    This is raised when the current environment is externally managed, as
    defined by `PEP 668`_. The ``EXTERNALLY-MANAGED`` configuration is checked
    and displayed when the error is bubbled up to the user.

    :param error: The error message read from ``EXTERNALLY-MANAGED``.
    zexternally-managed-environmentr8rNc���|�tt��}nt|��}t���d|dtd�����dS)Nz&This environment is externally managedz�If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.z+See PEP 668 for the detailed specification.rd)r�!_DEFAULT_EXTERNALLY_MANAGED_ERRORrCrD)rFr8r=rEs   �rrDz%ExternallyManagedEnvironment.__init__�sh����=��<�=�=�G�G��5�k�k�G�
�����<��J�
�H�I�I�	�
	
�
	
�
	
�
	
�
	
rc#��K�	tj}tj|��\}}n#t$rd}YnwxYw|�/d|��V�dD]%}|�|��\}}}|s�d|��V��&dV�dS)NzError-)�-�_r
)�locale�LC_MESSAGES�	getlocale�AttributeError�	partition)�category�langr�sepr��founds      r�#_iter_externally_managed_error_keysz@ExternallyManagedEnvironment._iter_externally_managed_error_keys�s�����	1��)�H��&�x�0�0�G�D�!�!���	'�	'�	'�"&�D�D�D�	'������!�4�/�/�!�!�!�!�
(�
(��#'�>�>�#�#6�#6� ���q����'�v�'�'�'�'�'�'��
�
�
�
�
s�(�7�7�configc��tjd���}	|�|d���|d}|���D]F}t	jt��5|||��cddd��cS#1swxYwY�Gnj#t$rYn^tttj	f$r@ddl
m}t�
|��}t�d||���YnwxYw|d��S)	N)�
interpolationzutf-8)�encodingzexternally-managedr)�VERBOSEzFailed to read %s)�exc_info)r�ConfigParser�readr�
contextlib�suppress�KeyError�OSError�UnicodeDecodeError�ParsingError�pip._internal.utils._logr#�logger�isEnabledFor�warning)r�r�parser�sectionr�r#r$s       r�from_configz(ExternallyManagedEnvironment.from_config�s���
�*��>�>�>��	K��K�K���K�1�1�1��1�2�G��>�>�@�@�
-�
-���(��2�2�-�-��3�w�s�|�,�,�-�-�-�-�-�-�-�-�-�-�-�-�-�-����-�-�-�-�-�
-���	�	�	��D��+�\�-F�G�	K�	K�	K�8�8�8�8�8�8��*�*�7�3�3�H��N�N�.���N�J�J�J�J�J�		K����
�s�4�y�y�s=�AB�%B�6B�B		�	B�B		�
B�
C9�AC9�8C9)r0r1r2r3r7r
rSrD�staticmethodrr�classmethodr�pathlib�Pathr3rUrVs@rrr�s����������1�I�
�h�s�m�
��
�
�
�
�
�
�"���#������\��*���g�l�C�'�(��
(�����[�����rr)Pr3rr'r�loggingr6r�sys�	itertoolsrrr�typingrrrr	r
r�pip._vendor.requests.modelsrr
�pip._vendor.rich.consolerrr�pip._vendor.rich.markupr�pip._vendor.rich.textr�hashlibrr�pip._internal.metadatar�pip._internal.req.req_installr�	getLoggerr0r.rSr�rr,�	Exceptionr.r6rXrZr\r^rhrlrtrwr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrr rrr4rr�<module>rEs�������������
�
�
�
���������	�	�	�	�
�
�
�
�,�,�,�,�,�,�,�,�,�,�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�G�9�9�9�9�9�9�9�9�J�J�J�J�J�J�J�J�J�J�*�*�*�*�*�*�&�&�&�&�&�&��A�������������7�7�7�7�7�7�@�@�@�@�@�@�	��	�8�	$�	$��:�c�:�d�:�:�:�:�)��T�3�Y��)�
�)�
�	)�

�)�
�
)�)�)�)�"�����y����p'�p'�p'�p'�p'��p'�p'�p'�l-�-�-�-�-��-�-�-�0�0�0�0�0��0�0�0�2�2�2�2�2�(�2�2�2�
�
�
�
�
�$6�
�
�
�"
�
�
�
�
�$6�
�
�
�"Y�Y�Y�Y�Y��Y�Y�Y�86�6�6�6�6�/�6�6�6�C�C�C�C�C�0�C�C�C�N�N�N�N�N�,�N�N�N�O�O�O�O�O�!2�O�O�O������(����
;�;�;�;�;��;�;�;�B�B�B�B�B�8�B�B�B�E�E�E�E�E�H�E�E�E�#�#�#�#�#�X�#�#�#�8"�"�"�"�"�,�"�"�"������(����M�M�M�M�M�$�M�M�M�
�
�
�
�
�,�
�
�
�.&J�&J�&J�&J�&J�"4�6G�&J�&J�&J�R,�,�,�,�,�:�<M�,�,�,�&!�!�!�!�!�"�!�!�!�.+@�+@�+@�+@�+@�!�+@�+@�+@�\��������������)����'
�'
�'
�'
�'
�)�'
�'
�'
�T�����9����7 �7 �7 �7 �7 �9�7 �7 �7 �t�����0����
A�A�A�A�A�(:�A�A�A�.%�!�j�%�%�%�!�F�F�F�F�F�#5�F�F�F�F�Fr

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists