[issue4347] Dependencies of graminit.h are not rebuilt when the file is regenerated

Thomas Lee report at bugs.python.org
Tue Dec 2 08:12:19 CET 2008


Thomas Lee <tom at vector-seven.com> added the comment:

A deeper issue here is that Parser/parsetok.c has a dependency on
graminit.h. The problem is that Parser/parsetok.c is a part of the
Parser/pgen program which is actually being used to *generate*
graminit.h in the first place.

This breaks Python whenever syntax is added to or removed from
Grammar/Grammar in such a way that the value of encoding_decl changes,
because the value of encoding_decl used by pgen is different to the
value used to build python itself.

A simple work around for those wishing to change the syntax is a "make;
make clean; make". It'd obviously be nice if the build were fixed, though.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4347>
_______________________________________


More information about the Python-bugs-list mailing list