$41 GRAYBYTE WORDPRESS FILE MANAGER $39

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/pip/_internal/commands/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/pip/_internal/commands//check.py
import logging
from optparse import Values

from pip._internal.cli.base_command import Command
from pip._internal.cli.status_codes import ERROR, SUCCESS
from pip._internal.metadata import get_default_environment
from pip._internal.operations.check import (
    check_package_set,
    check_unsupported,
    create_package_set_from_installed,
)
from pip._internal.utils.compatibility_tags import get_supported
from pip._internal.utils.misc import write_output

logger = logging.getLogger(__name__)


class CheckCommand(Command):
    """Verify installed packages have compatible dependencies."""

    ignore_require_venv = True
    usage = """
      %prog [options]"""

    def run(self, options: Values, args: list[str]) -> int:
        package_set, parsing_probs = create_package_set_from_installed()
        missing, conflicting = check_package_set(package_set)
        unsupported = list(
            check_unsupported(
                get_default_environment().iter_installed_distributions(),
                get_supported(),
            )
        )

        for project_name in missing:
            version = package_set[project_name].version
            for dependency in missing[project_name]:
                write_output(
                    "%s %s requires %s, which is not installed.",
                    project_name,
                    version,
                    dependency[0],
                )

        for project_name in conflicting:
            version = package_set[project_name].version
            for dep_name, dep_version, req in conflicting[project_name]:
                write_output(
                    "%s %s has requirement %s, but you have %s %s.",
                    project_name,
                    version,
                    req,
                    dep_name,
                    dep_version,
                )
        for package in unsupported:
            write_output(
                "%s %s is not supported on this platform",
                package.raw_name,
                package.version,
            )
        if missing or conflicting or parsing_probs or unsupported:
            return ERROR
        else:
            write_output("No broken requirements found.")
            return SUCCESS


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Dec 2025 9.30 AM
root / root
0755
__pycache__
--
3 Dec 2025 9.30 AM
root / root
0755
__init__.py
3.932 KB
3 Dec 2025 9.30 AM
root / root
0644
cache.py
8.037 KB
3 Dec 2025 9.30 AM
root / root
0644
check.py
2.191 KB
3 Dec 2025 9.30 AM
root / root
0644
completion.py
4.424 KB
3 Dec 2025 9.30 AM
root / root
0644
configuration.py
9.868 KB
3 Dec 2025 9.30 AM
root / root
0644
debug.py
6.646 KB
3 Dec 2025 9.30 AM
root / root
0644
download.py
4.956 KB
3 Dec 2025 9.30 AM
root / root
0644
freeze.py
3.026 KB
3 Dec 2025 9.30 AM
root / root
0644
hash.py
1.64 KB
3 Dec 2025 9.30 AM
root / root
0644
help.py
1.082 KB
3 Dec 2025 9.30 AM
root / root
0644
index.py
5.12 KB
3 Dec 2025 9.30 AM
root / root
0644
inspect.py
3.103 KB
3 Dec 2025 9.30 AM
root / root
0644
install.py
29.758 KB
3 Dec 2025 9.30 AM
root / root
0644
list.py
13.197 KB
3 Dec 2025 9.30 AM
root / root
0644
lock.py
5.661 KB
3 Dec 2025 9.30 AM
root / root
0644
search.py
5.646 KB
3 Dec 2025 9.30 AM
root / root
0644
show.py
7.877 KB
3 Dec 2025 9.30 AM
root / root
0644
uninstall.py
3.777 KB
3 Dec 2025 9.30 AM
root / root
0644
wheel.py
5.872 KB
3 Dec 2025 9.30 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF