HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/pbr/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/pbr/__pycache__/util.cpython-311.pyc
�

㦧b\��~�dZ	ddlZn#e$rYnwxYwddlZddlmZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZ
ddl
mZddl
mZddlZddlmZddlmZ	ddlZn#e$rddlZYnwxYwddlmZddlZejd	��Zd
ZdZdZd
ZdZ d�Z!d�Z"dd�Z#dd�Z$d�Z%d�Z&d�Z'd�Z(d�Z)d�Z*Gd�de��Z+dS)a�The code in this module is mostly copy/pasted out of the distutils2 source
code, as recommended by Tarek Ziade.  As such, it may be subject to some change
as distutils2 development continues, and will have to be kept up to date.

I didn't want to use it directly from distutils2 itself, since I do not want it
to be an installation dependency for our packages yet--it is still too unstable
(the latest version on PyPI doesn't even install).
�N)�defaultdict)�errors)�log)�dist)�	extension)�extra_filesz\s*(.*?)\s*\((.*)\)\s*$)#))�metadata�namer
))r	�versionr))r	�authorr))r	�author_emailr
))r	�
maintainerr))r	�maintainer_emailr))r	�	home_page�url))r	�project_urlsr))r	�summary�description))r	�keywordsr))r	r�long_description))r	�description_content_type�long_description_content_type))r	�download_urlr))r	�
classifier�classifiers))r	�platform�	platforms))r	�licenser))r	�
requires_dist�install_requires))r	�setup_requires_dist�setup_requires))r	�python_requiresr#))r	�requires_pythonr#))r	�
provides_dist�provides))r	�provides_extrasr'))r	�obsoletes_dist�	obsoletes))�files�
packages_root�package_dir))r*�packagesr-))r*�package_datar.))r*�namespace_packagesr/))r*�
data_filesr0))r*�scriptsr1))r*�modules�
py_modules))�global�commands�cmdclass))�backwards_compat�zip_safer8))r7�
tests_requirer9))r7�dependency_linksr:))r7�include_package_datar;)rrr r&r)r/r-r.r0r1r3r:r"r9rr6r')r)r8r;�c��tjdkr4|�dd��}d�tj|��D��Stj|��S)N�nt�\�/c�:�g|]}|�dd����S)r@r?)�replace)�.0�xs  �*/usr/lib/python3/dist-packages/pbr/util.py�
<listcomp>zshlex_split.<locals>.<listcomp>�s&��@�@�@���	�	�#�t�$�$�@�@�@�)�osr
rB�shlex�split)�paths rE�shlex_splitrL�sP��	�w�$����|�|�D�#�&�&��@�@�e�k�$�.?�.?�@�@�@�@��;�t���rGc��|�d��}t|��dz
}|d|�}|d}|dkr]	td�|��|g���}n6#t$r#|dkr�|dz}|d|�}||}d}YnwxYw|dk�]||d�D]0}	t||��}�#t$rt	|���wxYw|S)z�Resolve a name like ``module.object`` to an object and return it.

    Raise ImportError if the module or name is not found.
    �.�N���r)�fromlist�)rJ�len�
__import__�join�ImportError�getattr�AttributeError)r
�parts�cursor�module_name�	attr_name�ret�parts       rE�resolve_namer_�s"��
�J�J�s�O�O�E�
��Z�Z�!�^�F�����.�K��b�	�I�
�1�*�*�		��S�X�X�k�2�2�i�[�I�I�I�C����	�	�	���{�{���a�K�F�����.�K��f�
�I��C�C�C�
	����	�1�*�*��f�g�g��$�$��	$��#�t�$�$�C�C���	$�	$�	$��d�#�#�#�	$�����Js�%A'�'*B�B�*B;�;C�	setup.cfgc	��tjdkrtj��}ntj��}t
j�|��s4tj	dt
j�
|��z���	|�|d���n%#t$r|�|��YnwxYwi}|�
��D]M}t��||<|�|��D]$\}}||||�dd��<�%�Nt#|dd��}t#|d	d
��}|r?t
j�
|��}tj�d|��	|r�d�t'|��D��}|D]�}	t)|	��}
	|
|���#t*$rt-jd
��Y�>t0$rptj��d}t-jd|	�d|�d���t-jt5j����tjd��Y��wxYwt:j�|��tA||��}d|d<d|d<tC|��tE|��}
|
r|
|d<tG|��}|r||d<t#|d	d��}|r!tIj%t'|����|rtj�&d��n'#|r tj�&d��wwxYw|S)a�Distutils2 to distutils1 compatibility util.

    This method uses an existing setup.cfg to generate a dictionary of
    keywords that can be used by distutils.core.setup(kwargs**).

    :param path:
        The setup.cfg path.
    :param script_args:
        List of commands setup.py was called with.
    :raises DistutilsFileError:
        When the setup.cfg file is not found.
    )�rzfile '%s' does not exist�utf-8��encoding�-�_r4�setup_hooksr*r+rc��g|]
}|dk�|��S)zpbr.hooks.setup_hookr<)rC�hooks  rErFzcfg_to_args.<locals>.<listcomp>�s.��3�3�3���1�1�1��1�1�1rGz)setup hook %s terminated the installationrOzsetup hook z raised exception: �
Tr;Fr8�ext_modules�entry_pointsr)'�sys�version_info�configparser�ConfigParser�SafeConfigParserrHrK�existsr�DistutilsFileError�abspath�read�	TypeError�sections�dict�itemsrB�has_get_option�insert�split_multiliner_�
SystemExitr�error�	Exception�exc_info�	traceback�
format_exc�exit�pbr�hooks�
setup_hook�setup_cfg_to_setup_kwargs�register_custom_compilers�get_extension_modules�get_entry_pointsr�set_extra_files�pop)rK�script_args�parser�config�section�k�valuerhr,rj�hook_fn�e�kwargsrlrm�files_extra_filess                rE�cfg_to_argsr��s�����6�!�!��*�,�,����.�0�0��
�7�>�>�$���?��'�(B�(*�����(=�(=�)>�?�?�	?�����D�7��+�+�+�+���������D�����������F��?�?�$�$�9�9���&�&��w�����W�-�-�	9�	9�H�A�u�38�F�7�O�A�I�I�c�3�/�/�0�0�	9�!���=�A�A�K� ���/�B�B�K�
�(��g�o�o�k�2�2�������;�'�'�'�-��	 �3�3�!0��!=�!=�3�3�3�K�$�
 �
 ��&�t�,�,��	 ��G�F�O�O�O�O��!�K�K�K��I�I�J�J�J�J�J� � � � �����q�)�A��I�I�#�t�t�Q�Q�Q�(�)�)�)��I�i�2�4�4�5�5�5��H�Q�K�K�K�K�K� ����	�	���V�$�$�$�*�6�;�?�?��*.��%�&�"��z��!�&�)�)�)�+�F�3�3���	0�$/�F�=�!�'��/�/���	2�%1�F�>�"�+�6�7�M�J�J���	L��'��8I�(J�(J�K�K�K��	��H�L�L��O�O�O����	��H�L�L��O�O�O�O�	�����MsP�B$�$C�C�.L2�G�L2�I%�*L2�,A6I%�"L2�$I%�%B+L2�2$Mc�
�i}i}tD�]�\}}|\}}t|||��}|s�|dkr�t||d��}|r�t|��}d}	|D]r}
tj|
d���}	|	|������dzz
}	|����Z#|���wxYw|	}|s��|tvrt|��}|tvrt|��}n�|tvrYi}t|��D]D}
|
�dd��\}}|���||���<�E|}n$|tvr|���d	vrd
}nd}|�r:|dvrd
�|D��}|dkr�g}d}|D]|}tj||��}|�d�����}|�d�����}|�||f���}||d<�n�|dkrd|i}�n�|dv�r6i}d
}d}|D�]}d|vr�|�dd��\}}	t'|�����d}||	���}	}||vr+||}|�t'|	����ntt'|	��x}||���<nM|rt+jd|z���|�t'|�������d}��|dkr!t/|�����}|}nS|dkrMi}t3j��}|D]3}t7|��}||��} ||| ���<�4|}|||<���d|vr�d}|d}!d|!vrJddlm}"d�|"� |"j!�����"dd��|!d<|!D]�}#g}$t|!|#��}%|%D]j}tj||��}|�d�����}&|�d��}|$�|&|f���k|$||#<��i}'|D]�}(||(D]}\}}|rK|(�d |�d!�})d"|vr>	tGj$d#|z��r|(})n&#tJ$rtMj'd$���wxYwn|(})|'�(|)g���|���~��|'�)dg��|d<|'|d%<|S)&z�Convert config options to kwargs.

    Processes the setup.cfg options and converts them to arguments accepted
    by setuptools' setup() function.
    r�description_filerRrcrdz

�=rO)�true�t�1�yes�yTF)r r9c�D�g|]}t�d|����S)z\1\2)�_VERSION_SPEC_RE�sub)rC�preds  rErFz-setup_cfg_to_setup_kwargs.<locals>.<listcomp>es8�� :� :� :�$(�!1� 4� 4�W�d� C� C� :� :� :rGr z6(?P<package>[^;]*);?(?P<env_marker>[^#]*?)(?:\s*#.*)?$�package�
env_markerr,)r.r0Nrz1malformed package_data first line %r (misses "=")r0r6�extrasz6(?P<package>[^:]*):?(?P<env_marker>[^#]*?)(?:\s*#.*)?$�test)�	packagingrk�;�:z:(�)�bdist_wheelz(%s)z�Marker evaluation failed, see the following error.  For more information see: http://docs.openstack.org/pbr/latest/user/using.html#environment-markers�extras_require)*�CFG_TO_PY_SETUP_ARGSr{r}�io�openrv�strip�close�
CSV_FIELDS�	split_csv�MULTI_FIELDS�
MAP_FIELDSrJ�BOOL_FIELDS�lower�re�match�group�appendrL�extendr�DistutilsOptionError�sortedrz�st_dist�Distributionr_�get_command_namer�r�rU�parse_requirements�TEST_REQUIREMENTS_FILESrB�
pkg_resources�evaluate_marker�SyntaxErrorrr�
setdefaultr�)*r�r�r��all_requirements�alias�argr��option�in_cfg_valuer��filenamer��
in_cfg_map�ir��vr �requirement_pattern�requirement�m�requirement_packager�r0�	firstline�prev�line�key�key_unquotedr6r�cls_name�cls�cmdr�r��extra�extra_requirements�requirements�extras_valuer��	req_group�
extras_keys*                                          rEr�r�/s����F���*�_#�_#�
��s�����%�f�g�v�>�>���	%��'9� 9� 9�)�&�'�;M�N�N�L��	
%�.�|�<�<���� ,�1�1�H�')�w�x�'�'J�'J�'J�$�1��!1�!6�!6�!8�!8�!>�!>�!@�!@�6�!I�I��(�.�.�0�0�0�0��(�.�.�0�0�0�0����$���	���*���$�\�2�2�L��,���*�<�8�8�L�L�
�J�
�
��J�$�\�2�2�
2�
2���w�w�s�A�����1�()���	�	�
�1�7�7�9�9�%�%�%�L�L�
�K�
�
��!�!�#�#�'E�E�E�#���$���8	(��;�;�;� :� :�,8� :� :� :���(�(�(�$&� �M�$�#/�O�O�K���!4�k�B�B�A�*+�'�'�)�*<�*<�*B�*B�*D�*D�'�!"����!6�!6�!<�!<�!>�!>�J�$�+�+�-@�*�,M�N�N�N�N�'7� ��$�$��
�%�%� "�L�1����6�6�6��
� �	���(�&�&�D��d�{�{�%)�Z�Z��Q�%7�%7�
��U�'2�3�9�9�;�;�'?�'?��'B��&2�E�K�K�M�M�U���*�,�,�$.�c�?�D� �K�K��E�(:�(:�;�;�;�;�=H��=O�=O�O�D�:�c�i�i�k�k�#:�#:�"�?�$�9�#�%)�*�+�+�+����K��
�
���$=�$=�>�>�>� %�I�I��,�&�&�"(�
�(8�(8�(:�(:�!;�!;�J�)����
�"�"����+�-�-�� ,�;�;�H�&�x�0�0�C��#�d�)�)�C�7:�H�S�1�1�3�3�4�4�'��"��s����6���E�	���!������%�%�%�%�%�%�!�Y�Y�y�'C�'C��1�(3�(3�4�4�4;�G�C��4E�4E�
�6�N��	9�	9�E�!#��*�6�%�=�9�9�L�+�
F�
F���H�0�+�>�>�� �w�w�y�1�1�7�7�9�9���W�W�\�2�2�
�"�)�)�<��*D�E�E�E�E�&8��U�#�#��N�%�J�J�	�'7�	�'B�	J�	J�#�K���
'�*3�)�)�Z�Z�Z�@�
�
!��3�3�
�(�8��*�9L�M�M�3�)2�J���&�����	�M���������	4�'�
��%�%�j�"�5�5�<�<�[�I�I�I�I�+	J�."0�!3�!3�B��!;�!;�F���-�F����Ms�/,B0�0C�S/�/ Tc�|�t|dd��}|r�t|��}|D]�}t|��}t|d��r|j}n|j}t|d��r|j}nd|z}|j}tj	j
}||j|f||<tj|tjd|z<��dSdS)z�Handle custom compilers.

    This has no real equivalent in distutils, where additional compilers could
    only be added programmatically, so we have to hack it in somehow.
    r4�	compilersr
rzcustom compiler %sz
distutils.N)
r{r}r_�hasattrr
�__name__r�
__module__�	distutils�	ccompiler�compiler_classrnr2)r�r��compilerr
�descr[�ccs       rEr�r��s����v�x��=�=�I��O�#�I�.�.�	�!�	O�	O�H�#�H�-�-�H��x��(�(�
)��}����(���x��/�/�
3��+���+�d�2��"�-�K��$�3�B�#�X�%6��=�B�t�H�7:�k�+�6N�C�K��{�2�3�3�1O�O�	O�	OrGc��d}g}|D�]w}d|vr|�dd��}n|�dd��}d�|D��}t|��dk�r#|ddk�ri}|D]�}t|||��}|s�t|��}|d	kr�g}|D]�}	|	�dd��}	t|	��dkr|	d���d
f}	n4|	d���|	d���f}	|�|	����|}|||<��|rGd|vr|d|d<|�t
j|�d��fi|������y|S)zHandle extension modules)
�sources�include_dirs�
define_macros�undef_macros�library_dirs�	libraries�runtime_library_dirs�
extra_objects�extra_compile_args�extra_link_args�export_symbols�	swig_opts�dependsr�rOr�c�6�g|]}|�����Sr<�r�)rC�labels  rErFz)get_extension_modules.<locals>.<listcomp>s ��4�4�4�E�%�+�+�-�-�4�4�4rG�rrr�Nr
)	rJrSr{r}r�r�r�	Extensionr�)
r��EXTENSION_FIELDSrlr��labels�ext_args�fieldr��macros�macros
          rEr�r�s���#���K��D�D���'�>�>��]�]�3��*�*�F�F��]�]�3��*�*�F�4�4�V�4�4�4����K�K�1���6�!�9��#;�#;��H�)�
(�
(��&�v�w��>�>�����'��.�.���O�+�+��F�!&�-�-�� %���C�� 3� 3���u�:�:��?�?�%*�1�X�^�^�%5�%5�t�$<�E�E�%*�1�X�^�^�%5�%5�u�Q�x�~�~�7G�7G�$H�E��
�
�e�,�,�,�,�"�E�"'������
D���)�)�'-�a�y�H�V�$��"�"�9�#6�x�|�|�F�7K�7K�$C�$C�9A�$C�$C�D�D�D���rGc�p�d|vriStd�|d���D����S)aProcess the [entry_points] section of setup.cfg.

    Processes setup.cfg to handle setuptools entry points. This is, of course,
    not a standard feature of distutils2/packaging, but as there is not
    currently a standard alternative in packaging, we provide support for them.
    rmc3�>K�|]\}}|t|��fV��dS�N)r})rCr�r�s   rE�	<genexpr>z#get_entry_points.<locals>.<genexpr>GsO����E�E�!�F�E����/�/�0�E�E�E�E�E�ErG)ryrz)r�s rEr�r�<s[���V�#�#��	��E�E�%+�N�%;�%A�%A�%C�%C�E�E�E�E�E�ErGc�>�||vr|||vr|||SdS)NFr<)r�r�r�s   rEr{r{Ks/���&���V�v�g��6�6��g��v�&�&��urGc�X�d�d�|�d��D��D��}|S)z3Special behaviour when we have a multi line optionsc�@�g|]}|�|�d���|��S)�#)�
startswith�rC�elements  rErFz#split_multiline.<locals>.<listcomp>UsB��
9�
9�
9���
9� '� 2� 2�3� 7� 7�
9�W�
9�
9�
9rGc3�>K�|]}|���V��dSrr�)rCr�s  rErz"split_multiline.<locals>.<genexpr>Vs*����
9�
9�t�d�j�j�l�l�
9�
9�
9�
9�
9�
9rGrk�rJ�r�s rEr}r}RsA��
9�
9�
9�
9�u�{�{�4�'8�'8�
9�
9�
9�
9�
9�
9�E��LrGc�X�d�d�|�d��D��D��}|S)z8Special behaviour when we have a comma separated optionsc��g|]}|�|��Sr<r<rs  rErFzsplit_csv.<locals>.<listcomp>^s,��
�
�
���
�W�
�
�
rGc3�>K�|]}|���V��dSrr�)rC�chunks  rErzsplit_csv.<locals>.<genexpr>_s*����
:�
:��e�k�k�m�m�
:�
:�
:�
:�
:�
:rG�,rrs rEr�r�[sA��
�
�
:�
:����S�)9�)9�
:�
:�
:�
�
�
�E��LrGc�$��eZdZdZd�fd�	Z�xZS)�DefaultGetDictzDLike defaultdict, but get() also sets and returns the default value.Nc���|�|���}tt|���||��Sr)�default_factory�superrr�)�selfr��default�	__class__s   �rE�getzDefaultGetDict.geths9����?��*�*�,�,�G��^�T�*�*�5�5�c�7�C�C�CrGr)r�r��__qualname__�__doc__r$�
__classcell__)r#s@rErresM�������N�N�D�D�D�D�D�D�D�D�D�DrGr)r`r<)r<),r&�multiprocessingrV�logging�collectionsrr�rHr�rIrnr��distutils.ccompilerr�rrr��
setuptoolsrr�rrqrpr�r�	pbr.hooks�compiler�r�r�r�r�r�rLr_r�r�r�r�r�r{r}r�rr<rGrE�<module>r/s���\��	��������	�	�	��D�	��������#�#�#�#�#�#�	�	�	�	�	�	�	�	�	�	�	�	�����
�
�
�
�������������������������&�&�&�&�&�&� � � � � � ��'�'�'�'�'���������������������������2�:�8�9�9��+��\#��&�
�3��
�
�������@\�\�\�\�~r�r�r�r�j O� O� O�F2�2�2�jE�E�E����������D�D�D�D�D�[�D�D�D�D�Ds�	���A�	A(�'A(