Current File : //usr/lib/python3/dist-packages/pip/_internal/utils/__pycache__/misc.cpython-312.pyc
�

/�gG\��D�ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZ
ddlmZddlmZddlmZmZmZddlmZddlmZmZddlmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z)m*Z*ddl+m,Z,dd	l-m.Z.dd
l/m0Z0m1Z1m2Z2ddl3m4Z4ddl5m6Z6m7Z7dd
l8m9Z9ddl:m;Z;ddl<m=Z=gd�Z>ej~e@�ZAe(d�ZBe&e'eCeCefZDe&eEeEeEfZFe&eGe&e$eGe$eGffZHeeeeCgefZIeeeeDgefZJdeGfd�ZKde&eEdfde&eEeEeEffd�ZLdeGddfd�ZMdeGfd�ZNe0de1d�e2d���		dtdeGdeOd e$eIddfd!��ZPd"eddfd#�ZQd"eddfd$�ZReRd%�d&eded'e)eDeCfd eIddf
d(�ZSdeGdeGfd)�ZTdudeGd*eGdeGfd+�ZUd,eGd-e!eGdeGfd.�ZVd,eGddfd/�ZWd,eGd-e!eGdeGfd0�ZXd,eGdeGfd1�ZYd,eGdeGfd2�ZZd3eGdeEfd4�Z[d5e\deGfd6�Z]d7e!e!ede&e#eGe#eEffd8�Z^deGdeOfd9�Z_ej�fd:ed;eEde eaddffd<�ZbdvdeGd=eOdeGfd>�ZcdeGde&eGeGffd?�Zdd@eGdAeGddfdB�ZedeGdeOfdC�ZfdDedEeddfdF�ZgGdG�dHe�Zhej�dIeGde ehddffdJ��ZjdeehfdK�ZkdeehfdL�ZldMedNede'efdO�ZmdPeGdQe$eEdeGfdR�ZndwdSeGdTeGdeGfdU�ZodSeGde&e$eGe$eEffdV�ZpdSeGdeHfdW�ZqdSeGdeGfdX�ZrdYeGdZeeGge&edffde&eGeHffd[�ZsdSeGdeHfd\�ZtdSeGde&eGfd]�ZudYeGde&eGeGe&e$eGe$eGfffd^�ZvdYeGdeGfd_�ZwdYeGdeGfd`�Zxdae,deGfdb�ZyGdc�dd�ZzdeeGdezfdf�Z{dYeGdezfdg�Z|dheOddfdi�Z}dxdj�Z~deOfdk�ZdydeGdleEde&eeEffdm�Z�dne!ede"e&eeffdo�Z�dpeeBgeOfdne!eBde&e!eBe!eBffdq�Z�Gdr�dse.�Z�y)z�N)�partial)�StringIO)�filterfalse�tee�zip_longest)�Path)�FunctionType�
TracebackType)�Any�BinaryIO�Callable�ContextManager�Dict�	Generator�Iterable�Iterator�List�Optional�TextIO�Tuple�Type�TypeVar�Union�cast)�Requirement)�BuildBackendHookCaller)�retry�stop_after_delay�
wait_fixed)�__version__)�CommandError�ExternallyManagedEnvironment)�get_major_minor_version)�WINDOWS)�running_under_virtualenv)�rmtree�display_path�
backup_dir�ask�splitext�format_size�is_installable_dir�normalize_path�renames�get_prog�captured_stdout�
ensure_dir�remove_auth_from_url�check_externally_managed� ConfiguredBuildBackendHookCaller�T�returnc���tjjtjjt�dd�}tjj|�}dt�d|�dt��d�S)Nz..zpip z from z	 (python �))�os�path�join�dirname�__file__�abspathr r#)�pip_pkg_dirs �:/usr/lib/python3/dist-packages/pip/_internal/utils/misc.py�get_pip_versionrALsX���'�'�,�,�r�w�w���x�8�$��E�K��'�'�/�/�+�.�K�
�+��f�[�M��;R�;T�:U�UV�W�W��py_version_info.c��t|�dkr|dt|�z
dzz
}nt|�dkDr|dd}td|�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).
    �)rN�VersionInfo)�lenr)rCs r@�normalize_version_inforHSsP���?��a���A��O� 4�4��<�<��	�_�	��	!�)�"�1�-���
��/�/rBr:c���	tj|�y#t$rJ}|jtjk7r#|jtj
k7r�Yd}~yYd}~yd}~wwxYw)z os.path.makedirs without EEXIST.N)r9�makedirs�OSError�errno�EEXIST�	ENOTEMPTY)r:�es  r@r1r1fsN���
���D������7�7�e�l�l�"�q�w�w�%�/�/�'A��(B�"���s��	A+�;A&�&A+c���	tjjtjd�}|dvrtj
�d�S|S#tttf$rYywxYw)Nr)z__main__.pyz-cz -m pip�pip)	r9r:�basename�sys�argv�
executable�AttributeError�	TypeError�
IndexError)�progs r@r/r/ps_��
��w�w��������,���(�(��n�n�%�W�-�-��K���I�z�2�
���
�s�AA�	A�A"�!A"TrEg�?)�reraise�stop�wait�dir�
ignore_errors�onexcc��|rt}|�t}tttt
tft�|��}tjdk\rtj||��ytj||��y)N�r_)rE�)�onerror)�_onerror_ignore�_onerror_reraiserrr�OnExc�OnErr�rmtree_errorhandlerrS�version_info�shutilr&)r]r^r_�handlers    r@r&r&~se������}� ���	
�U�5�%�<�
 �"5�6��	�G����7�"��
�
�c��)��
�
�c�7�+rB�_argsc��y�N��rls r@rdrd�s��rBc���rnrorps r@rere�s��	rBra�func�exc_infoc�h�	tj|�j}|tjzs2	tj
||tjz�	||�yt
|t�s|\}}}||||�y#t$rYywxYw#t$rY�;wxYw#t$rY�JwxYw)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)r9�stat�st_moderK�S_IWRITE�chmod�
isinstance�
BaseException)rrr:rsr_rv�_s      r@rhrh�s��� ��'�'�$�-�'�'��
�T�]�]�"�
	��H�H�T�7�T�]�]�2�3�

��T�
���h�
�.�!���8�Q�	�$��h���)������
��
���	��	�s4�B�'B%�B�	B�B�	B"�!B"�%	B1�0B1c�@�tjjtjj|��}|j	tj
�tjjz�r#d|ttj
��dz}|S)zTGives the display value for a given path, making it relative to cwd
    if possible.�.N)r9r:�normcaser>�
startswith�getcwd�seprG�r: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�*�,�-�-���KrB�extc���d}|}tjj||z�r6|dz
}|t|�z}tjj||z�r�6||zS)z\Figure out the name of a directory to back up the given dir to
    (adding .bak, .bak2, etc)�)r9r:�exists�str)r]r��n�	extensions    r@r(r(�sZ��	
�A��I�
�'�'�.�.��y��
)�	�Q����#�a�&�L�	�
�'�'�.�.��y��
)���?�rB�message�optionsc��tjjdd�j�D]
}||vs�|cSt	||�S)N�PIP_EXISTS_ACTION�)r9�environ�get�splitr))r�r��actions   r@�ask_path_existsr��sF���*�*�.�.�!4�b�9�?�?�A����W���M���w�� � rBc�^�tjjd�rtd|����y)z&Raise an error if no input is allowed.�PIP_NO_INPUTz5No input was expected ($PIP_NO_INPUT set); question: N)r9r�r��	Exception�r�s r@�_check_no_inputr��s.��	�z�z�~�~�n�%��C�G�9�M�
�	
�&rBc���	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�rBc�.�t|�t|�S)zAsk for input interactively.)r�r�r�s r@�	ask_inputr��s���G����>�rBc�B�t|�tj|�S)z!Ask for a password interactively.)r��getpassr�s r@�ask_passwordr��s���G���?�?�7�#�#rB�valc�R�|j�}|dvry|dvrytd|����)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�0rzinvalid truth value )r��
ValueError)r�s r@�	strtoboolr�s:���)�)�+�C�
�2�2��	�5�	5���/��w�7�8�8rB�bytesc��|dkDr|dzdzd�d�S|dkDrt|dz��d�S|dkDr	|dzd�d�St|��d�S)	Ni@Bg@�@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�$�$rB�rowsc
�\�|D�cgc]}ttt|����}}t|ddi�D�cgc]}t	tt
|����}}|D�cgc]:}dj
ttj||��j���<}}||fScc}wcc}wcc}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�maxrGr;�ljust�rstrip)r��row�col�sizes�tables     r@�tabulater�s���-1�1�S�E�#�c�3�-� �1�D�1�+6��+K��+K�L�C�S��S�#��
�L�E�L�FJ�K�s�S�X�X�c�#�)�)�S�%�0�
1�
8�
8�
:�K�E�K��%�<���2��L��Ks� B� B$�?B)c�<�tjj|�sytjjtjj	|d��rytjjtjj	|d��ryy)atIs 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)r9r:�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��rB�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�>s(������	�	�$�������	�s��resolve_symlinksc��tjj|�}|r tjj|�}ntjj	|�}tjj|�S)zN
    Convert a path to its canonical, case-normalized, absolute version.

    )r9r:�
expanduser�realpathr>r~)r:r�s  r@r-r-IsV��
�7�7���d�#�D���w�w����%���w�w���t�$��
�7�7���D�!�!rBc��tj|�\}}|j�jd�r
|dd|z}|dd}||fS)z,Like os.path.splitext, but take off .tar tooz.tar���N)�	posixpathr*r��endswith)r:�baser�s   r@r*r*VsN���"�"�4�(�I�D�#��z�z�|���V�$��2�3�i�#�o���C�R�y����9�rB�old�newc�~�tjj|�\}}|r6|r4tjj|�stj|�tj||�tjj|�\}}|r|r	tj|�yyy#t$rYywxYw)z7Like os.renames(), but handles renaming across devices.N)	r9r:r�r�rJrj�move�
removedirsrK)r�r��head�tails    r@r.r._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|jttj��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%rr-rS�prefixr�s r@�is_localr�ps%��$�%���?�?�>�#�*�*�5�6�6rB�msg�argsc�0�tj|g|���yrn)�logger�info)r�r�s  r@�write_outputr�~s��
�K�K���d�rBc�H�eZdZUeed<ededdfd��Zedefd��Z	y)�
StreamWrapper�orig_streamr6c�"�|�}||_|Srn)r�)�clsr��rets   r@�from_streamzStreamWrapper.from_stream�s���e��%����
rBc�.�|jjSrn)r��encoding��selfs r@r�zStreamWrapper.encoding�s�����(�(�(rBN)
�__name__�
__module__�__qualname__r�__annotations__�classmethodr��propertyr�r�rorBr@r�r��sC������f�������)�#�)��)rBr��stream_namec#��K�tt|�}tt|tj	|��	tt|���tt||�y#tt||�wxYw�w)z�Return a context manager used by captured_stdout/stdin/stderr
    that temporarily replaces the sys stream *stream_name* with a StringIO.

    Taken from Lib/support/__init__.py in the CPython repo.
    N)�getattrrS�setattrr�r�)r��orig_stdouts  r@�captured_outputr��sU�����#�{�+�K��C��m�7�7��D�E�/��c�;�'�'���[�+�.����[�+�.�s�5A2�A�
A2�A/�/A2c��td�S)z�Capture the output of sys.stdout:

       with captured_stdout() as stdout:
           print('hello')
       self.assertEqual(stdout.getvalue(), 'hello
')

    Taken from Lib/support/__init__.py in the CPython repo.
    �stdout�r�rorBr@r0r0�s���8�$�$rBc��td�S)z 
    See captured_stdout().
    �stderrrrorBr@�captured_stderrr�s���8�$�$rB�
sequential�namedc
���tt|tt|���fi|��}|j	�D��cic]\}}||��
}}}||d<tdd|�Scc}}w)N�reverse_mapping�Enumro)�dict�zip�rangerG�items�type)rr�enums�key�value�reverses      r@�enumr�sa����Z��s�:��!7�8�B�E�B�E�,1�K�K�M�:�j�c�5�u�c�z�:�G�:�&�E�
�����E�"�"��;s�
A�host�portc�,�|�|Sd|vrd|�d�}|�d|��S)z.
    Build a netloc from a host-port pair
    �:�[�]ro)rrs  r@�build_netlocr�s3���|���
�d�{��4�&��{���V�1�T�F��rB�netloc�schemec�T�|jd�dk\rd|vr
d|vrd|�d�}|�d|��S)z)
    Build a full URL from a netloc.
    r��@rrz://)�count)rrs  r@�build_url_from_netlocr �sA���|�|�C��A��#�V�"3��6�8I��V�H�A����X�S���!�!rBc��t|�}tjj|�}|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�'�'rBc��d|vr|dfS|jdd�\}}d}d|vr|jdd�\}}n|d}}tjj	|�}|�tjj	|�}|||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_netlocr0�s����&���|�#�#�
�=�=��a�(�L�D�&��B�
�d�{��:�:�c�1�%���b���b���<�<����%�D�	�~�
�\�\�
!�
!�"�
%���D�"�:��rBc��t|�\}\}}|�|S|�d}d}n!tjj|�}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)r0r"r#�quote)rr/�passwords   r@�
redact_netlocr5�s`�� 6�f�=��F��T�8��|��
��������|�|�!�!�$�'�����V�H�:�Q�v�h�'�'rBr&�transform_netlocc�"�tjj|�}||j�}|j|d|j
|j|jf}tjj|�}|td|�fS)aRTransform 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#�urlsplitrrr:�query�fragment�
urlunsplitr)r&r6�purl�netloc_tuple�
url_pieces�surls      r@�_transform_urlrAsp���<�<� � ��%�D�#�D�K�K�0�L��+�+�|�A���	�	�4�:�:�t�}�}�U�J��<�<�"�"�:�.�D���m�\�2�2�2rBc��t|�Srn)r0�rs r@�_get_netlocrD s
��!�&�)�)rBc��t|�fSrn)r5rCs r@�_redact_netlocrF$s���&�!�#�#rBc�8�t|t�\}\}}|||fS)z�
    Parse a url into separate netloc, auth, and url with no auth.

    Returns: (url_without_auth, netloc, (username, password))
    �rArD)r&�url_without_authrr-s    r@�split_auth_netloc_from_urlrJ(s'��(6�c�;�'G�$��n�v�t��V�T�)�)rBc�(�t|t�dS)z7Return a copy of url with 'username:password@' removed.rrH�r&s r@r2r24s���#�{�+�A�.�.rBc�(�t|t�dS)z.Replace the password in a given url with ****.r)rArFrLs r@�redact_auth_from_urlrN;s���#�~�.�q�1�1rB�reqc��|jst|�St|�j|jt|j��S)z:Replace the password in a given requirement url with ****.)r&r��replacerN)rOs r@�redact_auth_from_requirementrR@s7���7�7��3�x���s�8���C�G�G�%9�#�'�'�%B�C�CrBc�H�eZdZdededdfd�Zdefd�Zdefd�Zdedefd	�Z	y)
�
HiddenText�secret�redactedr6Nc� �||_||_yrn)rUrV)r�rUrVs   r@�__init__zHiddenText.__init__Hs����� ��
rBc� �dt|��d�S)Nz<HiddenText �>)r�r�s r@�__repr__zHiddenText.__repr__Ls���c�$�i�]�!�,�,rBc��|jSrn�rVr�s r@�__str__zHiddenText.__str__Os���}�}�rB�otherc�d�t|�t|�k7ry|j|jk(S)NF)r
rU)r�r_s  r@�__eq__zHiddenText.__eq__Ss*����:��e��$���{�{�e�l�l�*�*rB)
r�r�r�r�rXr[r^r�boolrarorBr@rTrTGsG��!�s�!�c�!�d�!�-�#�-����+�C�+�D�+rBrTrc��t|d��S)Nr2r])rT)rs r@�
hide_valuerd\s���e�f�-�-rBc�2�t|�}t||��S)Nr])rNrT)r&rVs  r@�hide_urlrf`s��#�C�(�H��c�H�-�-rB�
modifying_pipc���ddtjj��dtjj�dtjj��g}|xr:txr2t
jjtjd�|v}|rPtjddgtjddz}tdjdj|����y)	z�Protection of pip.exe from modification on Windows

    On Windows, any operation modifying pip should be run as:
        python -m pip ...
    rQr}rz-mr�Nz3To modify pip, please run the following command:
{}r�)
rSri�major�minorr$r9r:rRrTrUr!r�r;)rg�	pip_names�should_show_use_python_msg�new_commands    r@�(protect_pip_from_modification_on_windowsrnes���	�

�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�����%�
�
�	
�"rBc���t�rytjjt	j
d�d�}tjj
|�sytj|��)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%r9r:r;�	sysconfig�get_pathr�r"�from_config)�markers r@r3r3sQ�� �!��
�W�W�\�\�)�,�,�X�6�8L�
M�F�
�7�7�>�>�&�!��
&�
2�
2�6�
:�:rBc�f�tjduxrtjj�S)zIs this console interactive?N)rS�stdin�isattyrorBr@�is_console_interactiverx�s#���9�9�D� �7�S�Y�Y�%5�%5�%7�7rB�	blocksizec���tj�}d}t|d�5}t||��D]!}|t	|�z
}|j|��#	ddd�||fS#1swY||fSxYw)z5Return (hash, length) for path using hashlib.sha256()r�rb)r�N)�hashlib�sha256�openr�rG�update)r:ry�h�lengthr��blocks      r@�	hash_filer��sx��	����A�
�F�	
�d�D�	��Q� ���3�	�E��c�%�j� �F�
�H�H�U�O�	��
�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)r�s r@�pairwiser��s���H�~�H��x��*�*rB�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
    )rr�filter)r�r��t1�t2s    r@�	partitionr��s*����]�F�B���t�R� �&��r�"2�2�2rBc�b��eZdZ			ddedededeedeeddeef�fd�
Z		dd	ed
eeee	ee
effdeedef�fd
�
Z	dded
eeee	ee
effdef�fd�
Z		dd	ed
eeee	ee
effdeedef�fd�
Z
	dd
eeee	ee
effde
ef�fd�
Z	dd
eeee	ee
effde
ef�fd�
Z	dd
eeee	ee
effde
ef�fd�
Z		dded
eeee	ee
effdedef�fd�
Z		dded
eeee	ee
effdedef�fd�
Z�xZS)r4�
config_holder�
source_dir�
build_backend�backend_path�runner).N�python_executablec�:��t�|�|||||�||_yrn)�superrXr�)r�r�r�r�r�r�r��	__class__s       �r@rXz)ConfiguredBuildBackendHookCaller.__init__�s(���	����
�|�V�=N�	
�+��rB�wheel_directory�config_settings�metadata_directoryr6c�T��|jj}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�#�
�	
rB�sdist_directoryc�R��|jj}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�GrBc�T��|jj}t�|�
|||��Sr�)r�r�r��build_editabler�s     �r@r�z/ConfiguredBuildBackendHookCaller.build_editable�s5����
�
�
/�
/���w�%��R�DV�&�
�	
rBc�P��|jj}t�|�
|��Sr�)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�GrBc�P��|jj}t�|�
|��Sr�)r�r�r��get_requires_for_build_sdistr�s   �r@r�z=ConfiguredBuildBackendHookCaller.get_requires_for_build_sdist�r�rBc�P��|jj}t�|�
|��Sr�)r�r�r��get_requires_for_build_editabler�s   �r@r�z@ConfiguredBuildBackendHookCaller.get_requires_for_build_editable�s)����
�
�
/�
/���w�6�r�6�J�JrB�_allow_fallbackc�T��|jj}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�
�	
rBc�T��|jj}t�|�
|||��Sr�)r�r�r��#prepare_metadata_for_build_editabler�s     �r@r�zDConfiguredBuildBackendHookCaller.prepare_metadata_for_build_editables6����
�
�
/�
/���w�:�1��+�;�
�	
rB)NNNr*rn)NT)r�r�r�rr�rr
rXrrrr�r�r�r�r�r�rbr�r��
__classcell__)r�s@r@r4r4�s����'+�04�+/�+��+��+��	+�
�s�m�+���)�,�-�
+�$�C�=�+�"GK�,0�		
��	
�"�$�s�E�#�t�C�y�.�,A�'A�"B�C�	
�%�S�M�		
�


�	
�GK�H��H�"�$�s�E�#�t�C�y�.�,A�'A�"B�C�H�

�	H�GK�,0�		
��	
�"�$�s�E�#�t�C�y�.�,A�'A�"B�C�	
�%�S�M�		
�


�	
�MQ�H�'��S�%��T�#�Y��2G�-G�(H�I�H�	
�c��H�MQ�H�'��S�%��T�#�Y��2G�-G�(H�I�H�	
�c��H�MQ�K�'��S�%��T�#�Y��2G�-G�(H�I�K�	
�c��K�GK� $�	
��
�"�$�s�E�#�t�C�y�.�,A�'A�"B�C�
��	
�


�
� GK� $�	
��
�"�$�s�E�#�t�C�y�.�,A�'A�"B�C�
��	
�


�
�
rBr4)FN)z.bak)T)�https)r6N)i)��
contextlibrLr�r|�io�loggingr9r�rjrurSrq�urllib.parser"�	functoolsrr�	itertoolsrrr�pathlibr�typesr	r
�typingrrr
rrrrrrrrrrrrr�"pip._vendor.packaging.requirementsr�pip._vendor.pyproject_hooksr�pip._vendor.tenacityrrrrQr �pip._internal.exceptionsr!r"�pip._internal.locationsr#�pip._internal.utils.compatr$�pip._internal.utils.virtualenvr%�__all__�	getLoggerr�r�r5rz�ExcInfor�rFr�r8rfrgrArHr1r/rbr&rdrerhr'r(r�r�r)r�r�r��floatr+r�r,�DEFAULT_BUFFER_SIZEr�r�r-r*r.r�r�r��contextmanagerr�r0rrrr r(r0r5rArDrFrJr2rNrRrTrdrfrnr3rxr�r�r�r4rorBr@�<module>r�s�������	��	��
��
�����3�3��-������&;�>�D�D��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��	�#�	��t�*�1�-�J�s�O�D� �!�,�	�,��,��E�?�,�
�	,�E�,�,	�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��$!#� 6� 6��
�����u�d�D� �!��
"��
"��
"��
"��3��5��c��?�����3��4��"7�3�7�4�7��c��#��$��
)�H�
)� ���/��/��=�$��3L�)M�/��/�	%��
�6�	%�%��
�6�%�#�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��q�k�3��8�A�;����#�$�3�W
�'=�W
rB
¿Qué es la limpieza dental de perros? - Clínica veterinaria


Es la eliminación del sarro y la placa adherida a la superficie de los dientes mediante un equipo de ultrasonidos que garantiza la integridad de las piezas dentales a la vez que elimina en profundidad cualquier resto de suciedad.

A continuación se procede al pulido de los dientes mediante una fresa especial que elimina la placa bacteriana y devuelve a los dientes el aspecto sano que deben tener.

Una vez terminado todo el proceso, se mantiene al perro en observación hasta que se despierta de la anestesia, bajo la atenta supervisión de un veterinario.

¿Cada cuánto tiempo tengo que hacerle una limpieza dental a mi perro?

A partir de cierta edad, los perros pueden necesitar una limpieza dental anual o bianual. Depende de cada caso. En líneas generales, puede decirse que los perros de razas pequeñas suelen acumular más sarro y suelen necesitar una atención mayor en cuanto a higiene dental.


Riesgos de una mala higiene


Los riesgos más evidentes de una mala higiene dental en los perros son los siguientes:

  • Cuando la acumulación de sarro no se trata, se puede producir una inflamación y retracción de las encías que puede descalzar el diente y provocar caídas.
  • Mal aliento (halitosis).
  • Sarro perros
  • Puede ir a más
  • Las bacterias de la placa pueden trasladarse a través del torrente circulatorio a órganos vitales como el corazón ocasionando problemas de endocarditis en las válvulas. Las bacterias pueden incluso acantonarse en huesos (La osteomielitis es la infección ósea, tanto cortical como medular) provocando mucho dolor y una artritis séptica).

¿Cómo se forma el sarro?

El sarro es la calcificación de la placa dental. Los restos de alimentos, junto con las bacterias presentes en la boca, van a formar la placa bacteriana o placa dental. Si la placa no se retira, al mezclarse con la saliva y los minerales presentes en ella, reaccionará formando una costra. La placa se calcifica y se forma el sarro.

El sarro, cuando se forma, es de color blanquecino pero a medida que pasa el tiempo se va poniendo amarillo y luego marrón.

Síntomas de una pobre higiene dental
La señal más obvia de una mala salud dental canina es el mal aliento.

Sin embargo, a veces no es tan fácil de detectar
Y hay perros que no se dejan abrir la boca por su dueño. Por ejemplo…

Recientemente nos trajeron a la clínica a un perro que parpadeaba de un ojo y decía su dueño que le picaba un lado de la cara. Tenía molestias y dificultad para comer, lo que había llevado a sus dueños a comprarle comida blanda (que suele ser un poco más cara y llevar más contenido en grasa) durante medio año. Después de una exploración oftalmológica, nos dimos cuenta de que el ojo tenía una úlcera en la córnea probablemente de rascarse . Además, el canto lateral del ojo estaba inflamado. Tenía lo que en humanos llamamos flemón pero como era un perro de pelo largo, no se le notaba a simple vista. Al abrirle la boca nos llamó la atención el ver una muela llena de sarro. Le realizamos una radiografía y encontramos una fístula que llegaba hasta la parte inferior del ojo.

Le tuvimos que extraer la muela. Tras esto, el ojo se curó completamente con unos colirios y una lentilla protectora de úlcera. Afortunadamente, la úlcera no profundizó y no perforó el ojo. Ahora el perro come perfectamente a pesar de haber perdido una muela.

¿Cómo mantener la higiene dental de tu perro?
Hay varias maneras de prevenir problemas derivados de la salud dental de tu perro.

Limpiezas de dientes en casa
Es recomendable limpiar los dientes de tu perro semanal o diariamente si se puede. Existe una gran variedad de productos que se pueden utilizar:

Pastas de dientes.
Cepillos de dientes o dedales para el dedo índice, que hacen más fácil la limpieza.
Colutorios para echar en agua de bebida o directamente sobre el diente en líquido o en spray.

En la Clínica Tus Veterinarios enseñamos a nuestros clientes a tomar el hábito de limpiar los dientes de sus perros desde que son cachorros. Esto responde a nuestro compromiso con la prevención de enfermedades caninas.

Hoy en día tenemos muchos clientes que limpian los dientes todos los días a su mascota, y como resultado, se ahorran el dinero de hacer limpiezas dentales profesionales y consiguen una mejor salud de su perro.


Limpiezas dentales profesionales de perros y gatos

Recomendamos hacer una limpieza dental especializada anualmente. La realizamos con un aparato de ultrasonidos que utiliza agua para quitar el sarro. Después, procedemos a pulir los dientes con un cepillo de alta velocidad y una pasta especial. Hacemos esto para proteger el esmalte.

La frecuencia de limpiezas dentales necesaria varía mucho entre razas. En general, las razas grandes tienen buena calidad de esmalte, por lo que no necesitan hacerlo tan a menudo e incluso pueden pasarse la vida sin requerir una limpieza. Sin embargo, razas pequeñas como el Yorkshire o el Maltés, deben hacérselas todos los años desde cachorros si se quiere conservar sus piezas dentales.

Otro factor fundamental es la calidad del pienso. Algunas marcas han diseñado croquetas que limpian la superficie del diente y de la muela al masticarse.

Ultrasonido para perros

¿Se necesita anestesia para las limpiezas dentales de perros y gatos?

La limpieza dental en perros no es una técnica que pueda practicarse sin anestesia general , aunque hay veces que los propietarios no quieren anestesiar y si tiene poco sarro y el perro es muy bueno se puede intentar…… , pero no se va a poder pulir ni acceder a todas la zona de la boca …. Además los limpiadores dentales van a irrigar agua y hay riesgo de aspiración a vías respiratorias si no se realiza una anestesia correcta con intubación traqueal . En resumen , sin anestesia no se va hacer una correcta limpieza dental.

Tampoco sirve la sedación ya que necesitamos que el animal esté totalmente quieto, y el veterinario tenga un acceso completo a todas sus piezas dentales y encías.

Alimentos para la limpieza dental

Hay que tener cierto cuidado a la hora de comprar determinados alimentos porque no todos son saludables. Algunos tienen demasiado contenido graso, que en exceso puede causar problemas cardiovasculares y obesidad.

Los mejores alimentos para los dientes son aquellos que están elaborados por empresas farmacéuticas y llevan componentes químicos con tratamientos específicos para el diente del perro. Esto implica no solo limpieza a través de la acción mecánica de morder sino también un tratamiento antibacteriano para prevenir el sarro.

Conclusión

Si eres como la mayoría de dueños, por falta de tiempo , es probable que no estés prestando la suficiente atención a la limpieza dental de tu perro. Por eso te animamos a que comiences a limpiar los dientes de tu perro y consideres atender a su higiene bucal con frecuencia.

Estas simples medidas pueden conllevar a que tu perro tenga una vida más larga y mucho más saludable.

Si te resulta imposible introducir un cepillo de dientes a tu perro en la boca, pásate con él por clínica Tus Veterinarios y te explicamos cómo hacerlo.

Necesitas hacer una limpieza dental profesional a tu mascota?
Llámanos al 622575274 o contacta con nosotros

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

¡Hola!