Make/build the build Python.
(context, working_dir)
| 275 | |
| 276 | @subdir("native_build_dir") |
| 277 | def make_build_python(context, working_dir): |
| 278 | """Make/build the build Python.""" |
| 279 | call(["make", "--jobs", str(cpu_count()), "all"], quiet=context.quiet) |
| 280 | |
| 281 | binary = build_python_path(context) |
| 282 | cmd = [ |
| 283 | binary, |
| 284 | "-c", |
| 285 | "import sys; " |
| 286 | "print(f'{sys.version_info.major}.{sys.version_info.minor}')", |
| 287 | ] |
| 288 | version = subprocess.check_output(cmd, encoding="utf-8").strip() |
| 289 | |
| 290 | print(f"🎉 {binary} {version}") |
| 291 | |
| 292 | |
| 293 | def check_shasum(file: str, expected_shasum: str): |
nothing calls this directly
no test coverage detected
searching dependent graphs…