Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pbr/__pycache__/core.cpython-39.pyc
Ðазад
a i�h� � @ sj d dl Z d dlZd dlZd dlZd dlmZ d dlmZ ejd dkrRe Z efZne Z eefZdd� ZdS )� N)�errors)�util� c C s� t | d�rdS d| _|sdS t|t�r4tj�|�}ntj�d�}tj�|�sZt� d| ��zt �|| j�}W n@ t y� t�� d }t�d� t�d||jj|f ��Y n0 d }|�rX|�� D ]�\}}t | jd | �r�t| jd | �|� q�t | j|��rt| j||� q�t | |��r&t| ||� q�||v �r@t| j||� q�dt|� } t�| � q�zt| j| ��� W n& t�y� | jjd �| � Y n0 t| jj t!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. �_pbr_initializedNTz setup.cfgz%The setup.cfg file %s does not exist.� z Error parsingzError parsing %s: %s: %s)Zlong_description_content_typeZproject_urlsZprovides_extras�set_zUnknown distribution option: %s���)$�hasattrr � isinstance�string_type�os�path�abspath�existsr �DistutilsFileErrorr Zcfg_to_args�script_args� Exception�sys�exc_info�logging� exception�DistutilsSetupError� __class__�__name__�items�metadata�getattr�setattr�repr�warnings�warn�super�finalize_options� TypeError� __bases__�version� integer_types�float�str) �dist�attr�valuer �attrs�eZ_DISTUTILS_UNSUPPORTED_METADATA�key�val�msg� r1 �x/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pbr/core.py�pbr@ sN � � r3 )r r r r � distutilsr r3 r �version_infor( r �intr&