Generate the PatternGrammar pickle during "make install".

Fixes part of #3131.
This commit is contained in:
Martin v. Löwis 2008-08-01 14:10:26 +00:00
parent dadcd1fd50
commit 8dbf3649e2
2 changed files with 6 additions and 1 deletions

View 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):

View File

@ -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?
================================