From 8622f09d98c2f139df451064b9bc142c22cf7112 Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Wed, 22 Aug 2012 23:26:06 -0700 Subject: [PATCH] Issue #15645: Ensure 2to3 grammar pickles are properly installed. (Patch by Ronald Oussoren) --- Makefile.pre.in | 6 +++--- Misc/NEWS | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.pre.in b/Makefile.pre.in index 45ca77484cff..484ae0141685 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -879,6 +879,8 @@ LIBSUBDIRS= lib-tk lib-tk/test lib-tk/test/test_tkinter \ lib-old \ curses pydoc_data $(MACHDEPS) libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c + -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ + ./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()" @for i in $(SCRIPTDIR) $(LIBDEST); \ do \ if test ! -d $(DESTDIR)$$i; then \ @@ -956,8 +958,6 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ -d $(LIBDEST)/site-packages -f \ -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages - -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ - ./$(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): @@ -1195,7 +1195,7 @@ clean: pycremoval find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';' find build -name 'fficonfig.h' -exec rm -f {} ';' || true find build -name 'fficonfig.py' -exec rm -f {} ';' || true - -rm -f Lib/lib2to3/*Grammar*.pickle + -rm -f $(srcdir)/Lib/lib2to3/*Grammar*.pickle profile-removal: find . -name '*.gc??' -exec rm -f {} ';' diff --git a/Misc/NEWS b/Misc/NEWS index 895f31f373de..964d09561b1d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -353,6 +353,8 @@ Tests Build ----- +- Issue #15645: Ensure 2to3 grammar pickles are properly installed. + - Issue #15560: Fix building _sqlite3 extension on OS X with an SDK. - Issue #8847: Disable COMDAT folding in Windows PGO builds. -- 2.47.3