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

Skip to content

Commit 9abc25e

Browse files
committed
Enable -t when compiling Python library modules in libinstall (.pyc
version only). Enable -tt for the regression test. Very similar to Skip's patch.
1 parent 3e0910c commit 9abc25e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Modules: Parser Python Objects
234234
# Test the interpreter (twice, once without .pyc files, once with)
235235
TESTOPTS=
236236
TESTPROG= $(srcdir)/Lib/test/regrtest.py
237-
TESTPYTHON= ./python$(EXE)
237+
TESTPYTHON= ./python$(EXE) -tt
238238
test: all
239239
-rm -f $(srcdir)/Lib/test/*.py[co]
240240
-PYTHONPATH= $(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
@@ -346,7 +346,7 @@ libinstall: python $(srcdir)/Lib/$(PLATDIR)
346346
done; \
347347
done
348348
PYTHONPATH=$(LIBDEST) \
349-
./python$(EXE) $(LIBDEST)/compileall.py $(LIBDEST)
349+
./python$(EXE) -t $(LIBDEST)/compileall.py $(LIBDEST)
350350
PYTHONPATH=$(LIBDEST) \
351351
./python$(EXE) -O $(LIBDEST)/compileall.py $(LIBDEST)
352352

0 commit comments

Comments
 (0)