Your IP : 18.226.88.18


Current Path : /opt/alt/python38/lib64/python3.8/ensurepip/__pycache__/
Upload File :
Current File : //opt/alt/python38/lib64/python3.8/ensurepip/__pycache__/__init__.cpython-38.opt-2.pyc

U

�M�fk�@s�ddlZddlZddlZddlZddlZddlZddlZddlZddgZ	dZ
dZiZdd�Z
e
d�Ze
d	�Zded
fd	ed
fgZddd�Zd
d�Zdd�Zddddddd�dd�Zddddddd�dd�Zdd�dd�Zddd�ZdS)�N�version�	bootstrap)�
setuptools�pipz&/opt/alt/python38/share/python-wheels/cCs�tj�td�|��}it|<dD]J}d�||�}t�|�D].}|t|�t|��}tj�|�t||<q:q t	t
t|tj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�	distutilsrZLooseVersion)Zpkg�prefix�suffix�patternrZversion_str�r�7/opt/alt/python38/lib64/python3.8/ensurepip/__init__.py�_get_most_recent_wheel_versionsrrrZpy3cCsFd|pg�d|�d�}tjd|g}tjjr6|�dd�tj|dd�jS)	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)Zcheck)�sys�
executable�flags�isolated�insert�
subprocess�run�
returncode)�args�additional_paths�code�cmdrrr�_run_pip%s��r&cCstS)N)�_PIP_VERSIONrrrrr9scCs2dd�tjD�}|D]}tj|=qtjtjd<dS)NcSsg|]}|�d�r|�qS)ZPIP_)�
startswith)�.0�krrr�
<listcomp>Cs
z7_disable_pip_configuration_settings.<locals>.<listcomp>ZPIP_CONFIG_FILE)r�environ�devnull)Zkeys_to_remover*rrr�#_disable_pip_configuration_settings?s
r.F��root�upgrade�user�
altinstall�default_pip�	verbositycCst||||||d�dS)Nr/)�
_bootstrapr/rrrrKs

�cCsP|r|rtd��t�d|�t�|r2dtjd<n|s@dtjd<t�����}g}tD]x\}}	}
t	||	}t
tj�t
|�d��4}t
tj�||�d��}
|
�|���W5QRXW5QRX|�tj�||��qTddd	d
|g}|r�|d|g7}|r�|dg7}|�r
|d
g7}|�r"|dd|g7}t|dd�tD�|�W5QR�SQRXdS)Nz.Cannot use altinstall and default_pip togetherzensurepip.bootstrapr3ZENSUREPIP_OPTIONSZinstall�rb�wbz--no-cache-dirz
--no-indexz--find-links�--root�	--upgrade�--user�-�vcSsg|]}|d�qS�rr�r)�prrrr+�sz_bootstrap.<locals>.<listcomp>)�
ValueErrorr�auditr.rr,�tempfileZTemporaryDirectory�	_PROJECTSr�openrr	r
�write�read�appendr&)r0r1r2r3r4r5Ztmpdirr#ZprojectrZpy_tagZ
wheel_nameZsfp�fpr"rrrr6Zs4	
"

r6)r5cCs�zddl}Wntk
r"YdSX|jtkrNd}t|�|jt�tjd�dSt�dddg}|rt|dd|g7}t	|d	d
�t
t�D��S)NrzOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled))�fileZ	uninstallz-yz--disable-pip-version-checkr<r=cSsg|]}|d�qSr>rr?rrrr+�sz%_uninstall_helper.<locals>.<listcomp>)r�ImportError�__version__r'�printrr�stderrr.r&�reversedrD)r5r�msgr"rrr�_uninstall_helper�s

rQcCs�ddl}|jdd�}|jddd�t��dd�|jd	d
dddd
d�|jdddddd�|jddddd�|jdddd�|jddddd�|jddddd�|�|�}t|j|j|j	|j
|j|jd�S)Nrzpython -m ensurepip)�progz	--versionrzpip {}z9Show the version of pip that is bundled with this Python.)�actionr�helpz-vz	--verbose�countr5zDGive more output. Option is additive, and can be used up to 3 times.)rS�default�destrTz-Ur:�
store_trueFz8Upgrade pip and dependencies, even if already installed.)rSrVrTr;zInstall using the user scheme.r9z=Install everything relative to this alternate root directory.)rVrTz--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.)r0r1r2r5r3r4)
�argparse�ArgumentParser�add_argumentrr�
parse_argsr6r0r1r2r5r3r4)�argvrY�parserr"rrr�_main�sn
�������
�r_)N)N)Zdistutils.versionrr
rZos.pathrZrunpyrCr�__all__Z_PACKAGE_NAMESr
rrZ_SETUPTOOLS_VERSIONr'rDr&rr.rr6rQr_rrrr�<module>s@�
��6

?>