Find out if the build Python is a pydebug build.
()
| 172 | |
| 173 | |
| 174 | def 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) |
no test coverage detected
searching dependent graphs…