(path: str)
| 56 | |
| 57 | |
| 58 | def _make_executable(path: str) -> None: |
| 59 | if sys.platform == "win32": |
| 60 | return |
| 61 | try: |
| 62 | mode = os.stat(path).st_mode |
| 63 | os.chmod(path, mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH) |
| 64 | except OSError: |
| 65 | # Read-only store (nix, some CI caches) — the bit may already be set. |
| 66 | pass |
| 67 | |
| 68 | |
| 69 | def locate_binary() -> str: |