HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/alt/python38/lib/python3.8/site-packages/pbr/__pycache__/core.cpython-38.pyc
U

�Va�@s�ddlmZddlmZddlZddlZddlZddlZddlmZddl	m
Z
ejZdd�Z
dd	�Zejdd
kr�eZefZneZeefZdd�Z	dS)
�)�core)�errorsN)�dist)�utilcCst�tj�t_dS�N)r�_get_unpatchedr�Distribution�r	r	�9/opt/alt/python38/lib/python3.8/site-packages/pbr/core.py�_monkeypatch_distribution=srcCs
tt_dSr)�_saved_core_distributionrrr	r	r	r
�!_restore_distribution_monkeypatchAsr
�c		s��z�t�|sW��rdSt|t�r0tj�|�}ntj�d�}tj�|�sVt�	d|��zt
�|�}WnBtk
r�t
��d}t�d�t�d||jj|f��YnX|�r4|��D]|\}}t|jd|�r�t|jd|�|�q�t|j|��rt|j||�q�t||��rt|||�q�dt|�}t�|�q�tj�|�t|jjt t!f��rft"|jj�|j_d	d
g�t
�#�fdd��|_$W5t�XdS)
a9Implements 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�set_zUnknown distribution option: %sz
pre_hook.*zpost_hook.*cs
t���Sr)r�
IgnoreDictr	��ignorer	r
�<lambda>��zpbr.<locals>.<lambda>)%r
r�
isinstance�string_type�os�path�abspath�existsr�DistutilsFileErrorr�cfg_to_args�	Exception�sys�exc_info�logging�	exception�DistutilsSetupError�	__class__�__name__�items�hasattr�metadata�getattr�setattr�repr�warnings�warnrr�finalize_options�version�
integer_types�float�str�DefaultGetDict�command_options)	r�attr�valuer�attrs�e�key�val�msgr	rr
�pbrMsJ

�
�

�
r<)�	distutilsrrr!rrr,�
setuptoolsrr<rrrrr
�version_infor2r�intr0�
basestring�longr	r	r	r
�<module>.s