???<!-- GIF89;a -->
123123123123
.....................................................................................................................................???<!-- GIF89;a -->
123123123123
.....................................................................................................................................U
    &.eb                     @   s   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gZ	dZ
dZi Zdd ZedZed	Zded
fd	ed
fgZdddZdd Zdd Zdddddd dddZdddddd dddZd dddZdddZdS )    Nversion	bootstrap)
setuptoolspipz/usr/share/python38-wheels/c                 C   s   t jtd| }i t| < dD ]J}d||}t|D ].}|t|t|  }t j|t|  |< q:q t	t
t|  tjjdS )Nz{}-)z-py2.py3-none-any.whlz-py3-none-any.whlz{}*{})key)ospathjoin
_WHEEL_DIRformat_wheelsgloblenbasenamestrmax	distutilsr   ZLooseVersion)Zpkgprefixsuffixpatternr   Zversion_str r   */usr/lib64/python3.8/ensurepip/__init__.py_get_most_recent_wheel_version   s    r   r   r   Zpy3c                 C   sF   d|pg  d|  d}t jd|g}t jjr6|dd tj|ddjS )	Nz$
import runpy
import sys
sys.path = z + sys.path
sys.argv[1:] = z>
runpy.run_module("pip", run_name="__main__", alter_sys=True)
z-c   z-IT)Zcheck)sys
executableflagsisolatedinsert
subprocessrun
returncode)argsadditional_pathscodecmdr   r   r   _run_pip'   s    r&   c                   C   s   t S )N)_PIP_VERSIONr   r   r   r   r   ;   s    c                  C   s2   dd t jD } | D ]}t j|= qt jt jd< d S )Nc                 S   s   g | ]}| d r|qS )ZPIP_)
startswith).0kr   r   r   
<listcomp>E   s     
 z7_disable_pip_configuration_settings.<locals>.<listcomp>ZPIP_CONFIG_FILE)r   environdevnull)Zkeys_to_remover*   r   r   r   #_disable_pip_configuration_settingsA   s    
r.   Frootupgradeuser
altinstalldefault_pip	verbosityc                 C   s   t | |||||d d S )Nr/   )
_bootstrapr/   r   r   r   r   M   s
    
 c                 C   sP  |r|rt dtd|  t  |r2dtjd< n|s@dtjd< t  }g }tD ]x\}}	}
t	| |	 }t
tjt|d4}t
tj||d}||  W 5 Q R X W 5 Q R X |tj|| qTddd	d
|g}| r|d| g7 }|r|dg7 }|r
|dg7 }|r"|dd|  g7 }t|dd tD  |W  5 Q R  S Q R X d S )Nz.Cannot use altinstall and default_pip togetherzensurepip.bootstrapr3   ZENSUREPIP_OPTIONSZinstallrbwbz--no-cache-dirz
--no-indexz--find-links--root	--upgrade--user-vc                 S   s   g | ]}|d  qS r   r   r)   pr   r   r   r+      s     z_bootstrap.<locals>.<listcomp>)
ValueErrorr   auditr.   r   r,   tempfileZTemporaryDirectory	_PROJECTSr   openr   r	   r
   writereadappendr&   )r0   r1   r2   r3   r4   r5   Ztmpdirr#   Zprojectr   Zpy_tagZ
wheel_nameZsfpfpr"   r   r   r   r6   \   s4    	
"

r6   )r5   c                 C   s   zdd l }W n tk
r"   Y d S X |jtkrNd}t||jttjd d S t  dddg}| rt|dd|   g7 }t	|d	d
 t
tD  S )Nr   zOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled))fileZ	uninstallz-yz--disable-pip-version-checkr<   r=   c                 S   s   g | ]}|d  qS r>   r   r?   r   r   r   r+      s     z%_uninstall_helper.<locals>.<listcomp>)r   ImportError__version__r'   printr   r   stderrr.   r&   reversedrD   )r5   r   msgr"   r   r   r   _uninstall_helper   s    

rQ   c                 C   s   dd l }|jdd}|jdddt dd |jd	d
ddddd |jdddddd |jddddd |jdd dd |jddddd |jddddd || }t|j|j|j	|j
|j|jdS )Nr   zpython -m ensurepip)progz	--versionr   zpip {}z9Show the version of pip that is bundled with this Python.)actionr   helpz-vz	--verbosecountr5   zDGive more output. Option is additive, and can be used up to 3 times.)rS   defaultdestrT   z-Ur:   
store_trueFz8Upgrade pip and dependencies, even if already installed.)rS   rV   rT   r;   zInstall using the user scheme.r9   z=Install everything relative to this alternate root directory.)rV   rT   z--altinstallzoMake an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).z--default-pipzqMake a default pip install, installing the unqualified pip and easy_install in addition to the versioned scripts.)r0   r1   r2   r5   r3   r4   )argparseArgumentParseradd_argumentr   r   
parse_argsr6   r0   r1   r2   r5   r3   r4   )argvrY   parserr"   r   r   r   _main   sn    
  
r_   )N)N)Zdistutils.versionr   r   r   Zos.pathr   ZrunpyrC   r   __all__Z_PACKAGE_NAMESr
   r   r   Z_SETUPTOOLS_VERSIONr'   rD   r&   r   r.   r   r6   rQ   r_   r   r   r   r   <module>   s@   
  6