ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/ensurepip/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/ensurepip/__pycache__/__init__.cpython-311.pyc

�

� f�&��:�ddlZddlZddlZddlZddlZddlZddlZddlZddl	Z	ddl
mZddgZdZ
ejdd��ZdaiZd	�Zed
��Zed��Zd
edfdedfgZd
�Zd�Zdadd�Zd�Zd�Zddddddd�d�Zddddddd�d�Zdd�d�Zdd�ZdS)�N)�	resources�version�	bootstrap)�
setuptools�pip�Package)r�
wheel_name�
wheel_pathz'/opt/alt/python311/share/python-wheels/c��tj�td�|����}it
|<dD]�}d�||��}t
j|��D]T}|t|��t|���}tj�|��t
||<�U��ttt
|tjj
�����S)Nz{}-)z-py2.py3-none-any.whlz-py3-none-any.whlz{}*{})�key)�os�path�join�_WHEEL_PKG_DIR�format�_wheels�glob�len�basename�str�max�	distutilsr�LooseVersion)�pkg�prefix�suffix�patternr�version_strs      �9/opt/alt/python311/lib64/python3.11/ensurepip/__init__.py�_get_most_recent_wheel_versionr s���
�W�\�\�.�%�,�,�s�*;�*;�
<�
<�F��G�C�L�>�?�?���.�.���0�0���I�g�&�&�	?�	?�D��s�6�{�{�C��K�K�<�7�8�K�(*��(8�(8��(>�(>�G�C�L��%�%�	?��s�7�3�<�Y�%6�%C�D�D�D�E�E�E�rr�py3c��i}	tj|��}n#t$rd}YnwxYwt|��}|D]�}|�d��s�t
D]}|dz}|�|��rn��?|�|���d��d}tj	�
||��}t|d|��||<��|S)N�z.whl�-r)r
�listdir�OSError�sorted�endswith�_PACKAGE_NAMES�
startswith�removeprefix�	partitionrr�_Package)r�packages�	filenames�filename�namerrr
s        r�_find_packagesr3/s���H���J�t�$�$�	�	�������	�	�	������y�!�!�I��=�=��� � ��(�(�	��"�	�	�D��C�Z�F��"�"�6�*�*�
���
�
��'�'��/�/�9�9�#�>�>�q�A���W�\�\�$��1�1�
�!�'�4��<�<������Os��(�(c���t�tSi}tD]-\}}}t||}t||d��||<�.tr6tt���t
�fd�tD����r�}|a|S)Nc3� �K�|]}|�vV��	dS�Nr$)�.0r2�dir_packagess  �r�	<genexpr>z _get_packages.<locals>.<genexpr>Xs(�����?�?��t�|�#�?�?�?�?�?�?r!)�	_PACKAGES�	_PROJECTSrr.rr3�allr*)r/r2r�py_tagr	r8s     @r�
_get_packagesr>Ls���������H�!*�=�=���g�v��d�m�G�,�
�!�'�:�t�<�<������$�%�n�5�5���?�?�?�?��?�?�?�?�?�	$�#�H��I��Or!c��d|pg�d|�d�}tjddd|g}tjjr|�dd��tj|d	�
��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-Wzignore::DeprecationWarningz-c�z-IT)�check)�sys�
executable�flags�isolated�insert�
subprocess�run�
returncode)�args�additional_paths�code�cmds    r�_run_piprN_s���
�
�"�����	���D�	���$����C��y����
�
�1�d�����>�#�T�*�*�*�5�5r!c�4�t��djS)zA
    Returns a string specifying the bundled version of pip.
    r)r>rr$r!rrrys���?�?�5�!�)�)r!c��d�tjD��}|D]}tj|=�tjtjd<dS)Nc�<�g|]}|�d���|��S)�PIP_)r+)r7�ks  r�
<listcomp>z7_disable_pip_configuration_settings.<locals>.<listcomp>�s)��D�D�D�A�q�|�|�F�/C�/C�D�a�D�D�Dr!�PIP_CONFIG_FILE)r
�environ�devnull)�keys_to_removerSs  r�#_disable_pip_configuration_settingsrY�sK��E�D���D�D�D�N�
�����J�q�M�M�%'�J�B�J� �!�!�!r!F��root�upgrade�user�
altinstall�default_pip�	verbosityc�0�t||||||���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.
    rZN)�
_bootstraprZs      rrr�s3���D�'��$�+�"�$�$�$�$�$�$r!c	��|r|rtd���tjd|��t��|rdtjd<n|sdtjd<t
j��5}g}tD]�\}}	}
t||	}tj
�t|��}tj
�||��}
t|d��5}t|
d��5}|�|�����ddd��n#1swxYwYddd��n#1swxYwY|�|
����dd	d
d|g}|r|d|gz
}|r|d
gz
}|r|dgz
}|r|dd|zzgz
}t#g|�t$�|��cddd��S#1swxYwYdS)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.bootstrapr^�ENSUREPIP_OPTIONS�install�rb�wbNz--no-cache-dirz
--no-indexz--find-links�--root�	--upgrade�--userr%�v)�
ValueErrorrB�auditrYr
rV�tempfile�TemporaryDirectoryr;rrrr�open�write�read�appendrNr*)r[r\r]r^r_r`�tmpdirrK�projectrr=r	�filename_wheel�filename_tmp�sfp�fprJs                 rrbrb�s����K�k�K��I�J�J�J��I�#�T�*�*�*�'�)�)�)��4�*6��
�&�'�'�
�4�*3��
�&�'�	�	$�	&�	&�D�&���(1�	2�	2�$�G�W�f� ��)�'�2�J��W�\�\�.�*�E�E�N��7�<�<��
�;�;�L��n�d�+�+�
)�s��,��-�-�)���H�H�S�X�X�Z�Z�(�(�(�)�)�)�)�)�)�)�)�)�)�)����)�)�)�)�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)�
)����
)�
)�
)�
)�
�#�#�L�1�1�1�1��+�\�>�6�R���	%��X�t�$�$�D��	"��[�M�!�D��	��X�J��D��	,��S�3��?�*�+�+�D��0�$�0��0�2B�C�C�3D�D�D�D�D�D�D�D�D�D�D�D����D�D�D�D�D�Ds\�-A8F5�%E�6(D*	�E�*D.
�.E�1D.
�2E�5F5�E�F5�E�	AF5�5F9�<F9)r`c�>�	ddl}n#t$rYdSwxYwt��}|j|kr)t	d|j�d|�d�t
j���dSt��gd�}|r|dd	|zzgz
}tg|�tt�����S)
z~Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    rNz2ensurepip will only uninstall a matching version (z installed, z available))�file)�	uninstallz-yz--disable-pip-version-checkr%rk)r�ImportErrorr�__version__�printrB�stderrrYrN�reversedr*)r`r�available_versionrJs    r�_uninstall_helperr��s�����
�
�
�
�������������
 �	�	��
��+�+�+�
�2��/�2�2�"�2�2�2��:�	�	�	�	�	��'�)�)�)�>�=�=�D��(���s�Y��&�'�'���6�d�6�X�n�5�5�6�7�7�7s��
�c�f�ddl}|�d���}|�ddd�t	����d���|�d	d
dddd
���|�ddddd���|�dddd���|�ddd���|�dddd���|�dddd���|�|��}t
|j|j|j	|j
|j|j���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�destr�z-Uri�
store_trueFz8Upgrade pip and dependencies, even if already installed.)r�r�r�rjzInstall using the user scheme.rhz=Install everything relative to this alternate root directory.)r�r�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.)r[r\r]r`r^r_)
�argparse�ArgumentParser�add_argumentrr�
parse_argsrbr[r\r]r`r^r_)�argvr��parserrJs    r�_mainr��s����O�O�O�
�
$�
$�*?�
$�
@�
@�F�
���������	�	�*�*�
H�	��������k���
����������k���
G�	����������
-�	���������
L�����
������C�	����������G�	�������T�"�"�D��
�Y���
�Y��.��?��$�
���r!r6) �distutils.versionrr�collectionsr
�os.pathrGrB�	sysconfigrn�	importlibr�__all__r*�
namedtupler.rrr �_SETUPTOOLS_VERSION�_PIP_VERSIONr;r3r>r:rNrrYrrbr�r�r$r!r�<module>r�s���������������	�	�	�	���������
�
�
�
����������������k�
"��&��"�;�!�)�"I�K�K��;��
��F�F�F�5�4�\�B�B��-�-�e�4�4���&��.�
�L�%� �
�	����:��� 
�	�6�6�6�6�4*�*�*�	/�	/�	/��E���E��$�$�$�$�$��U���E��6D�6D�6D�6D�6D�p$%�8�8�8�8�8�>:�:�:�:�:�:r!

Zerion Mini Shell 1.0