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


_�d�����dZddlZddlZddlZddlZddlZddlZddlmZ	ddl	Z	ddlmZm
Z
mZmZddlmZmZddlmZmZmZddlmZdd	lmZej6d
�Zd�ZGd�d
�ZGd�d�Zd�Z y#e
$rdZ	Y�`wxYw)z}distutils.dist

Provides the Distribution class, which represents the module distribution
being built/installed/distributed.
�N)�message_from_file�)�DistutilsOptionError�DistutilsModuleError�DistutilsArgError�DistutilsClassError)�FancyGetopt�translate_longopt)�
check_environ�	strtobool�
rfc822_escape��log)�DEBUGz^[a-zA-Z]([a-zA-Z0-9_]*)$c���t|t�r	|St|t�sQt|�j}d}|j
dit
���}tj|�t|�}|S)Nz>Warning: '{fieldname}' should be a list, got type '{typename}'�)	�
isinstance�str�list�type�__name__�format�localsr�warning)�value�	fieldname�typename�msgs    �</usr/lib/python3/dist-packages/setuptools/_distutils/dist.py�_ensure_listr &sg���%���	
��L���t�
$���;�'�'��N���c�j�j�$�6�8�$�����C���U����L�c	�`�eZdZdZgd�ZdZgd�ZeD���cgc]}t|d���c}}}ZddiZ	d)d	�Z
d
�Zd*d�Zd�Z
d
�Zd)d�Zd�Zd�Zd�Zd�Zddgfd�Zd�Zd�Zd�Zd�Zd�Zd�Zd+d�Zd)d�Zd,d�Zej>fd�Z d�Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'd&�Z(d'�Z)d(�Z*ycc}}}w)-�Distributiona�The core of the Distutils.  Most of the work hiding behind 'setup'
    is really done within a Distribution instance, which farms the work out
    to the Distutils commands specified on the command line.

    Setup scripts will almost never instantiate Distribution directly,
    unless the 'setup()' function is totally inadequate to their needs.
    However, it is conceivable that a setup script might wish to subclass
    Distribution for some specialized purpose, and then pass the subclass
    to 'setup()' as the 'distclass' keyword argument.  If so, it is
    necessary to respect the expectations that 'setup' has of Distribution.
    See the code for 'setup()', in core.py, for details.
    ))�verbose�vzrun verbosely (default)r)�quiet�qz!run quietly (turns verbosity off))zdry-run�nzdon't actually do anything)�help�hzshow detailed help message)zno-user-cfgNz-ignore pydistutils.cfg in your home directoryz�Common commands: (see '--help-commands' for more)

  setup.py build      will build the package underneath 'build/'
  setup.py install    will install the package
))z
help-commandsNzlist all available commands)�nameNzprint package name)�version�Vzprint package version)�fullnameNzprint <package name>-<version>)�authorNzprint the author's name)�author-emailNz print the author's email address)�
maintainerNzprint the maintainer's name)zmaintainer-emailNz$print the maintainer's email address)�contactNz7print the maintainer's name if known, else the author's)z
contact-emailNz@print the maintainer's email address if known, else the author's)�urlNzprint the URL for this package)�licenseNz print the license of the package)�licenceNzalias for --license)�descriptionNzprint the package description)zlong-descriptionNz"print the long package description)�	platformsNzprint the list of platforms)�classifiersNzprint the list of classifiers)�keywordsNzprint the list of keywords)�providesNz+print the list of packages/modules provided)�requiresNz+print the list of packages/modules required)�	obsoletesNz0print the list of packages/modules made obsoleterr&r$Nc	��d|_d|_d|_|jD]}t	||d��t�|_|jjD](}d|z}t	||t|j|���*i|_	d|_
d|_d|_i|_
g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|�ri|j=d�}|�K|d=|j?�D]5\}}|jA|�}|j?�D]\}	}
d|
f||	<��7d|vrK|d|d	<|d=d
}tB�tCjD|�n"tFjHjK|dz�|j?�D]�\}}
tM|jd|z�r t|jd|z�|
��?tM|j|�rt	|j||
��mtM||�rt	|||
���d
tO|�z}tCjD|���d|_(|j�2|jD]#}
|
jSd�sn|
dk(s�d|_(n|jU�y)a0Construct a new Distribution instance: initialize all the
        attributes of a Distribution, and then use 'attrs' (a dictionary
        mapping attribute names to values) to assign some of those
        attributes their "real" values.  (Any attributes not mentioned in
        'attrs' will be assigned to some null value: 0, None, an empty list
        or dictionary, etc.)  Most importantly, initialize the
        'command_obj' attribute to the empty dictionary; this will be
        filled in with real command objects by 'parse_command_line()'.
        rr�get_N��optionszsetup scriptr5r4z:'licence' distribution option is deprecated; use 'license'�
�set_zUnknown distribution option: %sT�-z
--no-user-cfgF)+r$�dry_runr)�display_option_names�setattr�DistributionMetadata�metadata�_METHOD_BASENAMES�getattr�cmdclass�command_packages�script_name�script_args�command_options�
dist_files�packages�package_data�package_dir�
py_modules�	libraries�headers�ext_modules�ext_package�include_dirs�
extra_path�scripts�
data_files�password�command_obj�have_run�get�items�get_option_dict�warnings�warn�sys�stderr�write�hasattr�repr�
want_user_cfg�
startswith�finalize_options)�self�attrs�attr�basename�method_namer@�command�cmd_options�opt_dict�opt�valr�key�args              r�__init__zDistribution.__init__s�����������	��-�-�	#�D��D�$��"�	#�-�.��
��
�
�7�7�	L�H� �8�+�K��D�+�w�t�}�}�k�'J�K�	L���
�!%���
 ������ "������
��
���������������������� ��������������
������
��
�i�i�	�*�G��"��)�$�,3�M�M�O�>�(�G�[�#�3�3�G�<�H�$/�$5�$5�$7�>���S�)7��(=���
�>�>�
�E�!�#(��#3��i� ��)�$�R���'��M�M�#�&��J�J�$�$�S�4�Z�0�"�K�K�M�	
'���S��4�=�=�&�3�,�7�8�G�D�M�M�6�C�<�8��=��T�]�]�C�0��D�M�M�3��4��T�3�'��D�#�s�+�;�d�3�i�G�C��M�M�#�&�	
'�""������'��'�'�
���~�~�c�*���/�)�).�D�&��
�	
���r!c�b�|jj|�}|�ix}|j|<|S)z�Get the option dictionary for a given command.  If that
        command's option dictionary hasn't been created yet, then create it
        and return the new dictionary; otherwise, return the existing
        option dictionary.
        )rOr`)rmrr�dicts   rrbzDistribution.get_option_dicts9���#�#�'�'��0���<�35�5�D�4�'�'��0��r!c���ddlm}|�#t|jj	��}|�|j||z�|dz}|s|j|dz�y|D]�}|jj
|�}|�|j|d|zz��8|j|d|zz�||�}|jd�D]}|j|dz|z����y)Nr)�pformatz  zno commands known yetzno option dict for '%s' commandzoption dict for '%s' command:rA)�pprintr}�sortedrO�keys�announcer`�split)	rm�header�commands�indentr}�cmd_namert�out�lines	         r�dump_option_dictszDistribution.dump_option_dicts(s���"����d�2�2�7�7�9�:�H����M�M�&�6�/�*��d�]�F���M�M�&�#:�:�;�� �	8�H��+�+�/�/��9�H����
�
�f�'H�8�'S�S�T��
�
�f�'F��'Q�Q�R��h�'���I�I�d�O�8�D��M�M�&�4�-�$�"6�7�8�	8r!c��t�|j�D�cgc]-}tjj	|�s�#t|���/}}tr#|jddj|�z�|Scc}w)a�Find as many configuration files as should be processed for this
        platform, and return a list of filenames in the order in which they
        should be parsed.  The filenames returned are guaranteed to exist
        (modulo nasty race conditions).

        There are multiple possible config files:
        - distutils.cfg in the Distutils installation directory (i.e.
          where the top-level Distutils __inst__.py file lives)
        - a file in the user's home directory named .pydistutils.cfg
          on Unix and pydistutils.cfg on Windows/Mac; may be disabled
          with the ``--no-user-cfg`` option
        - setup.cfg in the current directory
        - a file named by an environment variable
        zusing config files: %sz, )	r�
_gen_paths�os�path�isfilerrr��join)rmr��filess   r�find_config_fileszDistribution.find_config_filesBs_��	��'+���'8�Q�t�B�G�G�N�N�4�<P��T��Q��Q���M�M�2�T�Y�Y�u�5E�E�F����Rs�$A<�
A<c#�
K�tjtjdj�j
}|dz��dtjdk(z}|dz}|jr(tjd�j�|z��tjd���tjt�5tjt
jd����ddd�y#1swYyxYw�w)	N�	distutilsz
distutils.cfg�.�posixzpydistutils.cfg�~z	setup.cfg�DIST_EXTRA_CONFIG)�pathlib�Pathre�modules�__file__�parentr�r+rj�
expanduser�
contextlib�suppress�	TypeError�getenv)rm�sys_dir�prefix�filenames    rr�zDistribution._gen_pathsYs������,�,�s�{�{�;�7�@�@�A�H�H����'�'�����7�*�+���-�-������,�,�s�#�.�.�0�8�;�;��l�l�;�'�'��
 �
 ��
+�	?��,�,�r�y�y�)<�=�>�>�	?�	?�	?�s�CD�+C7�.	D�7D�<Dc��ddlm}tjtjk7rgd�}ng}t|�}|�|j
�}tr|jd�|�}|D]�}tr|jd|z�|j|�|j�D]a}|j|�}|j|�}|D]8}	|	dk7s�	|	|vs�|j||	�}
|	jdd�}	||
f||	<�:�c|j���d	|j vr�|j d	j#�D]f\}	\}}
|j$j|	�}	|rt'||t)|
��n(|	d
vrt'||	t)|
��n
t'||	|
��hyy#t*$r}
t-|
��d}
~
wwxYw)Nr)�ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-datar�zexec-prefix�home�user�rootz"Distribution.parse_config_files():z  reading %srrC�_�global)r$rD)�configparserr�rer��base_prefix�	frozensetr�rr��read�sectionsr@rbr`�replaceryrOra�negative_optrFr�
ValueErrorr)rm�	filenamesr��ignore_options�parserr��sectionr@rtrurv�src�aliasrs              r�parse_config_fileszDistribution.parse_config_filesks���-��:�:����(��N�  �N�"�>�2�����.�.�0�I���M�M�>�?����!�	�H���
�
�n�x�7�8��K�K��!�!�?�?�,�
8�� �.�.��1���/�/��8��"�8�C��j�(�S��-F�$�j�j��#�6��!�k�k�#�s�3��)1�3����
�	8�	
8�
�O�O��!	�*�t�+�+�+�#'�#7�#7��#A�#G�#G�#I�

4���Z�c�3��)�)�-�-�c�2��4����e��3��-?�@�� 6�6���c�9�S�>�:���c�3�/��

4�,��"�4�.�s�3�3��4�s�0AF6�6	G�?G
�
Gc��|j�}g|_t||jz�}|j	|j
�|j
ddi�|j|j|��}|j�}tj�jtjd|jzz
�|j|�ry|r|j!||�}|�y|r�|j"r5|j%|t'|j�dk(|j��y|jst)d��y	)
a�Parse the setup script's command line, taken from the
        'script_args' instance attribute (which defaults to 'sys.argv[1:]'
        -- see 'setup()' in core.py).  This list is first processed for
        "global options" -- options that set attributes of the Distribution
        instance.  Then, it is alternately scanned for Distutils commands
        and options for that command.  Each new command terminates the
        options for the previous command.  The allowed options for a
        command are determined by the 'user_options' attribute of the
        command class -- thus, we have to be able to load command classes
        in order to parse the command line.  Any error in that 'options'
        attribute raises DistutilsGetoptError; any error on the
        command-line raises DistutilsArgError.  If no Distutils commands
        were found on the command line, raises DistutilsArgError.  Return
        true if command-line was successfully parsed and we should carry
        on with executing commands; false if no errors but we shouldn't
        execute commands (currently, this only happens if user asks for
        help).
        r5r4)�args�object�
Nr��display_optionsr�zno commands suppliedT)�_get_toplevel_optionsr�r	r��set_negative_aliasesr��set_aliases�getoptrN�get_option_order�logging�	getLogger�setLevel�WARNr$�handle_display_options�_parse_command_optsr)�
_show_help�lenr)rm�toplevel_optionsr�r��option_orders     r�parse_command_linezDistribution.parse_command_line�s/��. �5�5�7����
��-��0D�0D�D�E���#�#�D�$5�$5�6����I�y�1�2��}�}�$�"2�"2�4�}�@���.�.�0������$�$�W�\�\�B����4E�%E�F��&�&�|�4����+�+�F�D�9�D��|����9�9��O�O���D�M�M�(:�a�(?�$�-�-�
�
�
��}�}�#�$:�;�;�r!c�"�|jdgzS)z�Return the non-display options recognized at the top level.

        This includes options that are recognized *only* at the top
        level as well as options recognized for commands.
        )zcommand-packages=Nz0list of packages that provide distutils commands)�global_options�rms rr�z"Distribution._get_toplevel_options�s!���"�"�
�&
�
�	
r!c��ddlm}|d}tj|�st	d|z��|j
j
|�	|j|�}t||�std|z��t|d�rt|jt�sd}t||z��|j }t|d�r+|j#�}|j%|j �t|d	�r0t|j&t�rt)|j&�}ng}|j+|j,|jz|z�|j/|�|j1|d
d�\}}	t|	d�r"|	j2r|j5|d|g��yt|d	�rwt|j&t�r]d}
|j&D]I\}}}
}t|	|j7|��s�$d
}
t9|�r|��9td
|�d|�d���|
ry|j;|�}t=|	�j?�D]\}}d|f||<�|S#t$r}t|��d}~wwxYw)a�Parse the command-line options for a single command.
        'parser' must be a FancyGetopt instance; 'args' must be the list
        of arguments, starting with the current command (whose options
        we are about to parse).  Returns a new version of 'args' with
        the next command at the front of the list; will be the empty
        list if there are no more commands on the command line.  Returns
        None if the user asked for help on this command.
        r��Commandzinvalid command name '%s'Nz&command class %s must subclass Command�user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)r��help_optionsrr)r�zinvalid help function z for help option 'z-': must be a callable object (function, etc.)zcommand line) �
distutils.cmdr��
command_re�match�
SystemExitr��append�get_command_classrr�
issubclassrrhrr�rr��copy�updater��fix_help_options�set_option_tabler�r�r�r)r��
get_attr_name�callablerb�varsra)rmr�r�r�rr�	cmd_classrr�r��opts�help_option_found�help_option�short�desc�funcrtr+rs                  rr�z Distribution._parse_command_optss���	*��q�'������(��8�7�B�C�C��
�
���W�%�
	)��.�.�w�7�I��)�W�-�%�8�9�D��
�
�I�~�.��9�1�1�4�8�>�
�&�c�I�o�6�6��(�(���9�n�-�'�,�,�.�L����	� 6� 6�7��9�n�-�*��"�"�D�3
�,�I�,B�,B�C�L��L�	������)�"8�"8�8�<�G�	
�	�#�#�L�1��}�}�T�!�"�X�.���t��4�� �T�Y�Y��O�O�F�A���O�L���9�n�-�*��"�"�D�3
�!"��2;�2H�2H�

�.��U�D�$��4��!5�!5�k�!B�C�()�%���~���1� $�[�2���

�!���'�'��0����:�+�+�-�	5�K�D�%�,�e�4�H�T�N�	5����U$�	)�#�C�(�(��	)�s�I,�,	J�5J�Jc��dD]o}t|j|�}|��t|t�s�-|j	d�D�cgc]}|j���}}t
|j||��qycc}w)z�Set final values for all the options on the Distribution
        instance, analogous to the .finalize_options() method of Command
        objects.
        �r9r7N�,)rJrHrrr��striprF)rmror�elms    rrlzDistribution.finalize_optionscsm��
.�	4�D��D�M�M�4�0�E��}���%��%�05���C�0@�A������A��A���
�
�t�U�3�
	4��
Bs�A6rc�4�ddlm}ddlm}|rY|r|j	�}n|j
}|j
|�|j|jdz�td�|r7|j
|j�|jd�td�|jD]�}t|t�rt||�r|}	n|j|�}	t!|	d�rLt|	j"t$�r2|j
|	j&t)|	j"�z�n|j
|	j&�|jd|	j*z�td���t||j,��y	)
abShow help for the setup script command-line in the form of
        several lists of command-line options.  'parser' should be a
        FancyGetopt instance; do not expect it to be returned in the
        same state, as its option table will be reset to make it
        generate the correct help text.

        If 'global_options' is true, lists the global options:
        --verbose, --dry-run, etc.  If 'display_options' is true, lists
        the "display-only" options: --name, --version, etc.  Finally,
        lists per-command help for every command name or command class
        in 'commands'.
        r��	gen_usager�z
Global options:r?zKInformation display options (just display information, ignore any commands)r�zOptions for '%s' command:N)�distutils.corer�r�r�r�r�r��
print_help�common_usage�printr�r�rrr�r�rhr�rr�r�rrM)
rmr�r�r�r�r�r�r@rr�klasss
          rr�zDistribution._show_helppsR��	-�)����4�4�6���-�-���#�#�G�,����d�/�/�2E�E�F��"�I���#�#�D�$8�$8�9����6�
�
�"�I��}�}�	�G��'�4�(�Z���-I����.�.�w�7���u�n�-�*�U�=O�=O�QU�2V��'�'��&�&�)9�%�:L�:L�)M�M���'�'��(:�(:�;����9�E�N�N�J�K��"�I�	�	�i��(�(�)�*r!c��ddlm}|jr7|j�t	d�t	||j
��yd}i}|jD]
}d||d<�|D]�\}}|s�	|j|�s�t|�}t|jd|z��}|dvrt	dj|��n*|dvrt	d	j|��nt	|�d}��|S)
z�If there were any non-global "display-only" options
        (--help-commands or the metadata display options) on the command
        line, display the requested info and return true; else return
        false.
        rr�r?rr>r�r�)r8r:r;r<rA)r�r��
help_commands�print_commandsr�rMr�r`r
rJrHr�)	rmr�r��any_display_options�is_display_option�optionrurvrs	         rr�z#Distribution.handle_display_options�s���	-�
������!��"�I��)�D�,�,�-�.��
 �����*�*�	-�F�+,��f�Q�i�(�	-�%�
	(�H�C���(�,�,�S�1�'��,��<���
�
�v��|�<�>���3�3��#�(�(�5�/�*��P�P��$�)�)�E�*�+��%�L�&'�#�
	(�#�"r!c���t|dz�|D]N}|jj|�}|s|j|�}	|j}td|||fz��Py#t
$rd}Y�!wxYw)zZPrint a subset of the list of all commands -- used by
        'print_commands()'.
        �:�(no description available)z
  %-*s  %sN)r�rKr`r�r6�AttributeError)rmr�r��
max_length�cmdr�r6s       r�print_command_listzDistribution.print_command_list�s���	�f�s�l���		A�C��M�M�%�%�c�*�E���.�.�s�3��
;�#�/�/��
�,�*�c�;�!?�?�@�		A��"�
;�:��
;�s�A#�#A1�0A1c��ddl}|jj}i}|D]}d||<�	g}|jj	�D]%}|j|�r�|j
|��'d}||zD]}t|�|kDs�t|�}�|j|d|�|rt�|j|d|�yy)anPrint out a help message listing all available commands with a
        description of each.  The list is divided into "standard commands"
        (listed in distutils.command.__all__) and "extra commands"
        (mentioned in self.cmdclass, but not a standard command).  The
        descriptions come from the command class attribute
        'description'.
        rNrzStandard commandszExtra commands)
�distutils.commandrr�__all__rKr�r`r�r�rr�)rmr��std_commands�is_stdr�extra_commandsrs       rr�zDistribution.print_commands�s���	!� �(�(�0�0�����	�C��F�3�K�	����=�=�%�%�'�	+�C��:�:�c�?��%�%�c�*�	+��
��.�0�	&�C��3�x�*�$� ��X�
�	&�	
����.A�:�N���G��#�#�N�4D�j�Q�r!c��ddl}|jj}i}|D]}d||<�	g}|jj	�D]%}|j|�r�|j
|��'g}||zD]P}|jj|�}|s|j|�}	|j}|j
||f��R|S#t$rd}Y�$wxYw)a>Get a list of (command, description) tuples.
        The list is divided into "standard commands" (listed in
        distutils.command.__all__) and "extra commands" (mentioned in
        self.cmdclass, but not a standard command).  The descriptions come
        from the command class attribute 'description'.
        rNrr)
r	rrr
rKr�r`r�r�r6r)	rmr�rrrr
�rvr�r6s	         r�get_command_listzDistribution.get_command_list�s���	!� �(�(�0�0�����	�C��F�3�K�	����=�=�%�%�'�	+�C��:�:�c�?��%�%�c�*�	+����.�0�	*�C��M�M�%�%�c�*�E���.�.�s�3��
;�#�/�/��
�I�I�s�K�(�)�	*��	��"�
;�:��
;�s�&C	�	C�Cc���|j}t|t�sS|�d}|jd�D�cgc]}|dk7s�	|j	���}}d|vr|jdd�||_|Scc}w)z9Return a list of packages from which commands are loaded.r?r�zdistutils.commandr)rLrrr�r��insert)rm�pkgs�pkgs   r�get_command_packagesz!Distribution.get_command_packagessr���$�$���$��%��|���+/�:�:�c�?�H�C�c�R�i�C�I�I�K�H�D�H�"�$�.����A�2�3�$(�D�!����	Is
�
A2�A2c��|jj|�}|r|S|j�D]T}dj||�}|}	t	|�t
j|}	t||�}||j|<|cStd|z��#t$rY�pwxYw#t$rtd|�d|�d|�d���wxYw)aoReturn the class that implements the Distutils command named by
        'command'.  First we check the 'cmdclass' dictionary; if the
        command is mentioned there, we fetch the class object from the
        dictionary and return it.  Otherwise we load the command module
        ("distutils.command." + command) and fetch the command class from
        the module.  The loaded class is also stored in 'cmdclass'
        to speed future calls to 'get_command_class()'.

        Raises DistutilsModuleError if the expected module could not be
        found, or if that module does not define the expected class.
        z{}.{}zinvalid command 'z
' (no class 'z
' in module 'z')zinvalid command '%s')rKr`rr�
__import__rer��ImportErrorrJrr)rmrrr��pkgname�module_name�
klass_name�modules       rr�zDistribution.get_command_class's����
�
�!�!�'�*����L��0�0�2�	�G�!�.�.��'�:�K� �J�
��;�'����[�1��
���
�3��&+�D�M�M�'�"��L�'	�*#�#9�G�#C�D�D���
��
��
"�
�*��
�K�9���
�s�B�'B$�	B!� B!�$Cc�D�|jj|�}|s�|r�tr|jd|z�|j	|�}||�x}|j|<d|j
|<|jj|�}|r|j||�|S)aReturn the command object for 'command'.  Normally this object
        is cached on a previous call to 'get_command_obj()'; if no command
        object for 'command' is in the cache, then we either create and
        return it (if 'create' is true) or return None.
        z<Distribution.get_command_obj(): creating '%s' command objectr)r^r`rr�r�r_rO�_set_command_options)rmrr�create�cmd_objr�r@s      r�get_command_objzDistribution.get_command_objNs����"�"�&�&�w�/���6���
�
�3�5<�=��
�*�*�7�3�E�27��+�=�G�d�&�&�w�/�%&�D�M�M�'�"��*�*�.�.�w�7�G���)�)�'�7�;��r!c
���|j�}|�|j|�}tr|jd|z�|j	�D]�\}\}}tr"|jdj|||��	|jD�cgc]
}t|���}}	|j}		t|t�}
||	vr|
rt||	|t|��nL||vr|
rt||t|��n/t||�rt|||�ntd|�d|�d|�d�����ycc}w#t$rg}Y��wxYw#t$ri}	Y��wxYw#t $r}t|��d}~wwxYw)aySet the options for 'command_obj' from 'option_dict'.  Basically
        this means copying elements of a dictionary ('option_dict') to
        attributes of an instance ('command').

        'command_obj' must be a Command instance.  If 'option_dict' is not
        supplied, uses the standard option dictionary for this command
        (from 'self.command_options').
        Nz#  setting options for '%s' command:z    {} = {} (from {})z	error in z: command 'z' has no such option '�')�get_command_namerbrr�rar�boolean_optionsr
rr�rrrFrrhrr�)rmr^�option_dict�command_namer�sourcer�o�	bool_opts�neg_opt�	is_stringrs            rrz!Distribution._set_command_optionsksz��#�3�3�5�����.�.�|�<�K���M�M�?�,�N�O�'2�'8�'8�':�	0�#�F�O�V�U���
�
�5�<�<�V�U�F�S�T�
�;F�;V�;V�W�a�.�q�1�W�	�W�
�%�2�2��
0�&�u�c�2�	��W�$���K����i��>N�:N�O��y�(�Y��K���5�1A�B��[�&�1��K���7�.�!�<��9����+	0��X��!�
��	�
��"�
���
�� �
0�*�3�/�/��
0�sO�D5�D0� D5�#E�0A=E�0D5�5E�E�E�E�	E0� E+�+E0c�N�ddlm}t||�s|}|j|�}n|j	�}|j
s|S|j
�d|_d|j|<|j|�|r'|j�D]}|j||��|S)a�Reinitializes a command to the state it was in when first
        returned by 'get_command_obj()': ie., initialized but not yet
        finalized.  This provides the opportunity to sneak option
        values in programmatically, overriding or supplementing
        user-supplied values from the config files and command line.
        You'll have to re-finalize the command object (by calling
        'finalize_options()' or 'ensure_finalized()') before using it for
        real.

        'command' should be a command name (string) or command object.  If
        'reinit_subcommands' is true, also reinitializes the command's
        sub-commands, as declared by the 'sub_commands' class attribute (if
        it has one).  See the "install" command for an example.  Only
        reinitializes the sub-commands that actually matter, ie. those
        whose test predicates return true.

        Returns the reinitialized command object.
        rr�)r�r�rr!r$�	finalized�initialize_optionsr_r�get_sub_commands�reinitialize_command)rmrr�reinit_subcommandsr�r'�subs      rr1z!Distribution.reinitialize_command�s���&	*��'�7�+�"�L��*�*�<�8�G�"�3�3�5�L�� � ��N��"�"�$����&'��
�
�l�#��!�!�'�*���/�/�1�
C���)�)�#�/A�B�
C��r!c�0�tj||�y�Nr)rmr�levels   rr�zDistribution.announce�s������s�r!c�H�|jD]}|j|��y)z�Run each command that was seen on the setup script command line.
        Uses the list of commands found and cache of command objects
        created by 'get_command_obj()'.
        N)r��run_command)rmrs  r�run_commandszDistribution.run_commands�s%��
�=�=�	"�C����S�!�	"r!c���|jj|�rytjd|�|j	|�}|j�|j
�d|j|<y)a�Do whatever it takes to run a command (including nothing at all,
        if the command has already been run).  Specifically: if we have
        already created and run the command named by 'command', return
        silently without doing anything.  If the command named by 'command'
        doesn't even have a command object yet, create one.  Then invoke
        'run()' on that command object (or an existing one).
        Nz
running %sr)r_r`r�infor!�ensure_finalized�run)rmrrr s   rr8zDistribution.run_command�sZ���=�=���W�%������w�'��&�&�w�/��� � �"����
�!"��
�
�g�r!c�V�t|jxs|jxsg�dkDS�Nr)r�rQrTr�s r�has_pure_moduleszDistribution.has_pure_modules�s$���4�=�=�9�D�O�O�9�r�:�Q�>�>r!c�N�|jxrt|j�dkDSr?)rWr�r�s r�has_ext_moduleszDistribution.has_ext_modules�s#�����=�C��(8�(8�$9�A�$=�=r!c�N�|jxrt|j�dkDSr?)rUr�r�s r�has_c_librarieszDistribution.has_c_libraries�s���~�~�9�#�d�n�n�"5��"9�9r!c�F�|j�xs|j�Sr5)r@rBr�s r�has_moduleszDistribution.has_modules�s���$�$�&�@�$�*>�*>�*@�@r!c�N�|jxrt|j�dkDSr?)rVr�r�s r�has_headerszDistribution.has_headers�����|�|�5��D�L�L� 1�A� 5�5r!c�N�|jxrt|j�dkDSr?)r[r�r�s r�has_scriptszDistribution.has_scripts�rIr!c�N�|jxrt|j�dkDSr?)r\r�r�s r�has_data_fileszDistribution.has_data_files�s�����;�3�t���#7�!�#;�;r!c�n�|j�xr$|j�xr|j�Sr5)r@rBrDr�s r�is_purezDistribution.is_pure�s;���!�!�#�
+��(�(�*�*�
+��(�(�*�*�	
r!r5)NNr?)r)r)+r�
__module__�__qualname__�__doc__r�r�r�r
rEr�ryrbr�r�r�r�r�r�r�rlr�r�rr�rrr�r!rr1r��INFOr�r9r8r@rBrDrFrHrKrMrO)�.0�xr
s000rr#r#5s���*�N��L��O�6>M�M�M��-�a��d�3�M���Y�'�L�\ �|	�8�4�.?�$@4�HA�F
�a�F4�12�1�r�0+�d%#�NA�"R�<�F
�%E�N�:)0�V&�T#*�,�,��"�#�(?�>�:�A�6�6�<�
��}Ns�B)r#c���eZdZdZdZd#d�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�ZeZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$y)$rGz]Dummy class to hold the distribution meta-data: name, version,
    author, and so forth.
    )r+r,r/�author_emailr1�maintainer_emailr3r4r6�long_descriptionr9r7r.r2�
contact_emailr8�download_urlr:r;r<Nc�,�|�|jt|��yd|_d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_yr5)�
read_pkg_file�openr+r,r/rWr1rXr3r4r6rYr9r7r8r[r:r;r<)rmr�s  rryzDistributionMetadata.__init__"s��������t�D�z�*��D�I��D�L��D�K� $�D��"�D�O�$(�D�!��D�H��D�L�#�D��$(�D�!� �D�M�!�D�N�#�D�� $�D�� �D�M� �D�M�!�D�Nr!c�j��t|���fd�}�fd�}�d}|d�|_|d�|_|d�|_|d�|_d|_|d	�|_d|_|d
�|_|d�|_	d�vr|d�|_
nd|_
|d
�|_|d�|_d�vr|d�jd�|_
|d�|_|d�|_|dk(r(|d�|_|d�|_|d�|_yd|_d|_d|_y)z-Reads the metadata values from a file object.c�$���|}|r|dk7r|Syy�N�UNKNOWNr)r+rrs  �r�_read_fieldz7DistributionMetadata.read_pkg_file.<locals>._read_field=s"�����I�E���)�+���,�ur!c�8���j|d�}|gk(ry|Sr5)�get_all)r+�valuesrs  �r�
_read_listz6DistributionMetadata.read_pkg_file.<locals>._read_listBs"����[�[��t�,�F���|���Mr!zmetadata-versionr+r,�summaryr/Nr0z	home-pager4zdownload-urlr6r9r��platform�
classifier�1.1r;r:r<)rr+r,r6r/r1rWrXr3r4r[rYr�r9r7r8r;r:r<)rm�filercrg�metadata_versionrs     @rr]z"DistributionMetadata.read_pkg_file9s<�����%��	�
	��1�2����'��	�"�9�-���&�y�1���!�(�+������'��7��� $����{�+���"�9�-����S� � +�N� ;�D�� $�D�� +�M� :���&�y�1������'�
�3�9�9�#�>�D�M�#�J�/���%�l�3����u�$�&�z�2�D�M�&�z�2�D�M�'��4�D�N� �D�M� �D�M�!�D�Nr!c��ttjj|d�dd��5}|j	|�ddd�y#1swYyxYw)z.Write the PKG-INFO file into the release tree.zPKG-INFO�wzUTF-8)�encodingN)r^r�r�r��write_pkg_file)rm�base_dir�pkg_infos   r�write_pkg_infoz#DistributionMetadata.write_pkg_infolsF��
��G�G�L�L��:�.��g�
�	*�
�����)�	*�	*�	*�s�A�Ac�*��d}|js0|js$|js|js|jrd}�jd|z��jd|j
�z��jd|j�z��fd�}|d|j��|d|j��|d	|j��|d
|j��|d|j��|d|j�|d
t|j�xsd��|ddj|j!���|j#�d|j%��|j#�d|j'��|j#�d|j)��|j#�d|j+��|j#�d|j-��y)z0Write the PKG-INFO format data to a file object.z1.0rkzMetadata-Version: %s
z	Name: %s
zVersion: %s
c�:��|r�j|�d|�d��yy)Nz: rA)rg)r�rvrls  �r�maybe_writez8DistributionMetadata.write_pkg_file.<locals>.maybe_write�s$�����
�
�f�X�R��u�B�/�0�r!�Summaryz	Home-page�AuthorzAuthor-email�LicensezDownload-URL�Descriptionr?�Keywordsr��Platform�
Classifier�Requires�Provides�	ObsoletesN)r:r;r<r8r[rg�get_name�get_version�get_description�get_url�get_contact�get_contact_email�get_licenser
�get_long_descriptionr��get_keywords�_write_list�
get_platforms�get_classifiers�get_requires�get_provides�
get_obsoletes)rmrlr,rws `  rrqz#DistributionMetadata.write_pkg_filess�������M�M��}�}��~�~����� � ��G�	
�
�
�+�g�5�6��
�
�<�$�-�-�/�1�2��
�
�?�T�%5�%5�%7�7�8�	1�
	�I�t�3�3�5�6��K�����0��H�d�.�.�0�1��N�D�$:�$:�$<�=��I�t�/�/�1�2��N�D�$5�$5�6��M�=��1J�1J�1L�1R�PR�#S�T��J�����):�):�)<� =�>�����z�4�+=�+=�+?�@�����|�T�-A�-A�-C�D�	
����z�4�+<�+<�+>�?�����z�4�+<�+<�+>�?�����{�D�,>�,>�,@�Ar!c�`�|xsg}|D]#}|jdj||���%y)Nz{}: {}
)rgr)rmrlr+rfrs     rr�z DistributionMetadata._write_list�s3����2���	7�E��J�J�z�(�(��u�5�6�	7r!c�"�|jxsdSra)r+r�s rr�zDistributionMetadata.get_name�s���y�y�%�I�%r!c�"�|jxsdS)Nz0.0.0)r,r�s rr�z DistributionMetadata.get_version�s���|�|�&�w�&r!c�^�dj|j�|j��S)Nz{}-{})rr�r�r�s r�get_fullnamez!DistributionMetadata.get_fullname�s"���~�~�d�m�m�o�t�/?�/?�/A�B�Br!c��|jSr5)r/r�s r�
get_authorzDistributionMetadata.get_author�s���{�{�r!c��|jSr5)rWr�s r�get_author_emailz%DistributionMetadata.get_author_email����� � � r!c��|jSr5)r1r�s r�get_maintainerz#DistributionMetadata.get_maintainer�s�����r!c��|jSr5)rXr�s r�get_maintainer_emailz)DistributionMetadata.get_maintainer_email�����$�$�$r!c�6�|jxs|jSr5)r1r/r�s rr�z DistributionMetadata.get_contact�s�����-�$�+�+�-r!c�6�|jxs|jSr5)rXrWr�s rr�z&DistributionMetadata.get_contact_email�s���$�$�9��(9�(9�9r!c��|jSr5)r3r�s rr�zDistributionMetadata.get_url�s���x�x�r!c��|jSr5)r4r�s rr�z DistributionMetadata.get_license�s���|�|�r!c��|jSr5)r6r�s rr�z$DistributionMetadata.get_description�s�����r!c��|jSr5)rYr�s rr�z)DistributionMetadata.get_long_description�r�r!c�"�|jxsgSr5)r9r�s rr�z!DistributionMetadata.get_keywords�����}�}�"��"r!c�&�t|d�|_y)Nr9)r r9�rmrs  r�set_keywordsz!DistributionMetadata.set_keywords�s��$�U�J�7��
r!c��|jSr5)r7r�s rr�z"DistributionMetadata.get_platforms�s���~�~�r!c�&�t|d�|_y)Nr7)r r7r�s  r�
set_platformsz"DistributionMetadata.set_platforms�s��%�e�[�9��r!c�"�|jxsgSr5)r8r�s rr�z$DistributionMetadata.get_classifiers�s�����%�2�%r!c�&�t|d�|_y)Nr8)r r8r�s  r�set_classifiersz$DistributionMetadata.set_classifiers�s��'��}�=��r!c��|jSr5)r[r�s r�get_download_urlz%DistributionMetadata.get_download_url�r�r!c�"�|jxsgSr5)r;r�s rr�z!DistributionMetadata.get_requires�r�r!c�p�ddl}|D]}|jj|��t|�|_yr?)�distutils.versionpredicate�versionpredicate�VersionPredicaterr;�rmrr�r%s    r�set_requiresz!DistributionMetadata.set_requires�s3��)��	;�A��&�&�7�7��:�	;��U���
r!c�"�|jxsgSr5)r:r�s rr�z!DistributionMetadata.get_provides�r�r!c��|D�cgc]}|j���}}|D]!}ddl}|jj|��#||_ycc}wr?)r�r�r��split_provisionr:)rmrr%r�s    r�set_providesz!DistributionMetadata.set_provides�sO��$)�*�q�����*��*��	:�A�-��&�&�6�6�q�9�	:���
��+s�Ac�"�|jxsgSr5)r<r�s rr�z"DistributionMetadata.get_obsoletes�s���~�~�#��#r!c�p�ddl}|D]}|jj|��t|�|_yr?)r�r�r�rr<r�s    r�
set_obsoletesz"DistributionMetadata.set_obsoletes�s3��)��	;�A��&�&�7�7��:�	;��e���r!r5)%rrPrQrRrIryr]rtrqr�r�r�r�r�r�r�r�r�r�r�r��get_licencer�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr!rrGrGs������0"�.1"�f*�%B�N7�&�'�C��!��%�.�:����K� �%�#�8��:�&�>�!�#�$�#��$�%r!rGc�@�g}|D]}|j|dd��|S)zConvert a 4-tuple 'help_options' list as found in various command
    classes to the 3-tuple form required by FancyGetopt.
    r�)r�)r@�new_options�
help_tuples   rr�r�s2���K��,�
����:�a��?�+�,��r!)!rRrer��rer�r�r��emailrrcr�errorsrrrr�fancy_getoptr	r
�utilrrr
�_logr�debugr�compiler�r r#rGr�rr!r�<module>r�s�����	�	����#�����9�9�9����R�Z�Z�4�
5�
��F
�F
�`x%�x%�v��_'���H��s�A=�=B�B
¿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!