Current File : //usr/lib/python3/dist-packages/setuptools/_distutils/__pycache__/cmd.cpython-312.pyc
�


_�d�E��p�dZddlZddlZddlZddlZddlmZddlmZm	Z	m
Z
mZmZddl
mZGd�d�Zy)	ztdistutils.cmd

Provides the Command class, the base class for the command classes
in the distutils.command package.
�N�)�DistutilsOptionError)�util�dir_util�	file_util�archive_util�dep_util��logc�
�eZdZdZgZd�Zd�Zd�Zd�Zd�Z	d!d�Z
d	�Zejfd
�Zd�Zd"d�Zd"d
�Zd�Zd"d�Zd�Zd�Zd�Zd�Zd#d�Zd$d�Zd�Zd�Zd�Zd%d�Zd&d�Z	d'd�Z				d(d�Z d#d�Z!d)d�Z"	d*d�Z#	d+d �Z$y),�Commanda}Abstract base class for defining command classes, the "worker bees"
    of the Distutils.  A useful analogy for command classes is to think of
    them as subroutines with local variables called "options".  The options
    are "declared" in 'initialize_options()' and "defined" (given their
    final values, aka "finalized") in 'finalize_options()', both of which
    must be defined by every command class.  The distinction between the
    two is necessary because option values might come from the outside
    world (command line, config file, ...), and any options dependent on
    other options must be computed *after* these outside influences have
    been processed -- hence 'finalize_options()'.  The "body" of the
    subroutine, where it does all its work based on the values of its
    options, is the 'run()' method, which must also be implemented by every
    command class.
    c��ddlm}t||�std��|jt
urt
d��||_|j�d|_	|j|_
d|_d|_d|_
y)z�Create and initialize a new Command object.  Most importantly,
        invokes the 'initialize_options()' method, which is the real
        initializer and depends on the actual command being
        instantiated.
        r)�Distributionz$dist must be a Distribution instancezCommand is an abstract classN)�distutils.distr�
isinstance�	TypeError�	__class__r
�RuntimeError�distribution�initialize_options�_dry_run�verbose�force�help�	finalized)�self�distrs   �;/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py�__init__zCommand.__init__3sz��	0��$��-��B�C�C��>�>�W�$��=�>�>� ������!���
��|�|�����
���	����c�t�|dk(r)t|d|z�}|�t|j|�S|St|��)N�dry_run�_)�getattrr�AttributeError)r�attr�myvals   r�__getattr__zCommand.__getattr__csB���9���D�#��*�-�E��}��t�0�0�$�7�7��� ��&�&r c�J�|js|j�d|_y�Nr)r�finalize_options�rs r�ensure_finalizedzCommand.ensure_finalizedms���~�~��!�!�#���r c�2�td|jz��)a�Set default values for all the options that this command
        supports.  Note that these defaults may be overridden by other
        commands, by the setup script, by config files, or by the
        command-line.  Thus, this is not the place to code dependencies
        between options; generally, 'initialize_options()' implementations
        are just a bunch of "self.foo = None" assignments.

        This method must be implemented by all command classes.
        �,abstract method -- subclass %s must override�rrr,s rrzCommand.initialize_options����:�T�^�^�K�
�	
r c�2�td|jz��)aSet final values for all the options that this command supports.
        This is always called as late as possible, ie.  after any option
        assignments from the command-line or from other commands have been
        done.  Thus, this is the place to code option dependencies: if
        'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as
        long as 'foo' still has the same value it was assigned in
        'initialize_options()'.

        This method must be implemented by all command classes.
        r/r0r,s rr+zCommand.finalize_options�s���:�T�^�^�K�
�	
r Nc�r�ddlm}|�d|j�z}|j||ztj
��|dz}|jD]d\}}}|j|�}|ddk(r|dd}t||�}|j|dj||�ztj
���fy)	Nr)�
longopt_xlatezcommand options for '%s':)�levelz  ����=z{} = {})
�distutils.fancy_getoptr4�get_command_name�announce�logging�INFO�user_options�	translater$�format)r�header�indentr4�optionr#�values       r�dump_optionszCommand.dump_options�s���8��>�0�4�3H�3H�3J�J�F��
�
�f�v�o�W�\�\�
�:��$��� �-�-�	X�L�F�A�q��%�%�m�4�F��b�z�S� �������D�&�)�E��M�M�&�9�#3�#3�F�E�#B�B�'�,�,�M�W�	Xr c�2�td|jz��)a�A command's raison d'etre: carry out the action it exists to
        perform, controlled by the options initialized in
        'initialize_options()', customized by other commands, the setup
        script, the command-line, and config files, and finalized in
        'finalize_options()'.  All terminal output and filesystem
        interaction should be done by 'run()'.

        This method must be implemented by all command classes.
        r/r0r,s r�runzCommand.run�r1r c�0�tj||�y�Nr
)r�msgr5s   rr:zCommand.announce�s������s�r c�h�ddlm}|r*t|�tjj�yy)z~Print 'msg' to stdout if the global DEBUG (taken from the
        DISTUTILS_DEBUG environment variable) flag is true.
        r)�DEBUGN)�distutils.debugrK�print�sys�stdout�flush)rrIrKs   r�debug_printzCommand.debug_print�s&��	*���#�J��J�J����r c��t||�}|�t|||�|St|t�st	dj|||���|S)Nz'{}' must be a {} (got `{}`))r$�setattrr�strrr?)rrB�what�default�vals     r�_ensure_stringlikezCommand._ensure_stringlike�sT���d�F�#���;��D�&�'�*��N��C��%�&�.�5�5�f�d�C�H��
��
r c�*�|j|d|�y)zWEnsure that 'option' is a string; if not defined, set it to
        'default'.
        �stringN)rX)rrBrVs   r�
ensure_stringzCommand.ensure_string�s��	
�����'�:r c�
�t||�}|�yt|t�r"t||t	j
d|��yt|t�rtd�|D��}nd}|stdj||���y)z�Ensure that 'option' is a list of strings.  If 'option' is
        currently a string, we split it either on /,\s*/ or /\s+/, so
        "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
        ["foo", "bar", "baz"].
        Nz,\s*|\s+c3�<K�|]}t|t����y�wrH)rrT)�.0�vs  r�	<genexpr>z-Command.ensure_string_list.<locals>.<genexpr>�s����9���A�s�+�9�s�Fz)'{}' must be a list of strings (got {!r}))
r$rrTrS�re�split�list�allrr?)rrBrW�oks    r�ensure_string_listzCommand.ensure_string_list�s}���d�F�#���;��
��S�
!��D�&�"�(�(�;��"<�=��#�t�$��9�S�9�9�����*�?�F�F�v�s�S���r c�f�|j|||�}|�||�std|z||fz��yy)Nzerror in '%s' option: )rXr)rrB�testerrU�	error_fmtrVrWs       r�_ensure_tested_stringzCommand._ensure_tested_string�sF���%�%�f�d�G�<���?�6�#�;�&�)�I�5�&�#��F��
�$/�?r c�\�|j|tjjdd�y)z5Ensure that 'option' is the name of an existing file.�filenamez$'%s' does not exist or is not a fileN)rj�os�path�isfile�rrBs  r�ensure_filenamezCommand.ensure_filename�s"���"�"��B�G�G�N�N�J�0V�	
r c�\�|j|tjjdd�y)Nzdirectory namez)'%s' does not exist or is not a directory)rjrmrn�isdirrps  r�ensure_dirnamezCommand.ensure_dirnames$���"�"���G�G�M�M��7�		
r c�^�t|d�r|jS|jjS)N�command_name)�hasattrrvr�__name__r,s rr9zCommand.get_command_names(���4��(��$�$�$��>�>�*�*�*r c	��|jj|�}|j�|D])\}}t||���t	||t||���+y)a>Set the values of any "undefined" options from corresponding
        option values in some other command object.  "Undefined" here means
        "is None", which is the convention used to indicate that an option
        has not been changed between 'initialize_options()' and
        'finalize_options()'.  Usually called from 'finalize_options()' for
        options that depend on some other command rather than another
        option of the same command.  'src_cmd' is the other command from
        which option values will be taken (a command object will be created
        for it if necessary); the remaining arguments are
        '(src_option,dst_option)' tuples which mean "take the value of
        'src_option' in the 'src_cmd' command object, and copy it to
        'dst_option' in the current command object".
        N)r�get_command_objr-r$rS)r�src_cmd�option_pairs�src_cmd_obj�
src_option�
dst_options      r�set_undefined_optionszCommand.set_undefined_optionss\���'�'�7�7��@���$�$�&�&2�	L�"�J�
��t�Z�(�0���j�'�+�z�*J�K�	Lr c�^�|jj||�}|j�|S)z�Wrapper around Distribution's 'get_command_obj()' method: find
        (create if necessary and 'create' is true) the command object for
        'command', call its 'ensure_finalized()' method, and return the
        finalized command object.
        )rrzr-)r�command�create�cmd_objs    r�get_finalized_commandzCommand.get_finalized_command*s-���#�#�3�3�G�V�D��� � �"��r c�:�|jj||�SrH)r�reinitialize_command)rr��reinit_subcommandss   rr�zCommand.reinitialize_command6s��� � �5�5�g�?Q�R�Rr c�:�|jj|�y)z�Run some other command: uses the 'run_command()' method of
        Distribution, which creates and finalizes the command object if
        necessary and then invokes its 'run()' method.
        N)r�run_command)rr�s  rr�zCommand.run_command9s��
	
���%�%�g�.r c�j�g}|jD]!\}}|�	||�s�|j|��#|S)akDetermine the sub-commands that are relevant in the current
        distribution (ie., that need to be run).  This is based on the
        'sub_commands' class attribute: each tuple in that list may include
        a method that we call to determine if the subcommand needs to be
        run for the current distribution.  Return a list of command names.
        )�sub_commands�append)r�commands�cmd_name�methods    r�get_sub_commandszCommand.get_sub_commands@sA���� $� 1� 1�	*��H�f��~��������)�	*��r c�N�tjd|j�|�y)Nzwarning: %s: %s
)r�warningr9)rrIs  r�warnzCommand.warnOs�����'��)>�)>�)@�#�Fr c�J�tj||||j��y�N�r")r�executer")r�func�argsrIr5s     rr�zCommand.executeRs�����T�4��d�l�l�;r c�H�tj|||j��yr�)r�mkpathr")r�name�modes   rr�zCommand.mkpathUs������d�D�L�L�9r c	�d�tj|||||j||j��S)z�Copy a file respecting verbose, dry-run and force flags.  (The
        former two default to whatever is in the Distribution object, and
        the latter defaults to false for commands that don't define it.)r�)r�	copy_filerr")r�infile�outfile�
preserve_mode�preserve_times�linkr5s       rr�zCommand.copy_fileXs6���"�"������
�
�N���L�L�
�	
r c	�d�tj||||||j|j��S)z\Copy an entire directory tree respecting verbose, dry-run,
        and force flags.
        r�)r�	copy_treerr")rr�r�r�r��preserve_symlinksr5s       rr�zCommand.copy_treehs6���!�!�������
�
�N��L�L�
�	
r c�F�tj|||j��S)z$Move a file respecting dry-run flag.r�)r�	move_filer")r�src�dstr5s    rr�zCommand.move_file~s���"�"�3��T�\�\�B�Br c�:�ddlm}||||j��y)z2Spawn an external command respecting dry-run flag.r)�spawnr�N)�distutils.spawnr�r")r�cmd�search_pathr5r�s     rr�z
Command.spawn�s��)�
�c�;����5r c	�N�tj|||||j||��S)N)r"�owner�group)r�make_archiver")r�	base_namer?�root_dir�base_dirr�r�s       rr�zCommand.make_archive�s0���(�(������L�L���
�	
r c�Z�|�d|z}t|t�r|f}n!t|ttf�st	d��|�!dj|dj
|��}|jstj||�r|j||||�ytj|�y)a�Special case of 'execute()' for operations that process one or
        more input files and generate one output file.  Works just like
        'execute()', except the operation is skipped and a different
        message printed if 'outfile' already exists and is newer than all
        files listed in 'infiles'.  If the command defined 'self.force',
        and it is true, then the command is unconditionally run -- does no
        timestamp checks.
        Nzskipping %s (inputs unchanged)z9'infiles' must be a string, or a list or tuple of stringszgenerating {} from {}z, )
rrTrc�tuplerr?�joinrr	�newer_groupr�r�debug)r�infilesr�r�r��exec_msg�skip_msgr5s        r�	make_filezCommand.make_file�s�����7�'�A�H��g�s�#��j�G��G�d�E�]�3��W�X�X���.�5�5�g�t�y�y��?Q�R�H�
�:�:��-�-�g�w�?��L�L��t�X�u�5�
�I�I�h�r )N�rH)r)rr*)i�)rrNr)rrrr)rr)NNNN)NNr)%rx�
__module__�__qualname__�__doc__r�rr(r-rr+rDrFr;rKr:rQrXr[rfrjrqrtr9r�r�r�r�r�r�r�r�r�r�r�r�r�r��r rr
r
s���
�:�L�-�`'��$
�

�X�
�#*�-�-���.	�;��*�
�
�+�L�*�S�/��G�<�:�TU�
�(����
�,C�6�RV�
�QR� r r
)r�rNrmrar;�errorsrr�rrrrr	�_logrr
r�r r�<module>r�s0����	�	��(�?�?��b �b r 
¿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!