Commit a4341ece authored by Fred Drake's avatar Fred Drake

Enable -t when compiling Python library modules in libinstall (.pyc

version only).

Enable -tt for the regression test.

Very similar to Skip's patch.
parent 74b7864f
...@@ -234,7 +234,7 @@ Modules: Parser Python Objects ...@@ -234,7 +234,7 @@ Modules: Parser Python Objects
# Test the interpreter (twice, once without .pyc files, once with) # Test the interpreter (twice, once without .pyc files, once with)
TESTOPTS= TESTOPTS=
TESTPROG= $(srcdir)/Lib/test/regrtest.py TESTPROG= $(srcdir)/Lib/test/regrtest.py
TESTPYTHON= ./python$(EXE) TESTPYTHON= ./python$(EXE) -tt
test: all test: all
-rm -f $(srcdir)/Lib/test/*.py[co] -rm -f $(srcdir)/Lib/test/*.py[co]
-PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
...@@ -346,7 +346,7 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR) ...@@ -346,7 +346,7 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR)
done; \ done; \
done done
PYTHONPATH=$(LIBDEST) \ PYTHONPATH=$(LIBDEST) \
./python$(EXE) $(LIBDEST)/compileall.py $(LIBDEST) ./python$(EXE) -t $(LIBDEST)/compileall.py $(LIBDEST)
PYTHONPATH=$(LIBDEST) \ PYTHONPATH=$(LIBDEST) \
./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST) ./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment