Viewing File: /opt/alt/python38/lib/python3.8/site-packages/pbr/__pycache__/core.cpython-38.opt-1.pyc
U
Va @ s d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dl m
Z
ejZdd Z
dd Zejd d
kreZefZneZeefZdd Z dS )
)core)errorsN)dist)utilc C s t tjt_d S N)r Z_get_unpatchedr Distribution r r /core.py_monkeypatch_distribution= s r
c C s
t t_d S r )_saved_core_distributionr r r r r r !_restore_distribution_monkeypatchA s r c s zt |sW rdS t|tr0tj|}ntjd}tj|sVt d| zt
|}W nB tk
r t
d }td td||jj|f Y nX |r4| D ]|\}}t| jd| rt| jd| | qt| j|rt| j|| qt| |rt| || qdt| }t| qtj| t| jjt t!f rft"| jj| j_d d
g t
# fdd| _$W 5 t X dS )
a9 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: %sZset_zUnknown distribution option: %sz
pre_hook.*zpost_hook.*c s
t S r )r Z
IgnoreDictr ignorer r <lambda>