The path to the build Python binary.
()
| 159 | |
| 160 | |
| 161 | def build_python_path(): |
| 162 | """The path to the build Python binary.""" |
| 163 | binary = BUILD_DIR / "python" |
| 164 | if not binary.is_file(): |
| 165 | binary = binary.with_suffix(".exe") |
| 166 | if not binary.is_file(): |
| 167 | raise FileNotFoundError( |
| 168 | f"Unable to find `python(.exe)` in {BUILD_DIR}" |
| 169 | ) |
| 170 | |
| 171 | return binary |
| 172 | |
| 173 | |
| 174 | def build_python_is_pydebug(): |
no test coverage detected
searching dependent graphs…