The path to the build Python binary.
()
| 176 | |
| 177 | |
| 178 | def build_python_path(): |
| 179 | """The path to the build Python binary.""" |
| 180 | build_dir = subdir("build") |
| 181 | binary = build_dir / "python" |
| 182 | if not binary.is_file(): |
| 183 | binary = binary.with_suffix(".exe") |
| 184 | if not binary.is_file(): |
| 185 | raise FileNotFoundError("Unable to find `python(.exe)` in " |
| 186 | f"{build_dir}") |
| 187 | |
| 188 | return binary |
| 189 | |
| 190 | |
| 191 | def configure_build_python(context): |
no test coverage detected
searching dependent graphs…