|
| 1 | +# Source is https://github.com/python/cpython/pull/1478 |
| 2 | + |
| 3 | +Index: Python-3.6.1/Makefile.pre.in |
| 4 | +=================================================================== |
| 5 | +--- Python-3.6.1.orig/Makefile.pre.in |
| 6 | ++++ Python-3.6.1/Makefile.pre.in |
| 7 | +@@ -1000,7 +1000,7 @@ TESTTIMEOUT= 1200 |
| 8 | + |
| 9 | + # Run a basic set of regression tests. |
| 10 | + # This excludes some tests that are particularly resource-intensive. |
| 11 | +-test: all platform |
| 12 | ++test: @DEF_MAKE_RULE@ platform |
| 13 | + $(TESTRUNNER) $(TESTOPTS) |
| 14 | + |
| 15 | + # Run the full test suite twice - once without .pyc files, and once with. |
| 16 | +@@ -1010,7 +1010,7 @@ test: all platform |
| 17 | + # the bytecode read from a .pyc file had the bug, sometimes the directly |
| 18 | + # generated bytecode. This is sometimes a very shy bug needing a lot of |
| 19 | + # sample data. |
| 20 | +-testall: all platform |
| 21 | ++testall: @DEF_MAKE_RULE@ platform |
| 22 | + -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
| 23 | + $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py |
| 24 | + -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f |
| 25 | +@@ -1019,7 +1019,7 @@ testall: all platform |
| 26 | + |
| 27 | + # Run the test suite for both architectures in a Universal build on OSX. |
| 28 | + # Must be run on an Intel box. |
| 29 | +-testuniversal: all platform |
| 30 | ++testuniversal: @DEF_MAKE_RULE@ platform |
| 31 | + if [ `arch` != 'i386' ];then \ |
| 32 | + echo "This can only be used on OSX/i386" ;\ |
| 33 | + exit 1 ;\ |
| 34 | +@@ -1042,7 +1042,7 @@ QUICKTESTOPTS= $(TESTOPTS) -x test_subpr |
| 35 | + test_multiprocessing_forkserver \ |
| 36 | + test_mailbox test_socket test_poll \ |
| 37 | + test_select test_zipfile test_concurrent_futures |
| 38 | +-quicktest: all platform |
| 39 | ++quicktest: @DEF_MAKE_RULE@ platform |
| 40 | + $(TESTRUNNER) $(QUICKTESTOPTS) |
| 41 | + |
| 42 | + |
| 43 | +@@ -1379,7 +1379,7 @@ LIBPL= @LIBPL@ |
| 44 | + # pkgconfig directory |
| 45 | + LIBPC= $(LIBDIR)/pkgconfig |
| 46 | + |
| 47 | +-libainstall: all python-config |
| 48 | ++libainstall: @DEF_MAKE_RULE@ python-config |
| 49 | + @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \ |
| 50 | + do \ |
| 51 | + if test ! -d $(DESTDIR)$$i; then \ |
| 52 | +@@ -1639,7 +1639,7 @@ distclean: clobber |
| 53 | + -exec rm -f {} ';' |
| 54 | + |
| 55 | + # Check for smelly exported symbols (not starting with Py/_Py) |
| 56 | +-smelly: all |
| 57 | ++smelly: @DEF_MAKE_RULE@ |
| 58 | + nm -p $(LIBRARY) | \ |
| 59 | + sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ |
| 60 | + |
| 61 | +@@ -1676,7 +1676,7 @@ funny: |
| 62 | + -o -print |
| 63 | + |
| 64 | + # Perform some verification checks on any modified files. |
| 65 | +-patchcheck: all |
| 66 | ++patchcheck: @DEF_MAKE_RULE@ |
| 67 | + $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py |
| 68 | + |
| 69 | + # Dependencies |
| 70 | +Index: Python-3.6.1/Misc/ACKS |
| 71 | +=================================================================== |
| 72 | +--- Python-3.6.1.orig/Misc/ACKS |
| 73 | ++++ Python-3.6.1/Misc/ACKS |
| 74 | +@@ -1111,6 +1111,7 @@ Jason Orendorff |
| 75 | + Douglas Orr |
| 76 | + William Orr |
| 77 | + Michele Orrù |
| 78 | ++Tomáš Orsava |
| 79 | + Oleg Oshmyan |
| 80 | + Denis S. Otkidach |
| 81 | + Peter Otten |
| 82 | +Index: Python-3.6.1/Misc/NEWS |
| 83 | +=================================================================== |
| 84 | +--- Python-3.6.1.orig/Misc/NEWS |
| 85 | ++++ Python-3.6.1/Misc/NEWS |
| 86 | +@@ -306,6 +306,10 @@ Tests |
| 87 | + Build |
| 88 | + ----- |
| 89 | + |
| 90 | ++- bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``, |
| 91 | ++ ``make install`` and some other make targets when configured with |
| 92 | ++ ``--enable-optimizations``. |
| 93 | ++ |
| 94 | + - bpo-27593: sys.version and the platform module python_build(), |
| 95 | + python_branch(), and python_revision() functions now use |
| 96 | + git information rather than hg when building from a repo. |
0 commit comments