Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/ensurepip/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/ensurepip/__pycache__/__init__.cpython-37.pyc

B

� f��@s�ddlZddlZddlZddlZddlZddlZddlZddgZdZ	dZ
iZdd�Zed�Z
ed	�Zde
d
fd	ed
fgZddd�Zd
d�Zdd�Zddddddd�dd�Zddddddd�dd�Zdd�dd�Zddd�ZdS)�N�version�	bootstrap)�
setuptools�pipz&/opt/alt/python37/share/python-wheels/cCs�tj�td�|��}it|<xVdD]N}d�||�}x<t�|�D].}|t|�t|��}tj�|�t||<q>Wq"Wt	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/python37/lib64/python3.7/ensurepip/__init__.py�_get_most_recent_wheel_versions
rrrZpy3c
Cs�|dk	r|tjt_tjdd�}|tjdd�<z>ytjdddd�Wn$tk
rj}z|jSd}~XYnXWd|tjdd�<Xtd��dS)N�r�__main__T)Zrun_nameZ	alter_sysz*pip did not exit, this should never happen)�sysr�argv�runpyZ
run_module�
SystemExit�code�SystemError)�args�additional_pathsZbackup_argv�excrrr�_run_pip$sr$cCstS)zA
    Returns a string specifying the bundled version of pip.
    )�_PIP_VERSIONrrrrr7scCs6dd�tjD�}x|D]}tj|=qWtjtjd<dS)NcSsg|]}|�d�r|�qS)ZPIP_)�
startswith)�.0�krrr�
<listcomp>Asz7_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.
    )r-r.r/r0r1r2N)�
_bootstrap)r-r.r/r0r1r2rrrrIs
cCs8|r|rtd��t�|r&dtjd<n|s4dtjd<t����}g}x�tD]x\}}	}
t||	}ttj	�
t|�d��4}ttj	�
||�d��}
|
�|�
��WdQRXWdQRX|�tj	�
||��qHWddd	d
|g}|r�|d|g7}|r�|dg7}|r�|d
g7}|�r|dd|g7}t|dd�tD�|�SQRXdS)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 togetherr0ZENSUREPIP_OPTIONSZinstall�rb�wbNz--no-cache-dirz
--no-indexz--find-linksz--rootz	--upgradez--user�-�vcSsg|]}|d�qS)rr)r'�prrrr)�sz_bootstrap.<locals>.<listcomp>)�
ValueErrorr,rr*�tempfileZTemporaryDirectory�	_PROJECTSr�openrr	r
�write�read�appendr$)r-r.r/r0r1r2Ztmpdirr"ZprojectrZpy_tagZ
wheel_nameZsfp�fpr!rrrr3Xs2	

"

r3)r2cCs�yddl}Wntk
r dSX|jtkrLd}t|�|jt�tjd�dSt�dddg}|rr|dd	|g7}t	|d
d�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))�fileZ	uninstallz-yz--disable-pip-version-checkr6r7cSsg|]}|d�qS)rr)r'r8rrrr)�sz%_uninstall_helper.<locals>.<listcomp>)r�ImportError�__version__r%�printrr�stderrr,r$�reversedr;)r2r�msgr!rrr�_uninstall_helper�s

rHcCs�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�countr2zDGive more output. Option is additive, and can be used up to 3 times.)rJ�default�destrKz-Uz	--upgrade�
store_trueFz8Upgrade pip and dependencies, even if already installed.)rJrMrKz--userzInstall using the user scheme.z--rootz=Install everything relative to this alternate root directory.)rMrKz--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.)r-r.r/r2r0r1)
�argparse�ArgumentParser�add_argumentrr�
parse_argsr3r-r.r/r2r0r1)rrP�parserr!rrr�_main�sZ

rU)N)N)Zdistutils.versionrr
rZos.pathrrr:�__all__Z_PACKAGE_NAMESr
rrZ_SETUPTOOLS_VERSIONr%r;r$rr,rr3rHrUrrrr�<module>s4

2

Hacked By AnonymousFox1.0, Coded By AnonymousFox