MCPcopy Index your code
hub / github.com/python/cpython / configure_build_python

Function configure_build_python

Platforms/WASI/_build.py:185–200  ·  view source on GitHub ↗

Configure the build/host Python.

(context, working_dir)

Source from the content-addressed store, hash-verified

183
184@subdir(BUILD_DIR, clean_ok=True)
185def 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)

Callers

nothing calls this directly

Calls 6

logFunction · 0.70
callFunction · 0.70
existsMethod · 0.45
read_bytesMethod · 0.45
write_bytesMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…