AlkantarClanX12

Your IP : 18.116.24.111


Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/ensurepip/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/ensurepip/__pycache__/__init__.cpython-39.pyc

a

��fd�@s�ddlZddlZddlZddlZddlZddlZddlZddlZddl	m
Z
ddgZdZiZ
dd�Zed�Zed	�Zded
fd	ed
fgZddd�Zd
d�Zdd�Zddddddd�dd�Zddddddd�dd�Zdd�dd�Zddd�ZdS)�N)�	resources�version�	bootstrapz&/opt/alt/python39/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/python39/lib64/python3.9/ensurepip/__init__.py�_get_most_recent_wheel_versionsrZ
setuptools�pipZpy3cCsFd|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)zA
    Returns a string specifying the bundled version of pip.
    )�_PIP_VERSIONrrrrr9scCs2dd�tjD�}|D]}tj|=qtjtjd<dS)NcSsg|]}|�d�r|�qS)ZPIP_)�
startswith)�.0�krrr�
<listcomp>C�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)z�
    Bootstrap pip into the current Python installation (or the given root
    directory).

    Note that calling this function will alter both sys.path and os.environ.
    r0N)�
_bootstrapr0rrrrKs
�cCs�|r|rtd��t�d|�t�|r2dtjd<n|s@dtjd<t����*}g}tD]�\}}	}
t	||	}t
tj�t
|�d��R}t
tj�||�d��}
|
�|���Wd�n1s�0YWd�n1s�0Y|�tj�||��qTdd	d
d|g}|�r|d|g7}|�r&|d
g7}|�r6|dg7}|�rN|dd|g7}t|dd�tD�|�Wd�S1�s|0YdS)z�
    Bootstrap pip into the current Python installation (or the given root
    directory). Returns pip command status code.

    Note that calling this function will alter both sys.path and os.environ.
    z.Cannot use altinstall and default_pip togetherzensurepip.bootstrapr4ZENSUREPIP_OPTIONSZinstall�rb�wbNz--no-cache-dirz
--no-indexz--find-links�--root�	--upgrade�--user�-�vcSsg|]}|d�qS�rr�r)�prrrr+�r,z_bootstrap.<locals>.<listcomp>)�
ValueErrorr�auditr/rr-�tempfileZTemporaryDirectory�	_PROJECTSr�openrrr	�write�read�appendr&)r1r2r3r4r5r6Ztmpdirr#ZprojectrZpy_tagZ
wheel_nameZsfp�fpr"rrrr7Zs4	
J

r7)r6cCs�zddl}Wnty YdS0|jtkrLd}t|�|jt�tjd�dSt�gd�}|rp|dd|g7}t	|dd	�t
t�D��S)
z~Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    rNzOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled))�file)Z	uninstallz-yz--disable-pip-version-checkr=r>cSsg|]}|d�qSr?rr@rrrr+�r,z%_uninstall_helper.<locals>.<listcomp>)r�ImportError�__version__r'�printr
r�stderrr/r&�reversedrE)r6r�msgr"rrr�_uninstall_helper�s
rRcCs�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�countr6zDGive more output. Option is additive, and can be used up to 3 times.)rT�default�destrUz-Ur;�
store_trueFz8Upgrade pip and dependencies, even if already installed.)rTrWrUr<zInstall using the user scheme.r:z=Install everything relative to this alternate root directory.)rWrUz--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.)r1r2r3r6r4r5)
�argparse�ArgumentParser�add_argumentr
r�
parse_argsr7r1r2r3r6r4r5)�argvrZ�parserr"rrr�_main�sj
�������
�r`)N)N)Zdistutils.versionrrrZos.pathrZrunpyrDr�	importlibr�__all__r	rrZ_SETUPTOOLS_VERSIONr'rEr&rr/rr7rRr`rrrr�<module>s<
�
��6