B
    9a)                 @   s  d Z ddlmZ ddlZddlZddlZddlZddlZddlZ	ddl
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 dd	lmZ dd
lmZ ddlmZmZ ddl m!Z!m"Z"m#Z# ddl$m%Z%m&Z& ddl'm(Z( ddl)m*Z* ddl+m,Z,m-Z-m.Z.m/Z/ ddl0m1Z1 ddl2m3Z3 ddl4m5Z5 ddl6m7Z7 e5rddl8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZC ddlDmEZE ddlFmGZG ddlmHZH ddlImJZJmKZK ddlLmMZM ddlNmOZO ddlPmQZQ e>eRdf ZSdZTeUeVZWdd  ZXdJd"d#ZYd$d% ZZd&d' Z[d(d) Z\e
]d*e
j^Z_d+d, Z`d-d. Zad/d0 Zbd1d2 Zcd3d4 ZddKd7d8Zed9d: Zfd;d< ZgG d=d> d>ehZie
]d?e
jjfd@dAZkdBdC ZldDdE ZmdFdG ZnG dHdI dIehZodS )LzH
Support for installing and building the "wheel" binary package format.
    )absolute_importN)urlsafe_b64encode)Parser)pkg_resources)ScriptMaker)canonicalize_name)StringIO)
pep425tags)path_to_url
unpack_url)InstallationErrorInvalidWheelFilenameUnsupportedWheel)PIP_DELETE_MARKER_FILENAMEdistutils_scheme)Link)
indent_log)call_subprocesscaptured_stdout
ensure_dirread_chunks)SETUPTOOLS_SHIM)TempDirectory)MYPY_CHECK_RUNNING)open_spinner)DictListOptionalSequenceMappingTupleIOTextAnyUnionIterable)Requirement)InstallRequirement)
PipSession)FormatControlPackageFinder)RequirementPreparer)
WheelCache)	Pep425Tag.)   r   c             C   s   t j| |t jjdS )N/)ospathrelpathreplacesep)srcp r7   4/tmp/pip-install-u9kq1d1e/pip/pip/_internal/wheel.pynormpathC   s    r9      c          	   C   sv   t  }d}t| d2}x*t||dD ]}|t|7 }|| q&W W dQ R X dt| d	d }|t
|fS )z5Return (hash, length) for path using hashlib.sha256()r   rb)sizeNzsha256=latin1=)hashlibsha256openr   lenupdater   digestdecoderstripstr)r1   	blocksizehlengthfblockrD   r7   r7   r8   rehashG   s    
rM   c             C   s6   t jd dk ri }d}nddi}d}t| || f|S )Nr      bnewline )sysversion_inforA   )namemodenlbinr7   r7   r8   open_for_csvW   s    rX   c             C   s   |  d}||d< d|S )zBReplace the Python tag in a wheel file name with a new value.
    -)splitjoin)	wheelnamenew_tagpartsr7   r7   r8   replace_python_tagb   s    
r`   c          	   C   s   t j| rt| dH}| }|ds.dS tjt	 }d| t j
d }| }W dQ R X t| d}|| || W dQ R X dS dS )	zLReplace #!python with #!/path/to/python
    Return True if file was changed.r;   s   #!pythonFs   #!asciiNwbT)r0   r1   isfilerA   readline
startswithrR   
executableencodegetfilesystemencodinglinesepreadwrite)r1   script	firstlineexenamerestr7   r7   r8   
fix_scriptk   s    

rp   zX^(?P<namever>(?P<name>.+?)(-(?P<ver>.+?))?)
                                \.dist-info$c          
   C   s   |  dd}xtt|D ]f}t|}|r|d|krttj||d,}x$|D ]}|	 
 }|dkrTdS qTW W dQ R X qW dS )	zP
    Return True if the extracted wheel in wheeldir should go into purelib.
    rY   _rT   WHEELzroot-is-purelib: trueTNF)r3   r0   listdirdist_info_rematchgrouprA   r1   r\   lowerrF   )rT   wheeldirname_foldeditemru   wheelliner7   r7   r8   root_is_purelib   s    

r}   c          	      s   t j| si i fS t| <}t }x$|D ]}||  |d q*W |d W d Q R X tj	
|}|di }|di }dd  t fdd| D }t fd	d| D }||fS )
N
r   console_scriptsgui_scriptsc             S   s   t | dddS )zRget the string representation of EntryPoint, remove space and split
        on '=' rQ   r>   )rG   r3   r[   )sr7   r7   r8   	_split_ep   s    z"get_entrypoints.<locals>._split_epc             3   s   | ]} |V  qd S )Nr7   ).0v)r   r7   r8   	<genexpr>   s    z"get_entrypoints.<locals>.<genexpr>c             3   s   | ]} |V  qd S )Nr7   )r   r   )r   r7   r8   r      s    )r0   r1   existsrA   r   rk   stripseekr   
EntryPoint	parse_mapgetdictvalues)filenamefpdatar|   entry_pointsconsoleguir7   )r   r8   get_entrypoints   s    

r   c       	         sR  | sdS t t}x2| D ]*}tj|}tj|}|| | qW dd tj	dd
tjD   tjtjtj  fdd| D }|sdS g }xn| D ]b\}} t| } t| dkrd	| d
 }n$dd| dd d | d  }|d|| qW d}t|dkr8||d n||d d|S )zDetermine if any scripts are not on PATH and format a warning.

    Returns a warning message if one or more scripts are not on PATH,
    otherwise None.
    Nc             S   s    g | ]}t j|t jqS r7   )r0   r1   normcaserF   r4   )r   ir7   r7   r8   
<listcomp>   s    z5message_about_scripts_not_on_PATH.<locals>.<listcomp>PATHrQ   c                s&   i | ]\}}t j| kr||qS r7   )r0   r1   r   )r   
parent_dirscripts)not_warn_dirsr7   r8   
<dictcomp>   s   z5message_about_scripts_not_on_PATH.<locals>.<dictcomp>r.   zscript {} isr   zscripts {} arez, z and z.The {} installed in '{}' which is not on PATH.zeConsider adding {} to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.zthis directoryzthese directoriesr~   )collectionsdefaultdictsetr0   r1   dirnamebasenameaddenvironr   r[   pathsepappendr   rR   rf   itemssortedrB   formatr\   )	r   grouped_by_dirdestfiler   script_namewarn_for	msg_lines
start_textlast_line_fmtr7   )r   r8   !message_about_scripts_not_on_PATH   s:    


 r   c             C   s   t | dd dS )a;  
    Return the given rows of a RECORD file in sorted order.

    Each row is a 3-tuple (path, hash, size) and corresponds to a record of
    a RECORD file (see PEP 376 and PEP 427 for details).  For the rows
    passed to this function, the size can be an integer as an int or string,
    or the empty string.
    c             S   s   t dd | D S )Nc             s   s   | ]}t |V  qd S )N)rG   )r   xr7   r7   r8   r     s    z3sorted_outrows.<locals>.<lambda>.<locals>.<genexpr>)tuple)rowr7   r7   r8   <lambda>      z sorted_outrows.<locals>.<lambda>)key)r   )outrowsr7   r7   r8   sorted_outrows   s    r   c             C   s   g }x~| D ]v}t |dkr*td| t|}|d }|||}||d< ||krrt|\}	}
|	|d< |
|d< |t| q
W x2|D ]*}t|\}	}
|t	|||	t
|
f qW x |D ]}||| ddf qW |S )z_
    :param installed: A map from archive RECORD path to installation RECORD
        path.
    rN   z,RECORD line has more than three elements: {}r   r.      rQ   )rB   loggerwarningr   listpoprM   r   r   r9   rG   )old_csv_rows	installedchanged	generatedlib_dirinstalled_rowsr   old_pathnew_pathrD   rJ   rK   r7   r7   r8   get_csv_rows_for_installed  s(    


r   FTc       *   
      s  |st | |||||	d}t| 
r,|d n|d g g 
tjjtjj }i t  g }|rt 4}t	   t
d tj|ddd W dQ R X W dQ R X t|  d1 
fd	d
	d2	fdd	}||d std	 tjd d}t|\fdd}xvD ]n}d}d}x^ttj
|D ]F}d}|dkrdt}|}tj
||}|| }|||d||d qJW q(W td|d d_dh_d_	fdd}|_d_dd}|rdtjkrd| }|| tjdddkrFdt j!dd |f }|| dt j!dd |f }|| dd  D }x|D ]}|= qW d!d}|rdtjkrd"| }|| d#t j!dd |f }|| d$d  D }x|D ]}|= q W t"dkrb#d%d  $ D }|| |
rbt%|}|dk	rbt&| t"dkr|#d&d  $ D d'di tjd d(}tjd d)} t'| d*}!|!(d+ W dQ R X t)*| | |+| tjd d,}"tjd d-}#t,|"d.`}$t,|#d/J}%t-.|$}&t/|& |d0}'t-0|%}(xt1|'D ]})|(2|) qZW W dQ R X W dQ R X t)*|#|" dS )3zInstall a wheel)userhomerootisolatedprefixpurelibplatlibignoreT)forcequietNFc                s.   t | }t |}||< |r* | dS )z6Map archive RECORD paths to installation RECORD paths.N)r9   r   )srcfiler   modifiedoldpathnewpath)r   r   r   rx   r7   r8   record_installed\  s
    

z*move_wheel_files.<locals>.record_installedc                s  t | xt| D ]\}}}|t| d  tjj}tj||}	|rj|tjjdd 	drjqx|D ]}
tj|||
}|r|dkr|	dr 
|
 qpqp|rp|
	drpt|
tjrprtd| d d 
| qpW x|D ]}|r||rqtj||}tj|||}t |	 tj|rPt| t|| t|}ttdrt||j|jf t|tjrt|}|jtjB tjB tjB }t|| d	}|r||}||| qW qW d S )
Nr.   r   z.datarQ   z
.dist-infoz!Multiple .dist-info directories: z, utimeF)r   r0   walkrB   lstripr1   r4   r\   r[   endswithr   r   re   rT   AssertionErrorr   unlinkshutilcopyfilestathasattrr   st_atimest_mtimeaccessX_OKst_modeS_IXUSRS_IXGRPS_IXOTHchmod)sourcedestis_basefixerfilterdirsubdirsfilesbasedirdestdirr   
destsubdirrK   r   r   stpermissionsr   )	data_dirsinfo_dirr   reqr7   r8   clobberd  sN    








z!move_wheel_files.<locals>.clobberz!%s .dist-info directory not foundr   zentry_points.txtc                sh   |   dr| d d }n<|   dr8| d d }n |   drT| d d }n| }| kpf|kS )Nz.exez
-script.pyiz.pya)rw   r   )rT   	matchname)r   r   r7   r8   is_entrypoint_wrapper  s    z/move_wheel_files.<locals>.is_entrypoint_wrapperr   )r   r   rQ   c                s<   | j d krtd| f  j| j| j dd | j d S )NzInvalid script entry point: %s for req: %s - A callable suffix is required. Cf https://packaging.python.org/en/latest/distributing.html#console-scripts for more information..r   )moduleimport_namefunc)suffixr   script_templater   r[   )entry)makerr   r7   r8   _get_script_text  s    
z*move_wheel_files.<locals>._get_script_textz# -*- coding: utf-8 -*-
import re
import sys

from %(module)s import %(import_name)s

if __name__ == '__main__':
    sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
    sys.exit(%(func)s())
pipENSUREPIP_OPTIONSzpip = 
altinstallz
pip%s = %sr.   rN   c             S   s   g | ]}t d |r|qS )zpip(\d(\.\d)?)?$)reru   )r   kr7   r7   r8   r   )  s    z$move_wheel_files.<locals>.<listcomp>easy_installzeasy_install = zeasy_install-%s = %sc             S   s   g | ]}t d |r|qS )zeasy_install(-\d\.\d)?$)r  ru   )r   r  r7   r7   r8   r   6  s    c             S   s   g | ]}d | qS )z%s = %sr7   )r   kvr7   r7   r8   r   >  s    c             S   s   g | ]}d | qS )z%s = %sr7   )r   r  r7   r7   r8   r   J  s    r   	INSTALLERzINSTALLER.piprb   s   pip
RECORDz
RECORD.piprzw+)r   r   r   r   )F)NN)3r   r}   rF   r0   r1   r4   r   r   warningscatch_warningsfilterwarnings
compileallcompile_dirr   debuggetvaluer   r\   r   rs   rp   r   r   variantsset_moder  r  r   r   extendmaker   rR   versionrB   make_multipler   r   r   rA   rk   r   mover   rX   csvreaderr   writerr   writerow)*rT   r   rx   r   r   r   	pycompileschemer   r   warn_script_locationr   r   stdoutr   ep_filer   datadirr   r   subdirr   r  
pip_scriptspecpip_epr  easy_install_scripteasy_install_epgenerated_console_scriptsmsg	installertemp_installerinstaller_filerecordtemp_record	record_in
record_outr!  r   r"  r   r7   )r   r   r   r   r   r   r   r  r   r   rx   r8   move_wheel_files*  s    




$F


#








$r9  c             C   sn   yTdd t d| D d }|d}t |}|d  }ttt|	d}|S  t
k
rh   dS X dS )z
    Return the Wheel-Version of an extracted wheel, if possible.

    Otherwise, return None if we couldn't parse / extract it.
    c             S   s   g | ]}|qS r7   r7   )r   dr7   r7   r8   r   p  s    z!wheel_version.<locals>.<listcomp>Nr   rr   zWheel-Versionr   )r   find_on_pathget_metadatar   parsestrr   r   mapintr[   	Exception)
source_dirdist
wheel_datar  r7   r7   r8   wheel_versionh  s    
rD  c             C   sb   | st d| | d td kr>t d|dtt| f n | tkr^tddtt|  dS )a  
    Raises errors or warns if called with an incompatible Wheel-Version.

    Pip should refuse to install a Wheel-Version that's a major series
    ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when
    installing a version only minor version ahead (e.g 1.2 > 1.1).

    version: a 2-tuple representing a Wheel-Version (Major, Minor)
    name: name of wheel or package to raise exception about

    :raises UnsupportedWheel: when an incompatible Wheel-Version is given
    z(%s is in an unsupported or invalid wheelr   zB%s's Wheel-Version (%s) is not compatible with this version of pipr   z*Installing from a newer Wheel-Version (%s)N)r   VERSION_COMPATIBLEr\   r>  rG   r   r   )r  rT   r7   r7   r8   check_compatibility|  s    
rF  c               @   s:   e Zd ZdZedejZdd Zd
ddZ	ddd	Z
dS )WheelzA wheel filez^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
        ((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
        \.whl|\.dist-info)$c                s    j |}|std| | _|ddd _|ddd _|d _|d	d _
|d		d _|d
	d _ fdd j
D  _dS )zX
        :raises InvalidWheelFilename: when the filename is invalid for a wheel
        z!%s is not a valid wheel filename.rT   rq   rY   verbuildpyverr   abiplatc                s.   h | ]&} j D ]} jD ]}|||fqqqS r7   )abisplats)r   r   yz)selfr7   r8   	<setcomp>  s   z!Wheel.__init__.<locals>.<setcomp>N)wheel_file_reru   r   r   rv   r3   rT   r  	build_tagr[   
pyversionsrM  rN  	file_tags)rQ  r   
wheel_infor7   )rQ  r8   __init__  s    

zWheel.__init__Nc                s4    dkrt    fdd| jD }|r0t|S dS )a"  
        Return the lowest index that one of the wheel's file_tag combinations
        achieves in the supported_tags list e.g. if there are 8 supported tags,
        and one of the file tags is first in the list, then return 0.  Returns
        None is the wheel is not supported.
        Nc                s   g | ]}| kr  |qS r7   )index)r   c)tagsr7   r8   r     s    z+Wheel.support_index_min.<locals>.<listcomp>)r	   get_supportedrV  min)rQ  r[  indexesr7   )r[  r8   support_index_min  s    zWheel.support_index_minc             C   s$   |dkrt  }tt|| jS )z'Is this wheel supported on this system?N)r	   r\  boolr   intersectionrV  )rQ  r[  r7   r7   r8   	supported  s    zWheel.supported)N)N)__name__
__module____qualname____doc__r  compileVERBOSErS  rX  r_  rb  r7   r7   r7   r8   rG    s   
rG  z([a-z0-9_.]+)-([a-z0-9_.!+-]+)c             C   s   t || S )zjDetermine whether the string looks like an egg_info.

    :param s: The string to parse. E.g. foo-2.1
    )r`  search)r   _egg_info_rer7   r7   r8   _contains_egg_info  s    rk  c             C   s   | j r
dS | jr&|s"td| j dS |s.dS | js:| js>dS | jrP| jjsPdS d|	t
| jkrvtd| j dS | j}| \}}|rt|rdS dS )aZ  
    Return whether to build an InstallRequirement object using the
    ephemeral cache.

    :param cache_available: whether a cache directory is available for the
        autobuilding=True case.

    :return: True or False to build the requirement with ephem_cache=True
        or False, respectively; or None not to build the requirement.
    Nz(Skipping %s, due to already being wheel.FTbinaryzCSkipping bdist_wheel for %s, due to binaries being disabled for it.)
constraintis_wheelr   inforT   editablerA  linkis_artifactget_allowed_formatsr   splitextrk  )r   format_controlautobuildingcache_availablerq  baseextr7   r7   r8   should_use_ephemeral_cache  s0    
rz  c             C   sT   d | }|s|d7 }n8t tjkr0|d7 }n |dsB|d7 }|d |7 }|S )z1
    Format command information for logging.
    zCommand arguments: {}
zCommand output: Nonez'Command output: [use --verbose to show]r~   z;Command output:
{}-----------------------------------------)r   r   getEffectiveLevelloggingDEBUGr   )command_argscommand_outputtextr7   r7   r8   format_command  s    



r  c             C   sx   t | } | s4d|j}|t||7 }t| dS t| dkrfd|j| }|t||7 }t| tj	|| d S )zH
    Return the path to the wheel in the temporary build directory.
    z1Legacy build of wheel for {!r} created no files.
Nr.   zZLegacy build of wheel for {!r} created more than one file.
Filenames (choosing first): {}
r   )
r   r   rT   r  r   r   rB   r0   r1   r\   )namestemp_dirr   r~  r  r1  r7   r7   r8   get_legacy_build_wheel_path.  s    


r  c               @   s\   e Zd ZdZdddZdddZddd	Zd
d ZdddZdddZ	dd Z
dddZdS )WheelBuilderz#Build wheels from a RequirementSet.NFc             C   s8   || _ || _|| _|j| _|p g | _|p*g | _|| _d S )N)finderpreparerwheel_cachewheel_download_dir
_wheel_dirbuild_optionsglobal_optionsno_clean)rQ  r  r  r  r  r  r  r7   r7   r8   rX  Q  s    


zWheelBuilder.__init__c          	   C   s"   |j  | j|||dS Q R X dS )ziBuild one wheel.

        :return: The filename of the built wheel, or None if the build failed.
        )
python_tagN)	build_env_build_one_inside_env)rQ  r   
output_dirr  r7   r7   r8   
_build_onee  s    zWheelBuilder._build_onec       	   	   C   s   t dd}|jr| j}n| j}|||j|d}|d k	rtj|}tj||}yt	|| t
d| |S  tk
r   Y nX | | d S Q R X d S )Nr{   )kind)r  zStored in directory: %s)r   
use_pep517_build_one_pep517_build_one_legacyr1   r0   r   r\   r   r  r   ro  r@  
_clean_one)	rQ  r   r  r  r  builder
wheel_path
wheel_name	dest_pathr7   r7   r8   r  o  s     
z"WheelBuilder._build_one_inside_envc             C   s   t jddt|j gt| j S )Nz-uz-c)rR   rf   r   setup_pyr   r  )rQ  r   r7   r7   r8   _base_setup_args  s    
zWheelBuilder._base_setup_argsc             C   s   |j dk	stybd|jf |_td| |jj||j d}|rnt||}t	
t	j||t	j|| |}W n" tk
r   td|j dS X t	j||S )zBuild one InstallRequirement using the PEP 517 build process.

        Returns path to wheel if successfully built. Otherwise, returns None.
        NzBuilding wheel for %s (PEP 517)zDestination directory: %s)metadata_directoryzFailed building wheel for %s)r  r   rT   spin_messager   r  pep517_backendbuild_wheelr`   r0   renamer1   r\   r@  error)rQ  r   tempdr  r  new_namer7   r7   r8   r    s"    

zWheelBuilder._build_one_pep517c          	   C   s   |  |}d|jf }t|}td| |dd|g | j }|dk	rT|d|g7 }yt||jd|d}W n, tk
r   |	d	 t
d
|j dS X t|}	t|	||||d}
|
S Q R X dS )zBuild one InstallRequirement using the "legacy" build process.

        Returns path to wheel if successfully built. Otherwise, returns None.
        z Building wheel for %s (setup.py)zDestination directory: %sbdist_wheelz-dNz--python-tagF)cwdshow_stdoutspinnerr  zFailed building wheel for %s)r  r  r   r~  r  )r  rT   r   r   r  r  r   setup_py_dirr@  finishr  r0   rs   r  )rQ  r   r  r  	base_argsr  r  
wheel_argsoutputr  r  r7   r7   r8   r    s,    



zWheelBuilder._build_one_legacyc             C   s`   |  |}td|j |ddg }yt||jdd dS  tk
rZ   td|j dS X d S )NzRunning setup.py clean for %scleanz--allF)r  r  Tz Failed cleaning build dir for %s)r  r   ro  rT   r   rA  r@  r  )rQ  r   r  
clean_argsr7   r7   r8   r    s    
zWheelBuilder._clean_onec             C   sP  g }| j j}t| jp| jj}x4|D ],}t||||d}|dkrBq$|||f q$W |s\g S tdd |D r| jp~|o~| jj}	|	st	t
dddd |D  | j}
t P g g  }}x<|D ]2\}}d}|rNtj}|r|
|j}n|
|j}yt| W n@ tk
rJ } z t
d	|j| || wW dd}~X Y nX n| j}| j|||d
}|r|| |r|jrtjtj|jtst	d|  || jj |_t!t"||_|jj#st	t$|j|jdd|d q|| qW W dQ R X |r*t
dddd |D  |rLt
dddd |D  |S )zBuild wheels.

        :param unpack: If True, replace the sdist we built from with the
            newly built wheel, in preparation for installation.
        :return: True if all the wheels built correctly.
        )ru  rv  rw  Nc             s   s   | ]\}}| V  qd S )Nr7   )r   rq   ephem_cacher7   r7   r8   r     s    z%WheelBuilder.build.<locals>.<genexpr>z*Building wheels for collected packages: %sz, c             S   s   g | ]\}}|j qS r7   )rT   )r   r   rq   r7   r7   r8   r     s    z&WheelBuilder.build.<locals>.<listcomp>z Building wheel for %s failed: %s)r  zbad source dir - missing markerF)sessionzSuccessfully built %sr   c             S   s   g | ]
}|j qS r7   )rT   )r   r   r7   r7   r8   r   ?  s    zFailed to build %sc             S   s   g | ]
}|j qS r7   )rT   )r   r   r7   r7   r8   r   D  s    )%r  ru  r`  r  r  	cache_dirrz  r   anyr   r   ro  r\   r   r	   implementation_tagget_ephem_path_for_linkrq  get_path_for_linkr   OSErrorr   rT   r  rA  r0   r1   r   r   remove_temporary_sourcebuild_locationr  	build_dirr   r
   rn  r   )rQ  requirementsr  rv  buildsetru  rw  r   r  have_directory_for_build_cachebuild_successbuild_failureephemr  r  e
wheel_filer7   r7   r8   rI    s    






zWheelBuilder.build)NNF)N)N)N)N)F)rc  rd  re  rf  rX  r  r  r  r  r  r  rI  r7   r7   r7   r8   r  N  s     






!r  )r:   )FNNTNFNT)prf  
__future__r   r   r  r   r?   r|  os.pathr0   r  r   r   rR   r  base64r   email.parserr   pip._vendorr   pip._vendor.distlib.scriptsr   pip._vendor.packaging.utilsr   pip._vendor.sixr   pip._internalr	   pip._internal.downloadr
   r   pip._internal.exceptionsr   r   r   pip._internal.locationsr   r   pip._internal.models.linkr   pip._internal.utils.loggingr   pip._internal.utils.miscr   r   r   r   $pip._internal.utils.setuptools_buildr   pip._internal.utils.temp_dirr   pip._internal.utils.typingr   pip._internal.utils.uir   typingr   r   r   r   r   r    r!   r"   r#   r$   r%   Z"pip._vendor.packaging.requirementsr&   Zpip._internal.req.req_installr'   r(   pip._internal.indexr)   r*    pip._internal.operations.preparer+   pip._internal.cacher,   pip._internal.pep425tagsr-   rG   ZInstalledCSVRowrE  	getLoggerrc  r   r9   rM   rX   r`   rp   rg  rh  rt   r}   r   r   r   r   r9  rD  rF  objectrG  Irk  rz  r  r  r  r7   r7   r7   r8   <module>   s   4

	
 =(       
  5=6 