()
| 731 | |
| 732 | return all_ok |
| 733 | |
| 734 | |
| 735 | |
| 736 | # ----------------------------------------------------------------------------- |
| 737 | # Python developer tools |
| 738 | # ----------------------------------------------------------------------------- |
| 739 | |
| 740 | |
| 741 | def 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 | |
| 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") |
no test coverage detected