%PDF- %PDF-
Mini Shell

Mini Shell

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

B

��aD�@s�ddlZddlZddlZddlZddlZddlZddlZddlmZddgZ	dZ
dZde
dfd	ed
fgZddd�Z
d
d�Zdd�Zddddddd�dd�Zddddddd�dd�Zdd�dd�Zddd�ZdS)�N)�rewheel�version�	bootstrapz47.1.0z9.0.1Z
setuptoolsZpy3�pipzpy2.py3c
Cs�|dk	r|tjt_|ddkr*|�d�tjdd�}|tjdd�<z>ytjdddd�Wn$tk
r�}z|jSd}~XYnXWd|tjdd�<Xtd	��dS)
Nr)�install�listZwheelz--pre�r�__main__T)Zrun_nameZ	alter_sysz*pip did not exit, this should never happen)	�sys�path�append�argv�runpyZ
run_module�
SystemExit�code�SystemError)�args�additional_pathsZbackup_argv�exc�r�7/opt/alt/python37/lib64/python3.7/ensurepip/__init__.py�_run_pips
rcCstS)zA
    Returns a string specifying the bundled version of pip.
    )�_PIP_VERSIONrrrrr-scCs6dd�tjD�}x|D]}tj|=qWtjtjd<dS)NcSsg|]}|�d�r|�qS)ZPIP_)�
startswith)�.0�krrr�
<listcomp>7sz7_disable_pip_configuration_settings.<locals>.<listcomp>ZPIP_CONFIG_FILE)�os�environ�devnull)Zkeys_to_removerrrr�#_disable_pip_configuration_settings3s
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#r$r%r&N)�
_bootstrap)r!r"r#r$r%r&rrrr?s
c
Cs�|r|rtd��t�|r&dtjd<n|s4dtjd<g}d}t�dd�tD��}t|�r�t�	�}xr|D](}	t�
|	|j�}
|�tj
�|j|
��qfWn@x>tD]6\}}}
tj
�tj
�t�dd	�|||
��}|�|�q�Wt�	���}g}x4|D],}t�||�|�tj
�|tj
�|���q�W|�r&|��dd
dd|g}|�rF|d
|g7}|�rV|dg7}|�rf|dg7}|�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 togetherr$ZENSUREPIP_OPTIONSrNcSsg|]}|d�qS)rr)r�prrrrlsz_bootstrap.<locals>.<listcomp>Z_bundledz{}-{}-{}-py2.py3-none-any.whlz--no-cache-dirz
--no-indexz--find-linksz--rootz	--upgradez--user�-�vcSsg|]}|d�qS)rr)rr(rrrr�s)�
ValueErrorr rrrZfind_system_records�	_PROJECTS�all�tempfileZTemporaryDirectoryZrewheel_from_record�namerr�join�dirname�__file__�format�shutil�copy�basenameZcleanupr)r!r"r#r$r%r&ZwhlsZrewheel_dirZdep_recordsZdrZnew_whlZprojectrZpy_tagZwhlZtmpdirrrrrrr'NsL	




 

r')r&cCs�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-checkr)r*cSsg|]}|d�qS)rr)rr(rrrr�sz%_uninstall_helper.<locals>.<listcomp>)r�ImportError�__version__r�printr3r
�stderrr r�reversedr,)r&r�msgrrrr�_uninstall_helper�s

r>cCs�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�countr&zDGive more output. Option is additive, and can be used up to 3 times.)r@�default�destrAz-Uz	--upgrade�
store_trueFz8Upgrade pip and dependencies, even if already installed.)r@rCrAz--userzInstall using the user scheme.z--rootz=Install everything relative to this alternate root directory.)rCrAz--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#r&r$r%)
�argparse�ArgumentParser�add_argumentr3r�
parse_argsr'r!r"r#r&r$r%)r
rF�parserrrrr�_main�sZ

rK)N)N)rZos.pathZpkgutilr4r
rr.Z	ensurepipr�__all__Z_SETUPTOOLS_VERSIONrr,rrr rr'r>rKrrrr�<module>s.

H

Zerion Mini Shell 1.0