Configure the build/host Python.
(context, working_dir)
| 183 | |
| 184 | @subdir(BUILD_DIR, clean_ok=True) |
| 185 | def configure_build_python(context, working_dir): |
| 186 | """Configure the build/host Python.""" |
| 187 | if LOCAL_SETUP.exists(): |
| 188 | if LOCAL_SETUP.read_bytes() == LOCAL_SETUP_MARKER: |
| 189 | log("👍", f"{LOCAL_SETUP} exists ...") |
| 190 | else: |
| 191 | log("⚠️", f"{LOCAL_SETUP} exists, but has unexpected contents") |
| 192 | else: |
| 193 | log("📝", f"Creating {LOCAL_SETUP} ...") |
| 194 | LOCAL_SETUP.write_bytes(LOCAL_SETUP_MARKER) |
| 195 | |
| 196 | configure = [os.path.relpath(CHECKOUT / "configure", working_dir)] |
| 197 | if context.args: |
| 198 | configure.extend(context.args) |
| 199 | |
| 200 | call(configure, context=context) |
| 201 | |
| 202 | |
| 203 | @subdir(BUILD_DIR) |
nothing calls this directly
no test coverage detected
searching dependent graphs…