£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

Rec           @   sQ  d  Z  d d l Z d d l Z d d l Z d d l m Z m Z d d l m	 Z	 m
 Z d d l Z d d l m Z d d l Z d d l Z d d l m Z d d l Z d d l m Z d d	 l m Z d d
 l m Z e j e  Z d   Z d   Z d   Z d d  Z! i d d 6d d 6d d 6d d 6Z" d   Z# e d k rMe!   n  d S(   sH   Check a project and backend by attempting to build using PEP 517 hooks.
iN(   t   isfilet   join(   t   TomlDecodeErrort   load(   t   CalledProcessError(   t   mkdtempi   (   t   enable_colourful_output(   t   BuildEnvironment(   t   Pep517HookCallerc      	   C   s  t    } y | j |  t j d  Wn t k
 rK t j d  t SXy# |  j i   } t j d |  Wn% t k
 r t j d d t	 t SXy | j |  t j d  Wn t k
 r t j d  t SXt
   } t j d |  z y& |  j | i   } t j d	 |  Wn% t k
 r@t j d
 d t	 t SX| j d  sdt j d |  t St | |  } t |  rt j d |  n t j d |  t St j |  rt j d  n t j d  t SWd  t j |  Xt	 SWd  QXd  S(   Ns#   Installed static build dependenciess+   Failed to install static build dependenciess   Got build requires: %ss'   Failure in get_requires_for_build_sdistt   exc_infos$   Installed dynamic build dependenciess,   Failed to install dynamic build dependenciess   Trying to build sdist in %ss   build_sdist returned %rs   Failure in build_sdists   .tar.gzs*   Filename %s doesn't have .tar.gz extensions   Output file %s existss   Output file %s does not exists   Output file is a tar files   Output file is not a tar file(   R   t   pip_installt   logt   infoR   t   errort   Falset   get_requires_for_build_sdistt	   Exceptiont   TrueR   t   build_sdistt   endswitht   pjoinR    t   tarfilet
   is_tarfilet   shutilt   rmtree(   t   hookst   build_sys_requirest   envt   reqst   tdt   filenamet   path(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyt   check_build_sdist   sV    	
c      	   C   s  t    } y | j |  t j d  Wn t k
 rK t j d  t SXy# |  j i   } t j d |  Wn% t k
 r t j d d t	 t SXy | j |  t j d  Wn t k
 r t j d  t SXt
   } t j d |  z y& |  j | i   } t j d	 |  Wn% t k
 r@t j d
 d t	 t SX| j d  sdt j d |  t St | |  } t |  rt j d |  n t j d |  t St j |  rt j d  n t j d  t SWd  t j |  Xt	 SWd  QXd  S(   Ns#   Installed static build dependenciess+   Failed to install static build dependenciess   Got build requires: %ss'   Failure in get_requires_for_build_sdistR	   s$   Installed dynamic build dependenciess,   Failed to install dynamic build dependenciess   Trying to build wheel in %ss   build_wheel returned %rs   Failure in build_wheels   .whls'   Filename %s doesn't have .whl extensions   Output file %s existss   Output file %s does not exists   Output file is a zip files   Output file is not a zip file(   R   R
   R   R   R   R   R   t   get_requires_for_build_wheelR   R   R   t   build_wheelR   R   R    t   zipfilet
   is_zipfileR   R   (   R   R   R   R   R   R   R   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyt   check_build_wheelO   sT    	c         C   s)  t  |  d  } t |  r+ t j d  n t j d  t Sy_ t |   } t |  } Wd  QX| d } | d } | d } | j d  } t j d  Wn+ t	 t
 f k
 r t j d	 d
 t t SXt |  | |  } t | |  }	 t | |  }
 |	 st j d  n  |
 s%t j d  n  |	 S(   Ns   pyproject.tomls   Found pyproject.tomls   Missing pyproject.tomls   build-systemt   requiress   build-backends   backend-paths   Loaded pyproject.tomls   Invalid pyproject.tomlR	   s%   Sdist checks failed; scroll up to sees   Wheel checks failed(   R   R    R   R   R   R   t   opent	   toml_loadt   getR   t   KeyErrorR   R   R    R%   t   warning(   t
   source_dirt	   pyprojectt   ft   pyproject_datat   buildsysR&   t   backendt   backend_pathR   t   sdist_okt   wheel_ok(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyt   check   s0    


c         C   sz   t  j   } | j d d d | j |   } t   t | j  } | r[ t d d  GHn t d d  GHt j	 d  d  S(	   NR,   t   helps%   A directory containing pyproject.tomls   Checks passedt   greens   Checks failedt   redi   (
   t   argparset   ArgumentParsert   add_argumentt
   parse_argsR   R5   R,   t   ansit   syst   exit(   t   argvt   apt   argst   ok(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyt   main   s    s   [0mt   resets   [1mt   bolds   [31mR8   s   [32mR7   c         C   sF   t  j d k r8 t j j   r8 t | t |   t d St |   Sd  S(   Nt   ntRE   (   t   ost   nameR>   t   stdoutt   isattyt
   ansi_codest   str(   t   st   attr(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyR=      s    t   __main__($   t   __doc__R9   t   loggingRH   t   os.pathR    R   R   t   pip._vendor.tomlR   R   R(   R   t
   subprocessR   R>   R   t   tempfileR   R#   t   colorlogR   t   envbuildR   t   wrappersR   t	   getLoggert   __name__R   R    R%   R5   t   NoneRD   RL   R=   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/pep517/check.pyt   <module>   s6   	9	8	"
	