ó
@K7]c           @   s+  d  d l  Z  d d Z d „  Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ	 d e f d „  ƒ  YZ
 d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   iÿÿÿÿNt   -iF   c         C   s   t  j t  j |  ƒ ƒ S(   N(   t   textwrapt   fillt   dedent(   t   s(    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyt   <lambda>   t    t   CondaBuildExceptionc           B   s   e  Z RS(    (   t   __name__t
   __module__(    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR      s   t   YamlParsingErrorc           B   s   e  Z RS(    (   R   R	   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR
      s   t   UnableToParsec           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         O   s&   t  t |  ƒ j | | Ž  | |  _ d  S(   N(   t   superR   t   __init__t   original(   t   selfR   t   argst   kwargs(    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR      s    c         C   s"   d j  t |  j ƒ  |  j ƒ  g ƒ S(   Ns   
(   t   joint	   SEPARATORt
   error_bodyt   indented_exception(   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyt	   error_msg   s    	c         C   s   d j  d g ƒ S(   Ns   
s   Unable to parse meta.yaml file
(   R   (   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR      s    c         C   s+   t  |  j ƒ } d „  } d j | | ƒ ƒ S(   Nc         S   s   |  j  d d ƒ S(   Ns   
s   
--> (   t   replace(   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   "   R   s   Error Message:
--> {}

(   t   strR   t   format(   R   t   origt   indent(    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR       s    	(   R   R	   R   R   R   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR      s   			t   UnableToParseMissingJinja2c           B   s   e  Z d  „  Z RS(   c         C   s(   d j  t t |  ƒ j ƒ  t d ƒ g ƒ S(   Ns   
s„                   It appears you are missing jinja2.  Please install that
                package, then attempt to build.
            (   R   R   R   R   R   (   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   '   s    (   R   R	   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   &   s   t*   UnableToParseMissingSetuptoolsDependenciesc           B   s   e  Z RS(    (   R   R	   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   1   s   t   VerifyErrorc           B   s   e  Z d  „  Z RS(   c         G   sB   | |  _  | |  _ d | | f |  _ t t |  ƒ j |  j ƒ d  S(   Ns   %s failed to verify
%s(   t   errort   scriptt   msgR   R   R   (   R   R   R    R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   6   s    		(   R   R	   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   5   s   t   DependencyNeedsBuildingErrorc           B   s2   e  Z d d d d  „ Z d „  Z e d „  ƒ Z RS(   c         O   sÿ   | |  _  g  |  _ | r$ | |  _ n° | p- g  |  _ xž t | ƒ j ƒ  D]Š } | j d ƒ sa qF n  | j d ƒ j d ƒ d } |  j j | ƒ | j	 ƒ  j d ƒ d j d ƒ d j d ƒ d } |  j j | ƒ qF W|  j sû t
 d j t | ƒ ƒ ƒ ‚ n  d  S(	   Ns     - s    -> iÿÿÿÿt    i    t   =t   [s+   failed to parse packages from exception: {}(   t   subdirt
   matchspecst   packagesR   t
   splitlinest
   startswitht   lstript   splitt   appendt   stript   RuntimeErrorR   (   R   t   conda_exceptionR(   R&   R   R   t   linet   pkg(    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   >   s    		3		c         C   s   |  j  S(   N(   t   message(   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyt   __str__P   s    c         C   s   d j  |  j t |  j ƒ ƒ S(   Ns.   Unsatisfiable dependencies for platform {}: {}(   R   R&   t   setR'   (   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR3   S   s    N(   R   R	   t   NoneR   R4   t   propertyR3   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR"   =   s   	t   RecipeErrorc           B   s   e  Z RS(    (   R   R	   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR8   Y   s   t   BuildLockErrorc           B   s   e  Z d  Z RS(   s*    Raised when we failed to acquire a lock. (   R   R	   t   __doc__(    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR9   ]   s   t   OverLinkingErrorc           B   s   e  Z d  „  Z RS(   c         G   s3   | |  _  d | |  _ t t |  ƒ j |  j ƒ d  S(   Ns   overlinking check failed 
%s(   R   R!   R   R;   R   (   R   R   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   b   s    	(   R   R	   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR;   a   s   t   OverDependingErrorc           B   s   e  Z d  „  Z RS(   c         G   s3   | |  _  d | |  _ t t |  ƒ j |  j ƒ d  S(   Ns   overdepending check failed 
%s(   R   R!   R   R<   R   (   R   R   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   i   s    	(   R   R	   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR<   h   s   t   RunPathErrorc           B   s   e  Z d  „  Z RS(   c         G   s3   | |  _  d | |  _ t t |  ƒ j |  j ƒ d  S(   Ns   runpaths check failed 
%s(   R   R!   R   R=   R   (   R   R   R   (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR   p   s    	(   R   R	   R   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyR=   o   s   (   R   R   R   t	   ExceptionR   R
   R   R   R   R   R"   R8   R9   R/   R;   R<   R=   (    (    (    s5   lib/python2.7/site-packages/conda_build/exceptions.pyt   <module>   s   
	