[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc
Martin Panter
report at bugs.python.org
Wed Jul 20 23:05:36 EDT 2016
Martin Panter added the comment:
The new patch looks good enough.
The main reason I complained about the error message is that it sounds like you need Python in order to build Python. Obviously you need Python to run a modified file like typeslots.py, but there is supposed to be an alternative if you don’t need to regenerate files. I think running “make touch” should fudge the timestamps so that Make does not run it. It works for me:
$ touch Objects/typeslots.py
$ make touch
cd .; \
hg --config extensions.touch=Tools/hg/hgtouch.py touch -v
Touching Objects/typeslots.inc
$ make # Does not run typeslots.py
gcc [. . .] Objects/typeobject.c
[. . .]
Unfortunately, I understand “make touch” requires Mercurial, which requires Python 2. That weakens my argument about bootstrapping Python, but it is still valid in some scenarios. Maybe we should recommend “make -t Objects/typeslots.inc” etc instead of “make touch”.
----------
stage: patch review -> commit review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26662>
_______________________________________
More information about the Python-bugs-list
mailing list