OwlCyberSecurity - MANAGER
Edit File: misc.cpython-312.pyc
� ����S;0h�[����������������������������d�dl�Z�d�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dlZd�dl Z d�dl Zd�dlm Z �d�dlmZ�d�dlmZ�d�dlmZmZmZ�d�dlmZ�d�dlmZmZ�d�dlmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+�d�d l,m-Z-�d�d l.m/Z/�d�dl0m1Z1�d�dl2m3Z3m4Z4�d�d l5m6Z6�d�dl7m8Z8�d�dl9m:Z:�d�dl;m<Z<�g�d�Z=�ej|������������������e?�������Z@�e)d�������ZAe'e(eB���eBef���ZCe'eDeDeDf���ZEe'eFe'e$eF���e$eF���f���f���ZGeeeeBgef���ZHeeeeCgef���ZIdZJdeFfd�ZKde'eDdf���de'eDeDeDf���fd�ZLdeFddfd�ZMdeFfd�ZN�e:dd�������� �dtdeFd eOd!e$eH���ddfd"���������ZPd#eddfd$�ZQd#eddfd%�ZReRd&�d'eded(e*eCeBf���d!eHddf d)�ZSdeFdeFfd*�ZTdudeFd+eFdeFfd,�ZUd-eFd.e eF���deFfd/�ZVd-eFddfd0�ZWd-eFd.e eF���deFfd1�ZXd-eFdeFfd2�ZYd-eFdeFfd3�ZZd4eFdeDfd5�Z[d6e\deFfd7�Z]d8e e e������de'e"eF���e"eD���f���fd9�Z^deFdeOfd:�Z_eJfd;ed<eDdee`ddf���fd=�ZadvdeFd?eOdeFfd@�ZbdeFde'eFeFf���fdA�ZcdBeFdCeFddfdD�ZddeFdeOfdE�ZedFedGeddfdH�Zf�G�dI��dJe�������ZgdKedLede(e���fdM�ZhdNeFdOe$eD���deFfdP�ZidwdQeFdReFdeFfdS�ZjdQeFde'e$eF���e$eD���f���fdT�ZkdQeFdeGfdU�ZldQeFdeFfdV�ZmdWeFdXeeFge'edf���f���de'eFeGf���fdY�ZndQeFdeGfdZ�ZodQeFde'eF���fd[�ZpdWeFde'eFeFe'e$eF���e$eF���f���f���fd\�ZqdWeFdeFfd]�ZrdWeFdeFfd^�Zsd_e-deFfd`�Zt�e d>�a��������G�db��dc���������������ZuddeFdeufde�ZvdWeFdeufdf�ZwdgeOddfdh�Zxdxdi�ZydeOfdj�ZzdydeFdkeDde'eeDf���fdl�Z{dme e���de!e'eef������fdn�Z|doeeAgeOf���dme eA���de'e eA���e eA���f���fdp�Z}�G�dq��dre/�������Z~dxds�Zy)z�����N)� dataclass)�partial)�StringIO)�filterfalse�tee�zip_longest)�Path)�FunctionType� TracebackType)�Any�BinaryIO�Callable� Generator�Iterable�Iterator�List�Mapping�Optional�Sequence�TextIO�Tuple�Type�TypeVar�Union�cast)�Requirement)�BuildBackendHookCaller)�__version__)�CommandError�ExternallyManagedEnvironment)�get_major_minor_version)�WINDOWS)�retry)�running_under_virtualenv)�rmtree�display_path� backup_dir�ask�splitext�format_size�is_installable_dir�normalize_path�renames�get_prog� ensure_dir�remove_auth_from_url�check_externally_managed� ConfiguredBuildBackendHookCaller�T�����returnc�������������������������t���������j������������������j������������������t���������j������������������j������������������t���������������dd�������}�t���������j������������������j������������������|��������}�dt����������d|���dt������������������d�S�)Nz..zpip z from z (python �))�os�path�join�dirname�__file__�abspathr���r!���)�pip_pkg_dirs��� �G/opt/hc_python/lib/python3.12/site-packages/pip/_internal/utils/misc.py�get_pip_versionr@���L���sX�������'�'�,�,�r�w�w���x�8�$��E�K��'�'�/�/�+�.�K� �+��f�[�M��;R�;T�:U�UV�W�W������py_version_info.c�����������������������t��������|��������dk��r|�dt��������|��������z ��dz��z ��}�nt��������|��������dkD��r|�dd�}�t��������d|��������S�)ax�� Convert a tuple of ints representing a Python version to one of length three. :param py_version_info: a tuple of ints representing a Python version, or None to specify no version. The tuple can have any length. :return: a tuple of length three if `py_version_info` is non-None. Otherwise, return `py_version_info` unchanged (i.e. None). ����)r���N�VersionInfo)�lenr���)rB���s��� r?����normalize_version_inforG���S���sP��������?��a���A��O� 4�4��<�<�� �_� �� !�)�"�1�-��� ��/�/rA���r9���c������������������������ �t��������j������������������|���������y#�t��������$�rJ}|j������������������t��������j������������������k7��r#|j������������������t��������j ������������������k7��r��Y�d}~yY�d}~yd}~ww�xY�w)z os.path.makedirs without EEXIST.N)r8����makedirs�OSError�errno�EEXIST� ENOTEMPTY)r9����es��� r?���r/���r/���f���sN������� ���D�������7�7�e�l�l�"�q�w�w�%�/�/�'A���(B�"���s������ A+�;A&�&A+c������������������������� �t���������j������������������j������������������t��������j������������������d����������}�|�dv�rt��������j ��������������������d�S�|�S�#�t��������t��������t��������f$�r�Y�yw�xY�w)Nr���)z__main__.pyz-cz -m pip�pip) r8���r9����basename�sys�argv� executable�AttributeError� TypeError� IndexError)�progs��� r?���r.���r.���p���s_������ ��w�w��������,���(�(��n�n�%�W�-�-��K���I�z�2�� ��� �s����AA�� A��A"�!A"rD���g�������?)�stop_after_delay�wait�dir� ignore_errors�onexcc������������������������|rt���������}|�t��������}t��������t��������|��������}t��������j ������������������dk\��rt ��������j������������������|�|���������y�t ��������j������������������|�|���������y�)N�r]���)rD�������)�onerror)�_onerror_ignore�_onerror_reraiser����rmtree_errorhandlerrR����version_info�shutilr%���)r[���r\���r]����handlers��� r?���r%���r%���}���sM�����������}� ���0��>�G� ���7�"�� � �c��)�� � �c�7�+rA����_argsc�������������������������y��N���rh���s��� r?���rb���rb�������s������rA���c���������������������������rj���rk���rl���s��� r?���rc���rc�������s������ rA���r_����func�exc_infoc�����������������h���� �t��������j������������������|�������j������������������}|t��������j������������������z��s2 �t��������j ������������������||t��������j������������������z���������� ��|�|��������yt ��������|t���������������s|\��}}}�||�||��������y#�t��������$�r�Y�yw�xY�w#�t��������$�r�Y��;w�xY�w#�t��������$�r�Y��Jw�xY�w)a1�� `rmtree` error handler to 'force' a file remove (i.e. like `rm -f`). * If a file is readonly then it's write flag is set and operation is retried. * `onerror` is the original callback from `rmtree(... onerror=onerror)` that is chained at the end if the "rm -f" still fails. N)r8����stat�st_moderJ����S_IWRITE�chmod� isinstance� BaseException)rn���r9���ro���r]���rr����_s��� r?���rd���rd�������s������� ��'�'�$�-�'�'�� ��T�]�]�"� ��H�H�T�7�T�]�]�2�3� ��T� ����h� �.�!���8�Q� �$��h���)���������� �� ����� �� �s4����B��'B%��B�� B�B� B"�!B"�% B1�0B1c������������������@����t���������j������������������j������������������t���������j������������������j������������������|���������������}�|�j ������������������t��������j ��������������������������t���������j������������������j������������������z����������r#d|�t��������t��������j ���������������������������������d�z���}�|�S�)zTGives the display value for a given path, making it relative to cwd if possible.�.N)r8���r9����normcaser=���� startswith�getcwd�seprF����r9���s��� r?���r&���r&�������sf��������7�7���B�G�G�O�O�D�1�2�D����r�y�y�{�R�W�W�[�[�0�1��T�#�b�i�i�k�*�,�-�-���KrA����extc������������������������d}|}t���������j������������������j������������������|�|z����������r6|dz ��}|t��������|�������z���}t���������j������������������j������������������|�|z����������r�6|�|z���S�)z\Figure out the name of a directory to back up the given dir to (adding .bak, .bak2, etc)����)r8���r9����exists�str)r[���r����n� extensions��� r?���r'���r'�������sZ������� �A��I� �'�'�.�.��y�� )� �Q����#�a�&�L� �� �'�'�.�.��y�� )����?�rA����message�optionsc�����������������������t���������j������������������j������������������dd�������j��������������������������D�] ��}||v�s�|c�S��t ��������|�|�������S�)N�PIP_EXISTS_ACTION��)r8����environ�get�splitr(���)r����r�����actions��� r?����ask_path_existsr��������sB�������*�*�.�.�!4�b�9�?�?�A���W���M��B���w�� � rA���c������������������^�����t���������j������������������j������������������d�������rt��������d|������������y)z&Raise an error if no input is allowed.�PIP_NO_INPUTz5No input was expected ($PIP_NO_INPUT set); question: N)r8���r����r����� Exception�r����s��� r?����_check_no_inputr��������s.������ �z�z�~�~�n�%��C�G�9�M� �� ��&rA���c������������������������ �t��������|���������t��������|��������}|j��������������������������j��������������������������}||vr+t ��������dj������������������|dj ������������������|����������������������n|S��f)z@Ask the message interactively, with the given possible responsesz>Your response ({!r}) was not one of the expected responses: {}z, )r�����input�strip�lower�print�formatr:���)r����r�����responses��� r?���r(���r(�������sa������ ��� ���>���>�>�#�)�)�+���7�"����V�H�d�i�i��&8�9� � ��O��rA���c������������������.�����t��������|���������t��������|��������S�)zAsk for input interactively.)r����r����r����s��� r?���� ask_inputr��������s�������G����>�rA���c������������������B�����t��������|���������t��������j������������������|��������S�)z!Ask for a password interactively.)r�����getpassr����s��� r?����ask_passwordr��������s�������G���?�?�7�#�#rA����valc������������������R�����|�j��������������������������}�|�dv�ry|�dv�ryt��������d|�����������)z�Convert a string representation of truth to true (1) or false (0). True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values are 'n', 'no', 'f', 'false', 'off', and '0'. Raises ValueError if 'val' is anything else. )�y�yes�t�true�on�1r����)r�����no�f�false�off�0r���zinvalid truth value )r����� ValueError)r����s��� r?���� strtoboolr��������s:��������)�)�+�C� �2�2�� �5� 5���/��w�7�8�8rA����bytesc�����������������������|�dkD��r|�dz��dz��d�d�S�|�dkD��rt��������|�dz�����������d�S�|�dkD��r |�dz��d�d�S�t��������|����������d�S�) Ni@B�g�����@�@i���z.1fz MBi'��z kBz bytes)�int)r����s��� r?���r*���r*�����sn�������{���&�.�4�'��,�C�0�0� �� ��e�d�l�#�$�C�(�(� ����&�.��%�S�)�)��e�*��V�$�$rA����rowsc����������� �������\����|�D��cg�c]��}t��������t��������t��������|�����������������}�}t��������|�ddi�D��cg�c]��}t ��������t��������t ��������|�����������������}}|�D��cg�c]:��}dj ������������������t��������t��������j������������������||��������������j����������������������������<�}}||fS�c�c}w�c�c}w�c�c}w�)z�Return a list of formatted rows and a list of column sizes. For example:: >>> tabulate([['foobar', 2000], [0xdeadbeef]]) (['foobar 2000', '3735928559'], [10, 4]) � fillvaluer����� ) �tuple�mapr����r����maxrF���r:����ljust�rstrip)r�����row�col�sizes�tables��� r?����tabulater������s��������-1�1�D�S�E�#�c�3�-� �D�D�1�+6��+K��+K�L�+K�C�S��S�#�� �+K�E�L�FJ�K�d�s�S�X�X�c�#�)�)�S�%�0� 1� 8� 8� :�d�E�K��%�<����2��L��Ks���� B� B$�?B)c������������������<����t���������j������������������j������������������|��������syt���������j������������������j������������������t���������j������������������j ������������������|�d��������������ryt���������j������������������j������������������t���������j������������������j ������������������|�d��������������ryy)at��Is path is a directory containing pyproject.toml or setup.py? If pyproject.toml exists, this is a PEP 517 project. Otherwise we look for a legacy setuptools layout by identifying setup.py. We don't check for the setup.cfg because using it without setup.py is only available for PEP 517 projects, which are already covered by the pyproject.toml check. Fzpyproject.tomlTzsetup.py)r8���r9����isdir�isfiler:���r~���s��� r?���r+���r+���%��s_��������7�7�=�=���� �w�w�~�~�b�g�g�l�l�4�)9�:�;�� �w�w�~�~�b�g�g�l�l�4��4�5��rA����file�sizec��������������#����>���K���� �|�j������������������|�������}|sy|�����w)z7Yield pieces of data from a file-like object until EOF.N)�read)r����r�����chunks��� r?����read_chunksr����6��s(������������ � �$������� ��s����T�resolve_symlinksc�����������������������t���������j������������������j������������������|��������}�|r t���������j������������������j������������������|��������}�nt���������j������������������j ������������������|��������}�t���������j������������������j������������������|��������S�)zN Convert a path to its canonical, case-normalized, absolute version. )r8���r9���� expanduser�realpathr=���rz���)r9���r����s��� r?���r,���r,���A��sV������ ��7�7���d�#�D���w�w����%���w�w���t�$�� �7�7���D�!�!rA���c�����������������������t��������j������������������|��������\��}}|j��������������������������j������������������d�������r |dd�|z���}|dd�}||fS�)z,Like os.path.splitext, but take off .tar tooz.tar���N)� posixpathr)���r�����endswith)r9����baser���s��� r?���r)���r)���N��sN�������"�"�4�(�I�D�#��z�z�|���V�$��2�3�i�#�o���C�R�y����9�rA����old�newc������������������~����t���������j������������������j������������������|�������\��}}|r6|r4t���������j������������������j������������������|�������st��������j������������������|��������t��������j������������������|�|��������t���������j������������������j������������������|��������\��}}|r|r �t��������j������������������|��������yyy#�t��������$�r�Y�yw�xY�w)z7Like os.renames(), but handles renaming across devices.N) r8���r9���r����r����rI���rf����move� removedirsrJ���)r����r�����head�tails��� r?���r-���r-���W��s�������������s�#�J�D�$���R�W�W�^�^�D�1� ���D�� �K�K��S�������s�#�J�D�$��� ��M�M�$����t����� �� �s����B0��0 B<�;B<c������������������h�����t����������������sy|�j������������������t��������t��������j��������������������������������S�)z� Return True if path is within sys.prefix, if we're running in a virtualenv. If we're not in a virtualenv, all paths are considered "local." Caution: this function assumes the head of path has been normalized with normalize_path. T)r$���r{���r,���rR����prefixr~���s��� r?����is_localr����h��s%�������$�%���?�?�>�#�*�*�5�6�6rA����msg�argsc������������������0�����t��������j������������������|�g|�����y�rj���)�logger�info)r����r����s��� r?����write_outputr����v��s������ �K�K���d�rA���c��������������������H�����e�Zd�ZU�eed<���ededd�fd���������Zedefd���������Z y)� StreamWrapper�orig_streamr5���c������������������"������|���������}||_���������|S�rj���)r����)�clsr�����rets��� r?����from_streamzStreamWrapper.from_stream}��s�������e��%���� rA���c������������������.�����|�j�������������������j������������������S�rj���)r�����encoding��selfs��� r?���r����zStreamWrapper.encoding���s���������(�(�(rA���N) �__name__� __module__�__qualname__r����__annotations__�classmethodr�����propertyr����r����rk���rA���r?���r����r����z��sC����������f�����������)�#��)���)rA���r����� sequential�namedc������������ �������������t��������t��������|�t��������t��������|����������������������fi�|��}|j ��������������������������D���ci�c]��\��}}||�� �}}}||d<���t��������dd|�������S�c�c}}w�)N�reverse_mapping�Enumrk���)�dict�zip�rangerF����items�type)r����r�����enums�key�value�reverses��� r?����enumr�����sb��������Z��s�:��!7�8�B�E�B�E�,1�K�K�M�:�M�j�c�5�u�c�z�M�G�:�&�E� �����E�"�"���;s���� A�host�portc������������������,�����|�|�S�d|�v�rd|���d�}�|���d|���S�)z. Build a netloc from a host-port pair �:�[�]rk���)r��r��s��� r?����build_netlocr �����s3��������|��� �d�{��4�&��{���V�1�T�F��rA����netloc�schemec������������������T�����|�j������������������d�������dk\��rd|�vr d|�vrd|���d�}�|��d|����S�)z) Build a full URL from a netloc. r�������@r��r��z://)�count)r ��r��s��� r?����build_url_from_netlocr�����sA��������|�|�C��A��#�V�"3��6�8I��V�H�A����X�S���!�!rA���c�����������������������t��������|��������}t��������j������������������j������������������|�������}|j������������������|j ������������������fS�)z2 Return the host-port pair from a netloc. )r���urllib�parse�urlparse�hostnamer��)r ���url�parseds��� r?����parse_netlocr�����s5������� �� '�C� �\�\� "� "�3� '�F��?�?�F�K�K�'�'rA���c����������������������d|�vr|�dfS�|�j������������������dd�������\��}}�d}d|v�r|j������������������dd�������\��}}n|d}}t��������j������������������j ������������������|�������}|�t��������j������������������j ������������������|�������}|�||ffS�)zp Parse out and remove the auth information from a netloc. Returns: (netloc, (username, password)). r���NNr����Nr��)�rsplitr����r��r���unquote)r ���auth�pw�users��� r?����split_auth_from_netlocr �����s���������&���|�#�#� ��=�=��a�(�L�D�&��B� �d�{���:�:�c�1�%���b���b���<�<����%�D� �~� �\�\� !� !�"� %���D�"�:��rA���c�����������������������t��������|��������\��}�\��}}|�|�S�|�d}d}n!t��������j������������������j������������������|�������}d}|��|��d|����S�)z� Replace the sensitive data in a netloc with "****", if it exists. For example: - "user:pass@example.com" returns "user:****@example.com" - "accesstoken@example.com" returns "****@example.com" �****r����z:****r��)r ��r��r���quote)r ��r���passwords��� r?���� redact_netlocr%�����s`������� 6�f�=��F��T�8��|�� ��������|�|�!�!�$�'�����V�H�:�Q�v�h�'�'rA���r���transform_netlocc������������������"����t���������j������������������j������������������|��������}�||j�������������������������}|j������������������|d���|j ������������������|j������������������|j������������������f}t���������j������������������j������������������|�������}|t��������d|�������fS�)aR��Transform and replace netloc in a url. transform_netloc is a function taking the netloc and returning a tuple. The first element of this tuple is the new netloc. The entire tuple is returned. Returns a tuple containing the transformed url as item 0 and the original tuple returned by transform_netloc as item 1. r����NetlocTuple) r��r���urlsplitr ��r��r9����query�fragment� urlunsplitr���)r��r&���purl�netloc_tuple� url_pieces�surls��� r?����_transform_urlr1�����sp��������<�<� � ��%�D�#�D�K�K�0�L��+�+�|�A��� � �4�:�:�t�}�}�U�J��<�<�"�"�:�.�D���m�\�2�2�2rA���c�����������������������t��������|��������S�rj���)r ���r ��s��� r?����_get_netlocr4�����s ������!�&�)�)rA���c�����������������������t��������|��������fS�rj���)r%��r3��s��� r?����_redact_netlocr6�����s�������&�!�#�#rA���c������������������8�����t��������|�t���������������\��}\��}}|||fS�)z� Parse a url into separate netloc, auth, and url with no auth. Returns: (url_without_auth, netloc, (username, password)) �r1��r4��)r���url_without_authr ��r��s��� r?����split_auth_netloc_from_urlr:�����s'�������(6�c�;�'G�$��n�v�t��V�T�)�)rA���c������������������(�����t��������|�t���������������d���S�)z7Return a copy of url with 'username:password@' removed.r���r8���r��s��� r?���r0���r0��� ��s��������#�{�+�A�.�.rA���c������������������(�����t��������|�t���������������d���S�)z.Replace the password in a given url with ****.r���)r1��r6��r<��s��� r?����redact_auth_from_urlr>����s�������#�~�.�q�1�1rA����reqc�����������������������|�j�������������������st��������|��������S�t��������|��������j������������������|�j�������������������t��������|�j���������������������������������S�)z:Replace the password in a given requirement url with ****.)r��r�����replacer>��)r?��s��� r?����redact_auth_from_requirementrB����s7�������7�7��3�x���s�8���C�G�G�%9�#�'�'�%B�C�CrA���)�frozenc��������������������J�����e�Zd�ZU�eed<���eed<���defd�Zdefd�Zdedefd�Z y) � HiddenText�secret�redactedr5���c������������������ �����dt��������|���������d�S�)Nz<HiddenText �>)r����r����s��� r?����__repr__zHiddenText.__repr__"��s�������c�$�i�]�!�,�,rA���c�����������������������|�j�������������������S�rj����rG��r����s��� r?����__str__zHiddenText.__str__%��s�������}�}�rA����otherc������������������b�����t��������|��������t��������|�������ury|�j������������������|j������������������k(��S�)NF)r����rF��)r����rN��s��� r?����__eq__zHiddenText.__eq__)��s*��������:�T�%�[�(����{�{�e�l�l�*�*rA���N) r����r����r����r����r����rJ��rM��r����boolrP��rk���rA���r?���rE��rE����s7�������K��M�-�#��-�����+�C��+�D��+rA���rE��r���c�����������������������t��������|�d��������S�)Nr"��rL��)rE��)r���s��� r?���� hide_valuerS��2��s�������e�f�-�-rA���c������������������2�����t��������|��������}t��������|�|��������S�)NrL��)r>��rE��)r��rG��s��� r?����hide_urlrU��6��s������#�C�(�H��c�H�-�-rA���� modifying_pipc�����������������������ddt���������j������������������j���������������������dt���������j������������������j��������������������dt���������j������������������j���������������������g}|�xr:�t��������xr2�t ��������j������������������j������������������t���������j������������������d����������|v�}|rPt���������j������������������ddgt���������j������������������dd�z���}t��������dj������������������dj������������������|����������������������y) z�Protection of pip.exe from modification on Windows On Windows, any operation modifying pip should be run as: python -m pip ... rP���ry���r���z-mr����Nz3To modify pip, please run the following command: {}r����) rR���re����major�minorr"���r8���r9���rQ���rS���rT���r���r����r:���)rV��� pip_names�should_show_use_python_msg�new_commands��� r?����(protect_pip_from_modification_on_windowsr]��;��s�������� � �c���$�$� %�&� �c���$�$� %�Q�s�'7�'7�'=�'=�&>�?��I�� �P�'�P�b�g�g�&6�&6�s�x�x��{�&C�y�&P����"��~�~�t�U�3�c�h�h�q�r�l�B���B�I�I�����%� � �� ��"rA���c�������������������������t����������������ryt��������j������������������j������������������t ��������j ������������������d�������d�������}�t��������j������������������j ������������������|��������syt��������j������������������|���������)z�Check whether the current environment is externally managed. If the ``EXTERNALLY-MANAGED`` config file is found, the current environment is considered externally managed, and an ExternallyManagedEnvironment is raised. N�stdlibzEXTERNALLY-MANAGED) r$���r8���r9���r:���� sysconfig�get_pathr����r ����from_config)�markers��� r?���r1���r1���U��sQ������� �!�� �W�W�\�\�)�,�,�X�6�8L� M�F� �7�7�>�>�&�!�� &� 2� 2�6� :�:rA���c�������������������f�����t���������j������������������duxr�t���������j������������������j��������������������������S�)zIs this console interactive?N)rR����stdin�isattyrk���rA���r?����is_console_interactiverg��d��s#�������9�9�D� �7�S�Y�Y�%5�%5�%7�7rA���� blocksizec������������������������t��������j��������������������������}d}t��������|�d�������5�}t��������||��������D�]!��}|t ��������|�������z ��}|j������������������|���������#� �ddd��������||fS�#�1�sw�Y���||fS�xY�w)z5Return (hash, length) for path using hashlib.sha256()r����rb)r����N)�hashlib�sha256�openr����rF����update)r9���rh���h�lengthr�����blocks��� r?���� hash_filerr��i��sn������� ����A� �F� �d�D� �Q� ���3�E��c�%�j� �F� �H�H�U�O��4�� �� �f�9�� � �� �f�9��s����2A"�"A.�iterablec������������������0�����t��������|��������}�t��������|�|��������S�)zb Return paired elements. For example: s -> (s0, s1), (s2, s3), (s4, s5), ... )�iterr���)rs��s��� r?����pairwiserv��u��s��������H�~�H��x��*�*rA����predc������������������N�����t��������|�������\��}}t��������|�|�������t��������|�|�������fS�)z� Use a predicate to partition entries into false entries and true entries, like partition(is_odd, range(10)) --> 0 2 4 6 8 and 1 3 5 7 9 )r���r����filter)rw��rs���t1�t2s��� r?���� partitionr|�����s*���������]�F�B���t�R� �&��r�"2�2�2rA���c���������������������������e�Zd�Z � � �ddedededee���deed������dee���f��fd� Z � �dd ed eeeef������dee���def��fd � Z �dded eeeef������def��fd� Z � �dd ed eeeef������dee���def��fd� Z �dd eeeef������dee���f��fd� Z �dd eeeef������dee���f��fd� Z �dd eeeef������dee���f��fd� Z � �dded eeeef������dedef��fd� Z � �dded eeeef������dedee���f��fd� Z��xZS�)r2���� config_holder� source_dir� build_backend�backend_path�runner).N�python_executablec������������������:������t����������|����|||||��������||�_��������y�rj���)�super�__init__r~��)r����r~��r��r���r���r���r���� __class__s��� �r?���r���z)ConfiguredBuildBackendHookCaller.__init__���s(�������� ���� �|�V�=N� ��+��rA����wheel_directory�config_settings�metadata_directoryr5���c������������������T������|�j�������������������j������������������}t���������|�� ��|||��������S��N)r���r���)r~��r���r����build_wheel�r����r���r���r����csr���s��� �r?���r���z,ConfiguredBuildBackendHookCaller.build_wheel���s5��������� � � /� /���w�"��R�DV��#�� �� rA����sdist_directoryc������������������R������|�j�������������������j������������������}t���������|�� ��||��������S��N)r���)r~��r���r����build_sdist)r����r���r���r���r���s��� �r?���r���z,ConfiguredBuildBackendHookCaller.build_sdist���s+������� �� � � /� /���w�"�?�B�"�G�GrA���c������������������T������|�j�������������������j������������������}t���������|�� ��|||��������S�r���)r~��r���r����build_editabler���s��� �r?���r���z/ConfiguredBuildBackendHookCaller.build_editable���s5��������� � � /� /���w�%��R�DV��&�� �� rA���c������������������P������|�j�������������������j������������������}t���������|�� ��|��������S�r���)r~��r���r����get_requires_for_build_wheel�r����r���r���r���s��� �r?���r���z=ConfiguredBuildBackendHookCaller.get_requires_for_build_wheel����)��������� � � /� /���w�3�B�3�G�GrA���c������������������P������|�j�������������������j������������������}t���������|�� ��|��������S�r���)r~��r���r����get_requires_for_build_sdistr���s��� �r?���r���z=ConfiguredBuildBackendHookCaller.get_requires_for_build_sdist���r���rA���c������������������P������|�j�������������������j������������������}t���������|�� ��|��������S�r���)r~��r���r����get_requires_for_build_editabler���s��� �r?���r���z@ConfiguredBuildBackendHookCaller.get_requires_for_build_editable���s)��������� � � /� /���w�6�r�6�J�JrA����_allow_fallbackc������������������T������|�j�������������������j������������������}t���������|�� ��|||��������S��N)r���r���r���)r~��r���r���� prepare_metadata_for_build_wheel�r����r���r���r���r���r���s��� �r?���r���zAConfiguredBuildBackendHookCaller.prepare_metadata_for_build_wheel���s6��������� � � /� /���w�7�1��+��8�� �� rA���c������������������T������|�j�������������������j������������������}t���������|�� ��|||��������S�r���)r~��r���r����#prepare_metadata_for_build_editabler���s��� �r?���r���zDConfiguredBuildBackendHookCaller.prepare_metadata_for_build_editable���s6��������� � � /� /���w�:�1��+��;�� �� rA���)NNNr��rj���)NT)r����r����r����r���r����r���r���r���r���r���r���r���r���r���r���r���rQ��r���r���� __classcell__)r���s���@r?���r2���r2������s<�������'+�04�+/�+��+���+��� +� ��s�m�+����)�,�-� +��$�C�=�+�"�8<�,0� �� ��"�'�#�s�(�"3�4� ��%�S�M� � � � ��8<�H��H��"�'�#�s�(�"3�4�H�� � H��8<�,0� �� ��"�'�#�s�(�"3�4� ��%�S�M� � � � ��>B�H�'���S��(9�:�H� �#��H��>B�H�'���S��(9�:�H� �#��H��>B�K�'���S��(9�:�K� �#��K��8<� $� �� ��"�'�#�s�(�"3�4� ��� � � � � �8<� $� �� ��"�'�#�s�(�"3�4� ��� � � �#�� �� rA���r2���c�������������������������t����������������ryt��������t��������d�������syt��������j������������������dk(��st��������j������������������dk(��ryt��������j ��������������������������dk7��ryt��������j������������������d��������y)z�Output a warning for sudo users on Unix. In a virtual environment, sudo pip still writes to virtualenv. On Windows, users may run pip as Administrator without issues. This warning only applies to Unix root users outside of virtualenv. N�getuid�win32�cygwinr���ab��Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.)r$����hasattrr8���rR����platformr���r�����warningrk���rA���r?����warn_if_run_as_rootr������sX������� �!���2�x� ����|�|�w��#�,�,�(�":�� �y�y�{�a��� �N�N� )�rA���)FN)z.bak)T)�https)r5���N)r4���)�rK���r����rk���loggingr8���r����rf���rq���rR���r`���urllib.parser���dataclassesr���� functoolsr����ior���� itertoolsr���r���r����pathlibr ����typesr ���r����typingr���r ���r���r���r���r���r���r���r���r���r���r���r���r���r���r����"pip._vendor.packaging.requirementsr����pip._vendor.pyproject_hooksr���rP���r����pip._internal.exceptionsr���r ����pip._internal.locationsr!����pip._internal.utils.compatr"����pip._internal.utils.retryr#����pip._internal.utils.virtualenvr$����__all__� getLoggerr����r����r3���rv����ExcInfor����rE���r����r(���OnExc�OnErr�FILE_CHUNK_SIZEr@���rG���r/���r.���rQ��r%���rb���rc���rd���r&���r'���r����r����r(���r����r����r�����floatr*���r����r+���r����r����r,���r)���r-���r����r����r����r��r ��r��r��r ��r%��r1��r4��r6��r:��r0���r>��rB��rE��rS��rU��r]��r1���rg��rr��rv��r|��r2���r���rk���rA���r?����<module>r������s>������������� ���� ���� ������!������3��3����-����������&�;��>����O��;��.��+��C���"� �� � �8� $���C�L�� ��]�#�]�M�A� B���C��c�M�"���C��x��}�h�s�m�;�<�<�=���,��m�4�c�9�:���,��g�.��3�4����X���X�0�E�#�s�(�O��0��c�3�PS�m�@T��0�&�S���T��� �#�� �����$�DH�,� �,�!�,�2:�5�/�,� �,��%�,� �C�� �D�� � �S�� �T�� ��$�& � �& � �& ���G�]�*�+�& � ��& �� � & �R�s���s����C���c���s���!�S��!�8�C�=��!�S��!� �S�� �T�� �����x��}�������s���s���$�#��$�#��$� 9�3�� 9�3�� 9� %�u��%���%��8�H�S�M�*���u�T�#�Y��S� �5I�/J����S���T���$�!0�� �����u�d�D� �!�� "��� "��� "��� "��3���5��c��?�������3���4���"7�3��7�4��7��c���#���$��� )�H�� )�"#�c��#�C��#�D��I��#� �s�� �(�3�-�� �C�� �"�#��"�s��"���"�(���(��x��}�h�s�m�'C�!D��(��3���;���:(�#��(�#��(�(3� �3� (�#���c�3�h��)?� @�3� �3����3�(*���*���*�$�3��$�5��:��$� *� � *� �3��U�8�C�=�(�3�-�7�8�8�9� *�/�c��/�c��/�2�c��2�c��2� D�k��D�c��D���$��+��+���+�(.�c��.�j��.�.�#��.�*��.� �D�� �T�� �4;�8���8� �C�� �C�� �e�C��H�o�� �+�x��}��+��%��S��/�)B��+� 3� �A�3��9� � 3�)1�!�� 3� �8�A�;����#�$� 3�W �'=��W �trA���