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.

classification
Title: Parser/asdl_c.py requires python in order to build python
Type: compile error Stage:
Components: Build Versions: Python 3.0, Python 2.6, Python 2.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, gregory.p.smith, theller
Priority: normal Keywords:

Created on 2008-09-14 22:51 by gregory.p.smith, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg73238 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2008-09-14 22:51
Parser/asdl_c.py starts with  "#! /usr/bin/env python"  and is required
when building python.  The prevents python from being built on systems
without an existing python interpreter installed.  Which came first, the
python or the egg?

found when attempting to build python from subversion on FreeBSD 6.3.

This is what make trys to run that fails:

 ./Parser/asdl_c.py -h ./Include Parser/Python.asdl
msg73240 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2008-09-14 23:20
Yes, that's why what it builds is included in the svn repo by default.
You can avoid the build problems by touching Include/Python-ast.h and
Python/Python-ast.c.
msg73340 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2008-09-17 18:44
I think it would be a good idea to change the Makefile so that it
touches these files when no python interpreter is available.
History
Date User Action Args
2022-04-11 14:56:39adminsetgithub: 48120
2008-09-17 18:44:58thellersetnosy: + theller
messages: + msg73340
2008-09-14 23:20:18benjamin.petersonsetstatus: open -> closed
resolution: not a bug
messages: + msg73240
nosy: + benjamin.peterson
2008-09-14 22:52:00gregory.p.smithsettitle: Parser/adsl_c.py requires python in order to build python -> Parser/asdl_c.py requires python in order to build python
2008-09-14 22:51:32gregory.p.smithcreate