The path to the build Python binary.
(context)
| 215 | |
| 216 | |
| 217 | def build_python_path(context): |
| 218 | """The path to the build Python binary.""" |
| 219 | native_build_dir = context.build_paths["native_build_dir"] |
| 220 | binary = native_build_dir / "python" |
| 221 | if not binary.is_file(): |
| 222 | binary = binary.with_suffix(".exe") |
| 223 | if not binary.is_file(): |
| 224 | raise FileNotFoundError( |
| 225 | f"Unable to find `python(.exe)` in {native_build_dir}" |
| 226 | ) |
| 227 | |
| 228 | return binary |
| 229 | |
| 230 | |
| 231 | def install_emscripten(context): |
no test coverage detected
searching dependent graphs…