Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fc81d7

Browse files
committed
Issue #15645: Ensure 2to3 grammar pickles are properly installed.
(Patch by Ronald Oussoren)
1 parent 12d1f67 commit 6fc81d7

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,8 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
10171017
venv venv/scripts venv/scripts/posix \
10181018
curses pydoc_data $(MACHDEPS)
10191019
libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
1020+
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1021+
$(PYTHON_FOR_BUILD) -Wi -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
10201022
@for i in $(SCRIPTDIR) $(LIBDEST); \
10211023
do \
10221024
if test ! -d $(DESTDIR)$$i; then \
@@ -1094,8 +1096,6 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
10941096
$(PYTHON_FOR_BUILD) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
10951097
-d $(LIBDEST)/site-packages -f \
10961098
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
1097-
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
1098-
$(PYTHON_FOR_BUILD) -Wi -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
10991099

11001100
# Create the PLATDIR source directory, if one wasn't distributed..
11011101
$(srcdir)/Lib/$(PLATDIR):
@@ -1340,7 +1340,7 @@ clean: pycremoval
13401340
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
13411341
find build -name 'fficonfig.h' -exec rm -f {} ';' || true
13421342
find build -name 'fficonfig.py' -exec rm -f {} ';' || true
1343-
-rm -f Lib/lib2to3/*Grammar*.pickle
1343+
-rm -f $(srcdir)/Lib/lib2to3/*Grammar*.pickle
13441344
-rm -f $(SYSCONFIGDATA)
13451345
-rm -f Modules/_testembed Modules/_freeze_importlib
13461346

Misc/NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ Tests
105105
- Issue #15615: Add some tests for the json module's handling of invalid
106106
input data. Patch by Kushal Das.
107107

108+
Build
109+
-----
110+
111+
- Issue #15645: Ensure 2to3 grammar pickles are properly installed.
112+
108113

109114
What's New in Python 3.3.0 Beta 2?
110115
==================================

0 commit comments

Comments
 (0)