Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
DebugCommand Class Reference
Inheritance diagram for DebugCommand:
Collaboration diagram for DebugCommand:

Public Member Functions

None add_options (self)
 
int run (self, Values options, List[str] args)
 
- Public Member Functions inherited from Command
None __init__ (self, str name, str summary, bool isolated=False)
 
None handle_pip_version_check (self, Values options)
 
Tuple[Values, List[str]] parse_args (self, List[str] args)
 
int main (self, List[str] args)
 
- Public Member Functions inherited from CommandContextMixIn
Generator[None, None, Nonemain_context (self)
 
_T enter_context (self, ContextManager[_T] context_provider)
 

Data Fields

 cmd_opts
 
- Data Fields inherited from Command
 name
 
 summary
 
 parser
 
 cmd_opts
 
 tempdir_registry
 
 verbosity
 

Static Public Attributes

str usage
 
bool ignore_require_venv = True
 
- Static Public Attributes inherited from Command
str usage = ""
 
bool ignore_require_venv = False
 

Additional Inherited Members

- Protected Member Functions inherited from Command
int _main (self, List[str] args)
 
- Protected Attributes inherited from CommandContextMixIn
 _in_main_context
 
 _main_context
 

Detailed Description

Display debug information.

Definition at line 156 of file debug.py.

Member Function Documentation

◆ add_options()

None add_options (   self)

Reimplemented from Command.

Definition at line 165 of file debug.py.

165 def add_options(self) -> None:
167 self.parser.insert_option_group(0, self.cmd_opts)
168 self.parser.config.load()
169
for i

◆ run()

int run (   self,
Values  options,
List[str]  args 
)

Reimplemented from Command.

Definition at line 170 of file debug.py.

170 def run(self, options: Values, args: List[str]) -> int:
172 "This command is only meant for debugging. "
173 "Do not use this with automation for parsing and getting these "
174 "details, since the output and options of this command may "
175 "change without notice."
176 )
177 show_value("pip version", get_pip_version())
178 show_value("sys.version", sys.version)
179 show_value("sys.executable", sys.executable)
180 show_value("sys.getdefaultencoding", sys.getdefaultencoding())
181 show_value("sys.getfilesystemencoding", sys.getfilesystemencoding())
182 show_value(
183 "locale.getpreferredencoding",
185 )
186 show_value("sys.platform", sys.platform)
187 show_sys_implementation()
188
189 show_value("'cert' config value", ca_bundle_info(self.parser.config))
190 show_value("REQUESTS_CA_BUNDLE", os.environ.get("REQUESTS_CA_BUNDLE"))
191 show_value("CURL_CA_BUNDLE", os.environ.get("CURL_CA_BUNDLE"))
192 show_value("pip._vendor.certifi.where()", where())
193 show_value("pip._vendor.DEBUNDLED", pip._vendor.DEBUNDLED)
194
195 show_vendor_versions()
196
197 show_tags(options)
198
199 return SUCCESS

References pip._internal.commands.debug.ca_bundle_info(), i, Command.parser, PrettyHelpFormatter.parser, UpdatingDefaultsHelpFormatter.parser, DownloadCommand.parser, IndexCommand.parser, InstallCommand.parser, WheelCommand.parser, pip._internal.commands.debug.show_sys_implementation(), pip._internal.commands.debug.show_tags(), pip._internal.commands.debug.show_value(), and pip._internal.commands.debug.show_vendor_versions().

Here is the call graph for this function:

Field Documentation

◆ cmd_opts

◆ ignore_require_venv

bool ignore_require_venv = True
static

Definition at line 163 of file debug.py.

◆ usage

str usage
static
Initial value:
= """
%prog <options>"""

Definition at line 161 of file debug.py.


The documentation for this class was generated from the following file: