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

Function build_python_path

Android/android.py:178–188  ·  view source on GitHub ↗

The path to the build Python binary.

()

Source from the content-addressed store, hash-verified

176
177
178def build_python_path():
179 """The path to the build Python binary."""
180 build_dir = subdir("build")
181 binary = build_dir / "python"
182 if not binary.is_file():
183 binary = binary.with_suffix(".exe")
184 if not binary.is_file():
185 raise FileNotFoundError("Unable to find `python(.exe)` in "
186 f"{build_dir}")
187
188 return binary
189
190
191def configure_build_python(context):

Callers 1

configure_host_pythonFunction · 0.70

Calls 3

subdirFunction · 0.70
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…