MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / is_python_build

Function is_python_build

tools/python-3.11.9-amd64/Lib/sysconfig.py:219–227  ·  view source on GitHub ↗
(check_home=None)

Source from the content-addressed store, hash-verified

217 _PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"])
218
219def is_python_build(check_home=None):
220 if check_home is not None:
221 import warnings
222 warnings.warn("check_home argument is deprecated and ignored.",
223 DeprecationWarning, stacklevel=2)
224 for fn in ("Setup", "Setup.local"):
225 if os.path.isfile(os.path.join(_PROJECT_BASE, "Modules", fn)):
226 return True
227 return False
228
229_PYTHON_BUILD = is_python_build()
230

Callers 1

sysconfig.pyFile · 0.85

Calls 3

warnMethod · 0.45
isfileMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected