This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients benjamin.peterson, malthe, martin.panter, r.david.murray
Date 2016-09-18.00:54:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474160062.22.0.266219159699.issue28143@psf.upfronthosting.co.za>
In-reply-to
Content
This patch ports the logic written for Issue 26662 to Python 2. Basically, configure searches for commands called python2.7, python2, and python (in order of priority), and sets PYTHON_FOR_GEN to the result. PYTHON_FOR_GEN could be overridden by the user if desired. If no Python command is found, the build fails with an error message:

Cannot generate /home/proj/python/cpython/Python/Python-ast.c, python not found !
To skip re-generation of /home/proj/python/cpython/Python/Python-ast.c run <make touch> or <make -t /home/proj/python/cpython/Python/Python-ast.c>.
Otherwise, set python in PATH and run configure or run <make PYTHON_FOR_GEN=python>.
--- Python/Python-ast.c ---
*** [Python/Python-ast.c] Error code 1

However if it finds “python” and that turns out to be version 3, it will still have the same problem as now, and you will have to manually use “make touch” or similar.
History
Date User Action Args
2016-09-18 00:54:22martin.pantersetrecipients: + martin.panter, benjamin.peterson, r.david.murray, malthe
2016-09-18 00:54:22martin.pantersetmessageid: <1474160062.22.0.266219159699.issue28143@psf.upfronthosting.co.za>
2016-09-18 00:54:22martin.panterlinkissue28143 messages
2016-09-18 00:54:21martin.pantercreate