481137034365ebb026e1320545c77f8d3453ea8a
[feed/packages.git] / lang / python / python3 / patches / 003-do-not-run-distutils-tests.patch
1 --- a/Makefile.pre.in
2 +++ b/Makefile.pre.in
3 @@ -1524,6 +1524,7 @@ libinstall: build_all $(srcdir)/Modules/
4 $(INSTALL_DATA) `cat pybuilddir.txt`/_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH).py \
5 $(DESTDIR)$(LIBDEST); \
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 @@ -1559,6 +1560,7 @@ libinstall: build_all $(srcdir)/Modules/
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
17 # bpo-21536: Misc/python-config.sh is generated in the build directory
18 # from $(srcdir)Misc/python-config.sh.in.