X7ROOT File Manager
Current Path:
/usr/lib/python3.8/site-packages/pip/_internal
usr
/
lib
/
python3.8
/
site-packages
/
pip
/
_internal
/
ðŸ“
..
📄
__init__.py
(80 B)
ðŸ“
__pycache__
📄
build_env.py
(7.34 KB)
📄
cache.py
(8.17 KB)
ðŸ“
cli
📄
collector.py
(17.58 KB)
ðŸ“
commands
📄
configuration.py
(13.88 KB)
ðŸ“
distributions
📄
download.py
(20.32 KB)
📄
exceptions.py
(10.01 KB)
📄
index.py
(36.02 KB)
📄
legacy_resolve.py
(16.83 KB)
📄
locations.py
(5.29 KB)
📄
main.py
(1.33 KB)
ðŸ“
models
ðŸ“
network
ðŸ“
operations
📄
pep425tags.py
(15.57 KB)
📄
pyproject.py
(6.34 KB)
ðŸ“
req
📄
self_outdated_check.py
(7.75 KB)
ðŸ“
utils
ðŸ“
vcs
📄
wheel.py
(42.07 KB)
Editing: main.py
"""Primary application entrypoint. """ # The following comment should be removed at some point in the future. # mypy: disallow-untyped-defs=False from __future__ import absolute_import import locale import logging import os import sys from pip._internal.cli.autocompletion import autocomplete from pip._internal.cli.main_parser import parse_command from pip._internal.commands import create_command from pip._internal.exceptions import PipError from pip._internal.utils import deprecation logger = logging.getLogger(__name__) def main(args=None): if args is None: args = sys.argv[1:] # Configure our deprecation warnings to be sent through loggers deprecation.install_warning_logger() autocomplete() try: cmd_name, cmd_args = parse_command(args) except PipError as exc: sys.stderr.write("ERROR: %s" % exc) sys.stderr.write(os.linesep) sys.exit(1) # Needed for locale.getpreferredencoding(False) to work # in pip._internal.utils.encoding.auto_decode try: locale.setlocale(locale.LC_ALL, '') except locale.Error as e: # setlocale can apparently crash if locale are uninitialized logger.debug("Ignoring error %s when setting locale", e) command = create_command(cmd_name, isolated=("--isolated" in cmd_args)) return command.main(cmd_args)
Upload File
Create Folder