G%
Jf d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlm Z ddej
j dej
j dej
j gZ
e rddhZd ej e
e D Z
dddZddZddZdS ) )annotationsN)main)WINDOWSpip. z.exec 8 g | ]}d | S )r )join).0partss q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/utils/entrypoints.py
r s2 argslist[str] | Nonereturnintc ^ t j 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.
a WARNING: 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.
)sysstderrwriter )r s r
_wrapperr s1 J " ::r strc t rdnd} t j t j | }t j t j dd t j
}t j | |v }|rt D ]{}t j
| }t j || }|rCt j | r$t j || r|c S |t! dS )zHTry to figure out the best way to invoke pip in the current environment.ScriptsbinPATHr z -m pip)r ospathr
r prefixnormcaseenvirongetsplitpathsep_EXECUTABLE_NAMESshutilwhichexistssamefile#get_best_invocation_for_this_python)binary_directory
binary_prefix
path_partsexe_are_in_PATHexe_namefound_executablebinary_executables r
get_best_invocation_for_this_pipr3 / s $+6yyGLL-=>>M !!"*.."<"<==CCBJOOJg&&}55CO ) H%|H55 "]H E E
GNN#455
G$$$%
233<<<