HEX
Server: Microsoft-IIS/10.0
System: Windows NT ITPWINWEBSVR22 10.0 build 20348 (Windows Server 2022) AMD64
User: www.conferencesearch.co.uk (0)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: D:/Python311/Lib/site-packages/pip/_internal/utils/__pycache__/entrypoints.cpython-311.pyc
�

�mi����ddlmZddlZddlZddlZddlZddlmZddlm	Z	ddej
j��dej
j�dej
j��gZ
e	rddhZd	�eje
e��D��Z
ddd�Zdd�Zdd�ZdS)�)�annotationsN)�main)�WINDOWS�pip�.�z.exec�8�g|]}d�|����S)r)�join)�.0�partss  �AD:\Python311\Lib\site-packages\pip/_internal/utils/entrypoints.py�
<listcomp>rs2������	����������args�list[str] | None�return�intc�^�tj�d��t|��S)a�Central wrapper for all old entrypoints.

    Historically pip has had several entrypoints defined. Because of issues
    arising from PATH, sys.path, multiple Pythons, their interactions, and most
    of them having a pip installed, users suffer every time an entrypoint gets
    moved.

    To alleviate this pain, and provide a mechanism for warning users and
    directing them to an appropriate place for help, we now define all of
    our old entrypoints as wrappers for the current one.
    aWARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
)�sys�stderr�writer)rs r
�_wrapperrs1���J���	"������:�:�r�strc��trdnd}tj�tj|��}tj�tj�dd�����	tj
��}tj�|��|v}|r�tD]{}tj
|��}tj�||��}|rCtj�|��r$tj�||��r|cS�|t!���d�S)zHTry to figure out the best way to invoke pip in the current environment.�Scripts�bin�PATHrz -m pip)r�os�pathr
r�prefix�normcase�environ�get�split�pathsep�_EXECUTABLE_NAMES�shutil�which�exists�samefile�#get_best_invocation_for_this_python)�binary_directory�
binary_prefix�
path_parts�exe_are_in_PATH�exe_name�found_executable�binary_executables       r
� get_best_invocation_for_this_pipr3/s��$+�6�y�y����G�L�L���-=�>�>�M���!�!�"�*�.�.���"<�"<�=�=�C�C�B�J�O�O�J��g�&�&�}�5�5��C�O�� �)�	 �	 �H�%�|�H�5�5�� "����]�H� E� E�� �
 ��G�N�N�#4�5�5�
 ��G�$�$�$�%���
 � �����2�3�3�<�<�<�<rc��tj}tj�|��}tj|��}|rFtj�tj|��tj|����r|S|S)z<Try to figure out the best way to invoke the current Python.)	r�
executablerr�basenamer'r(�samestat�lstat)�exer0r1s   r
r+r+Jss��

�.�C��w����$�$�H��|�H�-�-����B�G�,�,�R�X�6F�-G�-G���RU���W�W�����Jr)N)rrrr)rr)�
__future__r�	itertoolsrr'r�pip._internal.cli.mainr�pip._internal.utils.compatr�version_info�major�minorr&�_allowed_extensions�productrr3r+�rr
�<module>rDs.��"�"�"�"�"�"�����	�	�	�	�
�
�
�
�
�
�
�
�'�'�'�'�'�'�.�.�.�.�.�.�
�"�#�
�
 �"�"�;�#�
�
 �;�;�3�#3�#9�;�;���
���v�,����&�Y�&�'8�:M�N�N����������.=�=�=�=�6�����r