I was looking at patches found in some cross-build related issues, working
around building pgen during a cross build. However it looks like this can be
solved by just getting the timestamps for the dependencies right, which is
already done for some files. So this should be done for the the GRAMMAR files
too. Would this be ok for the 3.3 branch and trunk?

Then, how and when is this command run, so that you always have the correct time
stamps? is it hg pull && hg update && make -f Makefile.pre.in touch? Would it be
worthwhile to have a shell script python_update which just does this (idea comes
from GCC's contrib/gcc_update script)?

  Matthias
diff -r 6866384d9ccb .hgtouch
--- a/.hgtouch	Sat Jan 26 19:00:20 2013 +0100
+++ b/.hgtouch	Sun Jan 27 20:28:50 2013 +0100
@@ -10,3 +10,6 @@
 Python/opcode_targets.h: Python/makeopcodetargets.py Lib/opcode.py
 
 Objects/typeslots.inc: Include/typeslots.h Objects/typeslots.py
+
+Include/graminit.h: Grammar/Grammar Parser/acceler.c Parser/grammar1.c Parser/listnode.c Parser/node.c Parser/parser.c Parser/bitset.c Parser/metagrammar.c Parser/firstsets.c Parser/grammar.c Parser/pgen.c Objects/obmalloc.c Python/dynamic_annotations.c Python/mysnprintf.c Python/pyctype.c Parser/tokenizer_pgen.c Parser/printgrammar.c Parser/parsetok_pgen.c Parser/pgenmain.c
+Python/graminit.c: Include/graminit.h Grammar/Grammar Parser/acceler.c Parser/grammar1.c Parser/listnode.c Parser/node.c Parser/parser.c Parser/bitset.c Parser/metagrammar.c Parser/firstsets.c Parser/grammar.c Parser/pgen.c Objects/obmalloc.c Python/dynamic_annotations.c Python/mysnprintf.c Python/pyctype.c Parser/tokenizer_pgen.c Parser/printgrammar.c Parser/parsetok_pgen.c Parser/pgenmain.c
_______________________________________________
python-committers mailing list
python-committers@python.org
http://mail.python.org/mailman/listinfo/python-committers

Reply via email to