]> granicus.if.org Git - python/commitdiff
Install lib2to3.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 22 Mar 2008 00:02:41 +0000 (00:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 22 Mar 2008 00:02:41 +0000 (00:02 +0000)
Makefile.pre.in

index 4edc784087759e4e7560a519051b470df0136df7..f6934a9f910f635f40de6efb8cabe3be94574cb2 100644 (file)
@@ -780,6 +780,7 @@ LIBSUBDIRS= lib-tk site-packages test test/output test/data \
                email email/mime email/test email/test/data \
                sqlite3 sqlite3/test \
                logging bsddb bsddb/test csv wsgiref \
+               lib2to3 lib2to3/fixes lib2to3/pgen2 \
                ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons \
                distutils distutils/command distutils/tests $(XMLLIBSUBDIRS) \
                setuptools setuptools/command setuptools/tests setuptools.egg-info \
@@ -856,6 +857,8 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR)
                ./$(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"
 
 # Create the PLATDIR source directory, if one wasn't distributed..
 $(srcdir)/Lib/$(PLATDIR):