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

Function build_python_is_pydebug

Platforms/WASI/_build.py:174–181  ·  view source on GitHub ↗

Find out if the build Python is a pydebug build.

()

Source from the content-addressed store, hash-verified

172
173
174def build_python_is_pydebug():
175 """Find out if the build Python is a pydebug build."""
176 test = "import sys, test.support; sys.exit(test.support.Py_DEBUG)"
177 result = subprocess.run(
178 [build_python_path(), "-c", test],
179 capture_output=True,
180 )
181 return bool(result.returncode)
182
183
184@subdir(BUILD_DIR, clean_ok=True)

Callers 1

configure_wasi_pythonFunction · 0.85

Calls 2

build_python_pathFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…