Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor Namespace Reference

Namespaces

namespace  cachecontrol
 
namespace  certifi
 
namespace  chardet
 
namespace  colorama
 
namespace  distlib
 
namespace  distro
 
namespace  idna
 
namespace  msgpack
 
namespace  packaging
 
namespace  pkg_resources
 
namespace  platformdirs
 
namespace  pygments
 
namespace  pyparsing
 
namespace  pyproject_hooks
 
namespace  requests
 
namespace  resolvelib
 
namespace  rich
 
namespace  six
 
namespace  tenacity
 
namespace  tomli
 
namespace  typing_extensions
 
namespace  urllib3
 
namespace  webencodings
 

Functions

 vendored (modulename)
 

Variables

bool DEBUNDLED = False
 
 WHEEL_DIR = os.path.abspath(os.path.dirname(__file__))
 

Detailed Description

pip._vendor is for vendoring dependencies of pip to prevent needing pip to
depend on something external.

Files inside of pip._vendor should be considered immutable and should only be
updated to versions from upstream.

Function Documentation

◆ vendored()

vendored (   modulename)

Definition at line 29 of file __init__.py.

29def vendored(modulename):
30 vendored_name = "{0}.{1}".format(__name__, modulename)
31
32 try:
33 __import__(modulename, globals(), locals(), level=0)
34 except ImportError:
35 # We can just silently allow import failures to pass here. If we
36 # got to this point it means that ``import pip._vendor.whatever``
37 # failed and so did ``import whatever``. Since we're importing this
38 # upfront in an attempt to alias imports, not erroring here will
39 # just mean we get a regular import error whenever pip *actually*
40 # tries to import one of these modules to use it, which actually
41 # gives us a better error message than we would have otherwise
42 # gotten.
43 pass
44 else:
45 sys.modules[vendored_name] = sys.modules[modulename]
46 base, head = vendored_name.rsplit(".", 1)
47 setattr(sys.modules[base], head, sys.modules[modulename])
48
49
50# If we're operating in a debundled setup, then we want to go ahead and trigger
51# the aliasing of our vendored libraries as well as looking for wheels to add
52# to our sys.path. This will cause all of this code to be a no-op typically
53# however downstream redistributors can enable it in a consistent way across
54# all platforms.
for i

References i, and pip._vendor.vendored().

Referenced by pip._vendor.vendored().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEBUNDLED

bool DEBUNDLED = False

Definition at line 17 of file __init__.py.

◆ WHEEL_DIR

WHEEL_DIR = os.path.abspath(os.path.dirname(__file__))

Definition at line 23 of file __init__.py.