Your IP : 216.73.216.196


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pbr/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pbr/core.pyc

�
�Vc@s�ddlmZddlmZddlZddlZddlZddlZddlmZddl	m
Z
ejZd�Z
d�Zejdd	kr�eZefZneZeefZd
�Z	dS(i����(tcore(terrorsN(tdist(tutilcCstjtj�t_dS(N(Rt_get_unpatchedRtDistribution(((s9/opt/alt/python27/lib/python2.7/site-packages/pbr/core.pyt_monkeypatch_distribution=scCs
tt_dS(N(t_saved_core_distributionRR(((s9/opt/alt/python27/lib/python2.7/site-packages/pbr/core.pyt!_restore_distribution_monkeypatchAsiic	szt�|sdSt|t�r8tjj|�}ntjjd�}tjj|�srtjd|��nyt	j
|�}WnPtk
r�tj
�d}tjd�tjd||jj|f��nX|r�x�|j�D]�\}}t|jd|�r*t|jd|�|�q�t|j|�rRt|j||�q�t||�rtt|||�q�dt|�}tj|�q�Wntjj|�t|jjtt f�r�t!|jj�|j_nd	d
g�t	j"�fd��|_#Wdt$�XdS(s9Implements 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.
    Ns	setup.cfgs%The setup.cfg file %s does not exist.is
Error parsingsError parsing %s: %s: %stset_sUnknown distribution option: %ss
pre_hook.*spost_hook.*cs
tj��S(N(Rt
IgnoreDict((tignore(s9/opt/alt/python27/lib/python2.7/site-packages/pbr/core.pyt<lambda>�t(%Rt
isinstancetstring_typetostpathtabspathtexistsRtDistutilsFileErrorRtcfg_to_argst	Exceptiontsystexc_infotloggingt	exceptiontDistutilsSetupErrort	__class__t__name__titemsthasattrtmetadatatgetattrtsetattrtreprtwarningstwarnRRtfinalize_optionstversiont
integer_typestfloattstrtDefaultGetDicttcommand_optionsR(	RtattrtvalueRtattrstetkeytvaltmsg((Rs9/opt/alt/python27/lib/python2.7/site-packages/pbr/core.pytpbrMsD

 (t	distutilsRRRRRR$t
setuptoolsRR4RRRRRtversion_infoR*RtintR(t
basestringtlong(((s9/opt/alt/python27/lib/python2.7/site-packages/pbr/core.pyt<module>.s