[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc
Xavier de Gaye
report at bugs.python.org
Sun Jul 17 13:15:26 EDT 2016
Xavier de Gaye added the comment:
This patch follows the first mechanism listed by Martin. The change in configure.ac fixes the problem described by Victor, it does not generate an empty Objects/typeslots.inc file when python is not found that would cause the cryptic " <class 'RuntimeError'>: invalid slot offset" errors on subsequent builds.
The change in Objects/typeslots.py is not strictly necessary to fix the problem but prevents typeslots.py to create an invalid typeslots.inc file through the previous stdout redirection mechanism when, for example, typeslots.py is modified inadvertently with a change that is not python2 compatible and typeslots.py is run by python2 and fails.
----------
nosy: +xdegaye
stage: -> patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file43767/py_for_gen_26662.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26662>
_______________________________________
More information about the Python-bugs-list
mailing list