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

Skip to content

Commit a29eafa

Browse files
committed
Suppress warnings when byte-compiling the installed library modules.
This seems the sanest thing to do.
1 parent f0253f2 commit a29eafa

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Makefile.pre.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -669,10 +669,11 @@ libinstall: $(BUILDPYTHON) $(srcdir)/Lib/$(PLATDIR)
669669
done
670670
$(INSTALL_DATA) $(srcdir)/LICENSE $(LIBDEST)/LICENSE.txt
671671
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
672-
./$(BUILDPYTHON) -tt $(LIBDEST)/compileall.py -x badsyntax \
673-
$(LIBDEST)
672+
./$(BUILDPYTHON) -Wi -tt $(LIBDEST)/compileall.py \
673+
-x badsyntax $(LIBDEST)
674674
PYTHONPATH=$(LIBDEST) $(RUNSHARED) \
675-
./$(BUILDPYTHON) -O $(LIBDEST)/compileall.py -x badsyntax $(LIBDEST)
675+
./$(BUILDPYTHON) -Wi -tt -O $(LIBDEST)/compileall.py \
676+
-x badsyntax $(LIBDEST)
676677

677678
# Create the PLATDIR source directory, if one wasn't distributed..
678679
$(srcdir)/Lib/$(PLATDIR):

0 commit comments

Comments
 (0)