The path to the build Python binary.
()
| 206 | |
| 207 | |
| 208 | def build_python_path() -> Path: |
| 209 | """The path to the build Python binary.""" |
| 210 | build_dir = subdir("build") |
| 211 | binary = build_dir / "python" |
| 212 | if not binary.is_file(): |
| 213 | binary = binary.with_suffix(".exe") |
| 214 | if not binary.is_file(): |
| 215 | raise FileNotFoundError( |
| 216 | f"Unable to find `python(.exe)` in {build_dir}" |
| 217 | ) |
| 218 | |
| 219 | return binary |
| 220 | |
| 221 | |
| 222 | @contextmanager |
no test coverage detected
searching dependent graphs…