=
=
=
"""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.
"""
return
"""Try to figure out the best way to invoke pip in the current environment."""
=
=
# Try to use pip[X[.Y]] names, if those executables for this environment are
# the first on PATH with that name.
=
= in
=
=
return
# Use the `-m` invocation, if there's no "nice" invocation.
return f
"""Try to figure out the best way to invoke the current Python."""
=
=
# Try to use the basename, if it's the first executable.
=
return
# Use the full executable name, because we couldn't find something simpler.
return