Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /lib/python3.8/site-packages/pip/_internal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3.8/site-packages/pip/_internal/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)
Name
Size
Permissions
Options
__pycache__
--
drwxr-xr-x
cli
--
drwxr-xr-x
commands
--
drwxr-xr-x
distributions
--
drwxr-xr-x
models
--
drwxr-xr-x
network
--
drwxr-xr-x
operations
--
drwxr-xr-x
req
--
drwxr-xr-x
utils
--
drwxr-xr-x
vcs
--
drwxr-xr-x
__init__.py
0.078 KB
-rw-r--r--
build_env.py
7.341 KB
-rw-r--r--
cache.py
8.175 KB
-rw-r--r--
collector.py
17.585 KB
-rw-r--r--
configuration.py
13.885 KB
-rw-r--r--
download.py
20.317 KB
-rw-r--r--
exceptions.py
10.007 KB
-rw-r--r--
index.py
36.022 KB
-rw-r--r--
legacy_resolve.py
16.83 KB
-rw-r--r--
locations.py
5.287 KB
-rw-r--r--
main.py
1.327 KB
-rw-r--r--
pep425tags.py
15.567 KB
-rw-r--r--
pyproject.py
6.338 KB
-rw-r--r--
self_outdated_check.py
7.748 KB
-rw-r--r--
wheel.py
42.07 KB
-rw-r--r--