[issue23746] sysconfg.is_python_build() is buggy
STINNER Victor
report at bugs.python.org
Mon Mar 23 10:53:27 CET 2015
STINNER Victor added the comment:
> On second thoughts, why have such a function if it works correctly only when executed from source Cpython folder using source CPython executable and not otherwise ?
It's useful to know such information. Python behaves a little bit
differently when run from the source code (not installed).
Example of usage of this function:
Lib/test/test_asdl_parser.py:12:if not sysconfig.is_python_build():
Lib/test/test_gdb.py:38:if not sysconfig.is_python_build():
Lib/test/test_pyexpat.py:448: if sysconfig.is_python_build():
Lib/test/test_subprocess.py:415:
@unittest.skipIf(sysconfig.is_python_build(),
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23746>
_______________________________________
More information about the Python-bugs-list
mailing list