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

Function is_python_build

Lib/sysconfig/__init__.py:222–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 _PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"])
221
222def is_python_build():
223 for fn in ("Setup", "Setup.local"):
224 if os.path.isfile(os.path.join(_PROJECT_BASE, "Modules", fn)):
225 return True
226 return False
227
228_PYTHON_BUILD = is_python_build()
229

Callers 2

__init__.pyFile · 0.85

Calls 2

isfileMethod · 0.45
joinMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…