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

Function build_python_path

Platforms/emscripten/__main__.py:217–228  ·  view source on GitHub ↗

The path to the build Python binary.

(context)

Source from the content-addressed store, hash-verified

215
216
217def 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
231def install_emscripten(context):

Callers 2

make_build_pythonFunction · 0.70

Calls 2

is_fileMethod · 0.45
with_suffixMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…