SILENT KILLERPanel

Current Path: > > opt > hc_python > > lib > python3.12 > > site-packages > pip > _internal > distributions


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/hc_python//lib/python3.12//site-packages/pip/_internal/distributions

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 858 bytes May 23 2025 10:34:25.
base.py File 1783 bytes May 23 2025 10:34:25.
installed.py File 842 bytes May 23 2025 10:34:25.
sdist.py File 6751 bytes May 23 2025 10:34:25.
wheel.py File 1317 bytes May 23 2025 10:34:25.

Reading File: //opt/hc_python//lib/python3.12//site-packages/pip/_internal/distributions/wheel.py

from typing import TYPE_CHECKING, Optional

from pip._vendor.packaging.utils import canonicalize_name

from pip._internal.distributions.base import AbstractDistribution
from pip._internal.metadata import (
    BaseDistribution,
    FilesystemWheel,
    get_wheel_distribution,
)

if TYPE_CHECKING:
    from pip._internal.index.package_finder import PackageFinder


class WheelDistribution(AbstractDistribution):
    """Represents a wheel distribution.

    This does not need any preparation as wheels can be directly unpacked.
    """

    @property
    def build_tracker_id(self) -> Optional[str]:
        return None

    def get_metadata_distribution(self) -> BaseDistribution:
        """Loads the metadata from the wheel file into memory and returns a
        Distribution that uses it, not relying on the wheel file or
        requirement.
        """
        assert self.req.local_file_path, "Set as part of preparation during download"
        assert self.req.name, "Wheels are never unnamed"
        wheel = FilesystemWheel(self.req.local_file_path)
        return get_wheel_distribution(wheel, canonicalize_name(self.req.name))

    def prepare_distribution_metadata(
        self,
        finder: "PackageFinder",
        build_isolation: bool,
        check_build_deps: bool,
    ) -> None:
        pass

SILENT KILLER Tool