@@ -1017,6 +1017,8 @@ LIBSUBDIRS= tkinter tkinter/test tkinter/test/test_tkinter \
10171017 venv venv/scripts venv/scripts/posix \
10181018 curses pydoc_data $(MACHDEPS)
10191019libinstall: 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
0 commit comments