MCPcopy
hub / github.com/pex-tool/pex / install_wheel_flat

Function install_wheel_flat

pex/pep_427.py:718–734  ·  view source on GitHub ↗
(
    wheel,  # type: Union[str, InstallableWheel]
    destination,  # type: str
    copy_mode=CopyMode.LINK,  # type: CopyMode.Value
    compile=False,  # type: bool
)

Source from the content-addressed store, hash-verified

716
717
718def install_wheel_flat(
719 wheel, # type: Union[str, InstallableWheel]
720 destination, # type: str
721 copy_mode=CopyMode.LINK, # type: CopyMode.Value
722 compile=False, # type: bool
723):
724 # type: (...) -> Tuple[Tuple[Text, Text], ...]
725
726 wheel_to_install = (
727 wheel if isinstance(wheel, InstallableWheel) else InstallableWheel.from_whl(wheel)
728 )
729 return install_wheel(
730 wheel_to_install,
731 InstallPaths.flat(destination, wheel=wheel_to_install.wheel),
732 copy_mode=copy_mode,
733 compile=compile,
734 )
735
736
737def _read_record_lines(lines):

Callers 1

reinstall_flatFunction · 0.85

Calls 3

from_whlMethod · 0.80
flatMethod · 0.80
install_wheelFunction · 0.70

Tested by

no test coverage detected