£Á°è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  d l  Z  d  d l m Z d  d l Z d  d l m Z m Z m Z d  d l	 Z	 d  d l
 m Z m Z m Z d  d l Z d  d l m Z d d l m Z y d  d l j Z d   Z Wn  e k
 r e d	    Z n Xe d
    Z d e f d     YZ d e f d     YZ d e f d     YZ d e f d     YZ d d d  Z d d d  Z d   Z  d e! f d     YZ" d e  j# f d     YZ$ d S(   iN(   t   contextmanager(   t   dirnamet   abspatht   join(   t
   check_callt   check_outputt   STDOUT(   t   mkdtempi   (   t   compatc           C   s   t  j t d  S(   Ns   _in_process.py(   t	   resourcest   patht   __package__(    (    (    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/wrappers.pyt   _in_proc_script_path   s    c           c   s   t  t t t   d  Vd  S(   Ns   _in_process.py(   t   pjoinR   R   t   __file__(    (    (    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/wrappers.pyR      s    c          c   s'   t    }  z	 |  VWd  t j |   Xd  S(   N(   R   t   shutilt   rmtree(   t   td(    (    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/wrappers.pyt   tempdir   s    		t   BackendUnavailablec           B   s   e  Z d  Z d   Z RS(   sE   Will be raised if the backend cannot be imported in the hook process.c         C   s   | |  _  d  S(   N(   t	   traceback(   t   selfR   (    (    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/wrappers.pyt   __init__#   s    (   t   __name__t
   __module__t   __doc__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/wrappers.pyR   !   s   t   BackendInvalidc           B   s   e  Z d  Z d   Z RS(   s)   Will be raised if the backend is invalid.c         C   s   | |  _  | |  _ | |  _ d  S(   N(   t   backend_namet   backend_patht   message(   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/wrappers.pyR   )   s    		(   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/wrappers.pyR   '   s   t   HookMissingc           B   s   e  Z d  Z d   Z RS(   s    Will be raised on missing hooks.c         C   s#   t  t |   j |  | |  _ d  S(   N(   t   superR   R   t	   hook_name(   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/wrappers.pyR   1   s    (   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/wrappers.pyR   /   s   t   UnsupportedOperationc           B   s   e  Z d  Z d   Z RS(   sD   May be raised by build_sdist if the backend indicates that it can't.c         C   s   | |  _  d  S(   N(   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/wrappers.pyR   8   s    (   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/wrappers.pyR!   6   s   c         C   s?   t  j j   } | r% | j |  n  t |  d | d | d S(   s5   The default method of calling the wrapper subprocess.t   cwdt   envN(   t   ost   environt   copyt   updateR   (   t   cmdR"   t   extra_environR#   (    (    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/wrappers.pyt   default_subprocess_runner<   s    c         C   sE   t  j j   } | r% | j |  n  t |  d | d | d t d S(   sD   A method of calling the wrapper subprocess while suppressing output.R"   R#   t   stderrN(   R$   R%   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/wrappers.pyt   quiet_subprocess_runnerE   s    c         C   s   t  j j |  r! t d   n  t  j j |   } t  j j t  j j | |   } t  j j |  } t  j j |  } t  j j | | g  | k r t d   n  | S(   s   Normalise and check a backend path.

    Ensure that the requested backend path is specified as a relative path,
    and resolves to a location under the given source tree.

    Return an absolute version of the requested path.
    s   paths must be relatives    paths must be inside source tree(	   R$   R
   t   isabst
   ValueErrorR   t   normpathR   t   normcaset   commonprefix(   t   source_treet	   requestedt
   abs_sourcet   abs_requestedt   norm_sourcet   norm_requested(    (    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/wrappers.pyt   norm_and_checkN   s    !t   Pep517HookCallerc           B   sw   e  Z d  Z d	 d	 d  Z e d    Z d	 d  Z d	 e d  Z	 d	 d	 d  Z
 d	 d  Z d	 d  Z d   Z RS(
   se  A wrapper around a source directory to be built with a PEP 517 backend.

    source_dir : The path to the source directory, containing pyproject.toml.
    build_backend : The build backend spec, as per PEP 517, from
        pyproject.toml.
    backend_path : The backend path, as per PEP 517, from pyproject.toml.
    runner : A callable that invokes the wrapper subprocess.

    The 'runner', if provided, must expect the following:
        cmd : a list of strings representing the command and arguments to
            execute, as would be passed to e.g. 'subprocess.check_call'.
        cwd : a string representing the working directory that must be
            used for the subprocess. Corresponds to the provided source_dir.
        extra_environ : a dict mapping environment variable names to values
            which must be set for the subprocess execution.
    c         C   sq   | d  k r t } n  t |  |  _ | |  _ | r[ g  | D] } t |  j |  ^ q: } n  | |  _ | |  _ d  S(   N(   t   NoneR*   R   t
   source_dirt   build_backendR8   R   t   _subprocess_runner(   R   R;   R<   R   t   runnert   p(    (    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/wrappers.pyR   w   s    		(	c         c   s,   |  j  } | |  _  z	 d VWd | |  _  Xd S(   s\   A context manager for temporarily overriding the default subprocess
        runner.
        N(   R=   (   R   R>   t   prev(    (    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/wrappers.pyt   subprocess_runner   s
    			c         C   s   |  j  d i | d 6 S(   sG  Identify packages required for building a wheel

        Returns a list of dependency specifications, e.g.:
            ["wheel >= 0.25", "setuptools"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        t   get_requires_for_build_wheelt   config_settings(   t
   _call_hook(   R   RC   (    (    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/wrappers.pyRB      s    
c         C   s+   |  j  d i t |  d 6| d 6| d 6 S(   sq  Prepare a *.dist-info folder with metadata for this project.

        Returns the name of the newly created folder.

        If the build backend defines a hook with this name, it will be called
        in a subprocess. If not, the backend will be asked to build a wheel,
        and the dist-info extracted from that (unless _allow_fallback is
        False).
        t    prepare_metadata_for_build_wheelt   metadata_directoryRC   t   _allow_fallback(   RD   R   (   R   RF   RC   RG   (    (    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/wrappers.pyRE      s    c         C   sF   | d k	 r t |  } n  |  j d i t |  d 6| d 6| d 6 S(   sv  Build a wheel from this project.

        Returns the name of the newly created file.

        In general, this will call the 'build_wheel' hook in the backend.
        However, if that was previously called by
        'prepare_metadata_for_build_wheel', and the same metadata_directory is
        used, the previously built wheel will be copied to wheel_directory.
        t   build_wheelt   wheel_directoryRC   RF   N(   R:   R   RD   (   R   RI   RC   RF   (    (    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/wrappers.pyRH      s    c         C   s   |  j  d i | d 6 S(   s<  Identify packages required for building a wheel

        Returns a list of dependency specifications, e.g.:
            ["setuptools >= 26"]

        This does not include requirements specified in pyproject.toml.
        It returns the result of calling the equivalently named hook in a
        subprocess.
        t   get_requires_for_build_sdistRC   (   RD   (   R   RC   (    (    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/wrappers.pyRJ      s    
c         C   s$   |  j  d i t |  d 6| d 6 S(   s   Build an sdist from this project.

        Returns the name of the newly created file.

        This calls the 'build_sdist' backend hook in a subprocess.
        t   build_sdistt   sdist_directoryRC   (   RD   R   (   R   RL   RC   (    (    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/wrappers.pyRK      s    c   
      C   s  t  j d d k r( |  j j d  } n	 |  j } i | d 6} |  j r t j j |  j  } t  j d d k r | j t  j    } n  | | d <n  t	   G} i | d 6} t
 j | t | d  d d t   8 } |  j t  j t |  | | g d	 |  j d
 | Wd  QXt
 j t | d   }	 |	 j d  rQt |	 j d d    n  |	 j d  r{t |	 j d d    n  |	 j d  rt d |  j d |  j d |	 j d d    n  |	 j d  rt |   n  |	 d SWd  QXd  S(   Ni    i   t   ASCIIt   PEP517_BUILD_BACKENDt   PEP517_BACKEND_PATHt   kwargss
   input.jsont   indentR"   R)   s   output.jsont   unsupportedR   t    t
   no_backendt   backend_invalidR   R   R   t   backend_errort   hook_missingt
   return_val(   t   syst   version_infoR<   t   encodeR   R$   t   pathsepR   t   getfilesystemencodingR   R   t
   write_jsonR   R   R=   t
   executablet   strR;   t	   read_jsont   getR!   R   R   R   (
   R   R    RP   R<   R)   R   R   t
   hook_inputt   scriptt   data(    (    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/wrappers.pyRD      s>    					N(   R   R   R   R:   R   R    RA   RB   t   TrueRE   RH   RJ   RK   RD   (    (    (    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/wrappers.pyR9   f   s   t   LoggerWrapperc           B   sA   e  Z d  Z d   Z d   Z e d    Z d   Z d   Z RS(   sd   
    Read messages from a pipe and redirect them
    to a logger (see python's logging module).
    c         C   sf   t  j j |   t |  _ | |  _ | |  _ t j   \ |  _	 |  _
 t j |  j	  |  _ |  j   d  S(   N(   t	   threadingt   ThreadR   Rf   t   daemont   loggert   levelR$   t   pipet   fd_readt   fd_writet   fdopent   readert   start(   R   Rk   Rl   (    (    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/wrappers.pyR     s    			c         C   s   |  j  S(   N(   Ro   (   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/wrappers.pyt   fileno(  s    c         C   s   |  j  t j  r |  d  S|  S(   Ni(   t   endswithR$   t   linesep(   t   msg(    (    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/wrappers.pyt   remove_newline+  s    c         C   s.   x' |  j  D] } |  j |  j |   q
 Wd  S(   N(   Rq   t   _writeRw   (   R   t   line(    (    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/wrappers.pyt   run/  s    c         C   s   |  j  j |  j |  d  S(   N(   Rk   t   logRl   (   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/wrappers.pyRx   3  s    (	   R   R   R   R   Rs   t   staticmethodRw   Rz   Rx   (    (    (    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/wrappers.pyRg     s   			(%   Rh   t
   contextlibR    R$   t   os.pathR   R   R   R   R   t
   subprocessR   R   R   RY   t   tempfileR   RS   R   t   importlib.resourcesR	   R   t   ImportErrorR   t	   ExceptionR   R   R   R!   R:   R*   R,   R8   t   objectR9   Ri   Rg   (    (    (    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/wrappers.pyt   <module>   s.   				