Generate the PatternGrammar pickle during "make install".
authorMartin v. Löwis <martin@v.loewis.de>
Fri, 1 Aug 2008 14:10:26 +0000 (14:10 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Fri, 1 Aug 2008 14:10:26 +0000 (14:10 +0000)
Fixes part of #3131.

Makefile.pre.in
Misc/NEWS

index ffb2b0496f811611b0c3bf9e2a36b681b80c037a..d3e8535624504574b95e0c9ec3c137cfed68dfc7 100644 (file)
@@ -895,7 +895,7 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR)
                -d $(LIBDEST)/site-packages -f \
                -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
        -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
-               ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram"
+               ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
 
 # Create the PLATDIR source directory, if one wasn't distributed..
 $(srcdir)/Lib/$(PLATDIR):
index 8aa006a4713475e854ed46e3a6cc6ecd9bd8dab4..28a99e7d0cc2b7606c9e773fe5d367348498ff8f 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -68,6 +68,11 @@ Library
   file name rather than a ZipInfo instance, so files are extracted with
   mode 0600 rather than 000 under Unix.
 
+Build
+-----
+
+- Generate the PatternGrammar pickle during "make install".
+
 
 What's New in Python 2.6 beta 2?
 ================================