MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / restore_and_remove

Function restore_and_remove

Scripts/Developer Base/Mobile Developer Setup.py:733–748  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

731
732 return all_ok
733
734
735
736# -----------------------------------------------------------------------------
737# Python developer tools
738# -----------------------------------------------------------------------------
739
740
741def python_pip_available() -> bool:
742 python_bin = shutil.which("python") or shutil.which("python3")
743 if not python_bin:
744 return False
745 result = run_cmd([python_bin, "-m", "pip", "--version"], capture=True, check=False)
746 return result.returncode == 0
747
748
749def install_python_developer_tools(*, update: bool = False) -> bool:
750 """Install required developer tools whose supported distribution path is PyPI."""
751 header("Installing required Python developer tools")

Callers 1

menuFunction · 0.70

Calls 7

printFunction · 0.85
is_termuxFunction · 0.70
cFunction · 0.70
headerFunction · 0.70
restore_backupFunction · 0.70
uninstall_files_onlyFunction · 0.70

Tested by

no test coverage detected