| 748 | |
| 749 | def 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") |
| 752 | python_bin = shutil.which("python") or shutil.which("python3") |
| 753 | if not python_bin: |
| 754 | SUMMARY.failure("Python is unavailable, so Python developer tools cannot be installed") |
| 755 | return False |
| 756 | if not python_pip_available(): |
| 757 | SUMMARY.failure("python-pip is unavailable. Run Repair after python-pip is installed") |
| 758 | return False |