003-do-not-compile-tests-at-build.patch 779 B

123456789101112131415161718
  1. --- a/Makefile.pre.in
  2. +++ b/Makefile.pre.in
  3. @@ -1110,6 +1110,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
  4. done; \
  5. done
  6. $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
  7. +ifeq (@COMPILE_ALL_TESTS@,yes)
  8. if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
  9. $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
  10. $(DESTDIR)$(LIBDEST)/distutils/tests ; \
  11. @@ -1136,6 +1137,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL
  12. $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
  13. -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
  14. $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
  15. +endif
  16. # Create the PLATDIR source directory, if one wasn't distributed..
  17. $(srcdir)/Lib/$(PLATDIR):