U
    [eH                     @   sn   d dl Z d dlZd dlZd dlZd dlmZ d dlmZ ejd  dkrRe	Z
efZneZ
eefZdadd ZdS )    N)errors)util   Fc           
   	   C   s  t rdS da |sdS t|tr,tj|}ntjd}tj|sRtd| zt	
|| j}W nB tk
r   t d }td td||jj|f Y nX d}|rR| D ]\}}t| jd	| rt| jd	| | qt| j|rt| j|| qt| |r t| || q||kr:t| j|| qd
t| }	t|	 qzt| j|   W n( tk
r   | jjd |  Y nX t| jj t!t"f rt#| jj | j_ dS )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.
    NTz	setup.cfgz%The setup.cfg file %s does not exist.   zError parsingzError parsing %s: %s: %s)Zlong_description_content_typeZproject_urlsZprovides_extrasset_zUnknown distribution option: %s)$in_use
isinstancestring_typeospathabspathexistsr   DistutilsFileErrorr   Zcfg_to_argsscript_args	Exceptionsysexc_infologging	exceptionDistutilsSetupError	__class____name__itemshasattr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   J/var/www/html/services/stratfitenv/lib/python3.8/site-packages/pbr/core.pypbrE   sN    



r3   )r   r   r   r   	distutilsr   r3   r   version_infor(   r
   intr&   
basestringlongr   r1   r1   r1   r2   <module>.   s   