Your IP : 216.73.216.224


Current Path : /lib/python3/dist-packages/pbr/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/pbr/__pycache__/core.cpython-38.pyc

U

jP�^9�@sjddlZddlZddlZddlZddlmZddlmZejddkrRe	Z
efZne
Z
eefZdd�ZdS)�N)�errors)�util�c
	Cs�|sdSt|t�r tj�|�}ntj�d�}tj�|�sFt�d|��zt�	||j
�}WnBtk
r�t�
�d}t�d�t�d||jj|f��YnXd}|�rD|��D]�\}}t|jd|�r�t|jd|�|�q�t|j|�r�t|j||�q�t||��rt|||�q�||k�r,t|j||�q�d	t|�}	t�|	�q�zt|j|���Wn(tk
�r�|jjd
�|�YnXt|jjt t!f��r�t"|jj�|j_dS)a=Implements the actual pbr setup() keyword.

    When used, this should be the only keyword in your setup() aside from
    `setup_requires`.

    If given as a string, the value of pbr is assumed to be the relative path
    to the setup.cfg file to use.  Otherwise, if it evaluates to true, it
    simply assumes that pbr should be used, and the default 'setup.cfg' is
    used.

    This works by reading the setup.cfg file, parsing out the supported
    metadata and command options, and using them to rebuild the
    `DistributionMetadata` object and set the newly added command options.

    The reason for doing things this way is that a custom `Distribution` class
    will not play nicely with setup_requires; however, this implementation may
    not work well with distributions that do use a `Distribution` subclass.
    Nz	setup.cfgz%The setup.cfg file %s does not exist.�z
Error parsingzError parsing %s: %s: %s)Zlong_description_content_typeZproject_urlsZprovides_extrasZset_zUnknown distribution option: %s���)#�
isinstance�string_type�os�path�abspath�existsrZDistutilsFileErrorrZcfg_to_argsZscript_args�	Exception�sys�exc_info�loggingZ	exceptionZDistutilsSetupError�	__class__�__name__�items�hasattrZmetadata�getattr�setattr�repr�warnings�warn�superZfinalize_options�	TypeError�	__bases__�version�
integer_types�float�str)
Zdist�attr�valuer
Zattrs�eZ_DISTUTILS_UNSUPPORTED_METADATA�key�val�msg�r'�*/usr/lib/python3/dist-packages/pbr/core.py�pbr@sH
�
�

r))rr	rrZ	distutilsrr)r�version_infor r�intrZ
basestringZlongr'r'r'r(�<module>.s