(check_home=None)
| 217 | _PROJECT_BASE = _safe_realpath(os.environ["_PYTHON_PROJECT_BASE"]) |
| 218 | |
| 219 | def 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 |
no test coverage detected