£Á°è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           @   s  d  Z  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	 d d l
 m Z d d l m Z d d l m Z m Z m Z d d l m Z d d	 l m Z d d
 l m Z d d l m Z d d l m Z d d l m Z e rtd d l m Z m  Z  m! Z! m" Z" m# Z# m$ Z$ d d l% m& Z& d d l' m( Z( e  e( g e) f Z* e$ e" e( e" e( f Z+ n  e j, e-  Z. e j/ d e j0  Z1 d   Z2 d   Z3 d   Z4 d   Z5 d   Z6 d   Z7 d   Z8 d   Z9 d   Z: d   Z; d   Z< d S(   s;   Orchestrator for building wheels from InstallRequirements.
iN(   t   Link(   t   build_wheel_pep517(   t   build_wheel_legacy(   t
   indent_log(   t
   ensure_dirt	   hash_filet   is_wheel_installed(   t   make_setuptools_clean_args(   t   call_subprocess(   t   TempDirectory(   t   MYPY_CHECK_RUNNING(   t   path_to_url(   t   vcs(   t   Anyt   Callablet   Iterablet   Listt   Optionalt   Tuple(   t
   WheelCache(   t   InstallRequirements   ([a-z0-9_.]+)-([a-z0-9_.!+-]+)c         C   s   t  t j |    S(   sj   Determine whether the string looks like an egg_info.

    :param s: The string to parse. E.g. foo-2.1
    (   t   boolt   _egg_info_ret   search(   t   s(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   _contains_egg_info%   s    c         C   s   |  j  r t S|  j r6 | r2 t j d |  j  n  t S| r@ t S|  j sS |  j rW t S| |   sz t j d |  j  t S|  j	 r t
   r t j d |  j  t St S(   sB   Return whether an InstallRequirement should be built into a wheel.s(   Skipping %s, due to already being wheel.sC   Skipping wheel build for %s, due to binaries being disabled for it.sO   Using legacy 'setup.py install' for %s, since package 'wheel' is not installed.(   t
   constraintt   Falset   is_wheelt   loggert   infot   namet   Truet   editablet
   source_dirt
   use_pep517R   (   t   reqt
   need_wheelt   check_binary_allowed(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   _should_build.   s,    		

c         C   s   t  |  d t d t S(   NR%   R&   (   R'   R    t   _always_true(   R$   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   should_build_for_wheel_command[   s    c         C   s   t  |  d t d | S(   NR%   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/_internal/wheel_builder.pyt    should_build_for_install_commandd   s    c         C   s   |  j  s |  j r t S|  j r |  j j r |  j  s< t  |  j sK t  t j |  j j  } | sl t  | j	 |  j j
 |  j  r t St S|  j s t  |  j j   \ } } t |  r t St S(   s   
    Return whether a built InstallRequirement can be stored in the persistent
    wheel cache, assuming the wheel cache is available, and _should_build()
    has determined a wheel needs to be built.
    (   R!   R"   R   t   linkt   is_vcst   AssertionErrorR   t   get_backend_for_schemet   schemet   is_immutable_rev_checkoutt   urlR    t   splitextR   (   R$   t   vcs_backendt   baset   ext(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   _should_cachen   s    	c         C   s[   t  | j  } |  j s t  | rE t |   rE | j |  j  } n | j |  j  } | S(   sd   Return the persistent or temporary cache directory where the built
    wheel need to be stored.
    (   R   t	   cache_dirR+   R-   R6   t   get_path_for_linkt   get_ephem_path_for_link(   R$   t   wheel_cachet   cache_availableR7   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   _get_cache_dir   s    c         C   s   t  S(   N(   R    (   t   _(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyR(      s    c      	   C   sb   y t  |  Wn* t k
 r: } t j d |  j |  d SX|  j  t |  | | |  SWd QXd S(   sa   Build one wheel.

    :return: The filename of the built wheel, or None if the build failed.
    s    Building wheel for %s failed: %sN(   R   t   OSErrorR   t   warningR   t   Nonet	   build_envt   _build_one_inside_env(   R$   t
   output_dirt   build_optionst   global_optionst   e(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt
   _build_one   s    
c         C   s  t  d d  x} |  j s! t  |  j ro |  j s9 t  t d |  j d |  j d |  j d | d | j  } n9 t d |  j d |  j	 d	 |  j
 d
 | d | d | j  } | d  k	 rft j j |  } t j j | |  } y\ t |  \ } }	 t j | |  t j d |  j | |	 | j    t j d |  | SWqft k
 rb}
 t j d |  j |
  qfXn  |  j st |  |  n  d  SWd  QXd  S(   Nt   kindt   wheelR   t   backendt   metadata_directoryRD   t   tempdt   setup_py_pathR"   RE   s3   Created wheel for %s: filename=%s size=%d sha256=%ss   Stored in directory: %ss    Building wheel for %s failed: %s(   R	   R   R-   R#   RK   R   t   pep517_backendt   pathR   RM   t   unpacked_source_directoryR@   t   ost   basenamet   joinR   t   shutilt   moveR   R   t	   hexdigestt	   ExceptionR?   t   _clean_one_legacy(   R$   RC   RD   RE   t   temp_dirt
   wheel_patht
   wheel_namet	   dest_patht
   wheel_hasht   lengthRF   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyRB      sF    									c         C   so   t  |  j d | } t j d |  j  y t | d |  j t SWn% t k
 rj t j	 d |  j  t
 SXd  S(   NRE   s   Running setup.py clean for %st   cwds    Failed cleaning build dir for %s(   R   RM   R   R   R   R   R"   R    RW   t   errorR   (   R$   RE   t
   clean_args(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyRX      s    		c   	   
   C   sX  |  s g  g  f St  j d d j d   |  D   t    g  g  } } x |  D] } t | |  } t | | | |  } | r t t |   | _ | j j	 | _
 | j j s t  | j |  qQ | j |  qQ WWd QX| rt  j d d j g  | D] } | j ^ q   n  | rNt  j d d j g  | D] } | j ^ q2  n  | | f S(   s   Build wheels.

    :return: The list of InstallRequirement that succeeded to build and
        the list of InstallRequirement that failed to build.
    s*   Building wheels for collected packages: %ss   , c         s   s   |  ] } | j  Vq d  S(   N(   R   (   t   .0R$   (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pys	   <genexpr>  s    Ns   Successfully built %st    s   Failed to build %s(   R   R   RS   R   R<   RG   R    R   R+   t	   file_patht   local_file_pathR   R-   t   appendR   (	   t   requirementsR:   RD   RE   t   build_successest   build_failuresR$   R7   t
   wheel_file(    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   build  s4    

))(=   t   __doc__t   loggingt   os.pathRQ   t   reRT   t   pip._internal.models.linkR    t$   pip._internal.operations.build.wheelR   t+   pip._internal.operations.build.wheel_legacyR   t   pip._internal.utils.loggingR   t   pip._internal.utils.miscR   R   R   t$   pip._internal.utils.setuptools_buildR   t   pip._internal.utils.subprocessR   t   pip._internal.utils.temp_dirR	   t   pip._internal.utils.typingR
   t   pip._internal.utils.urlsR   t   pip._internal.vcsR   t   typingR   R   R   R   R   R   t   pip._internal.cacheR   t   pip._internal.req.req_installR   R   t   BinaryAllowedPredicatet   BuildResultt	   getLoggert   __name__R   t   compilet
   IGNORECASER   R   R'   R)   R*   R6   R<   R(   RG   RB   RX   Rk   (    (    (    s   /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_internal/wheel_builder.pyt   <module>   sD   .			-			
	!				3	