List of commits:
Subject Hash Author Date (UTC)
bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478) a1054c3b0037d4c2a5492e79fc193f36245366c7 torsava 2017-05-05 15:35:50
bpo-29920: Document cgitb.text() and cgitb.html() functions (GH-849) c07b3a15be5e0a68a73b4c532861ed8de6932bd2 masklinn 2017-05-05 08:15:12
bpo-30279: Remove unused Python/thread_foobar.h (#1473) fdaeea620f8c78da89cddba4ab010c64535800e0 Masayuki Yamamoto 2017-05-05 08:04:13
bpo-30264: ExpatParser closes the source on error (#1451) ef9c0e732fc50aefbdd7c5a80e04e14b31684e66 Victor Stinner 2017-05-05 07:46:47
bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and _sre.unicode_tolower(). (#1468) 7186cc29be352bed6f1110873283d073fd0643e4 Serhiy Storchaka 2017-05-05 07:42:46
bpo-30243: Fixed the possibility of a crash in _json. (#1420) 76a3e51a403bc84ed536921866c86dd7d07aaa7e Serhiy Storchaka 2017-05-05 07:08:49
bpo-30215: Make re.compile() locale agnostic. (#1361) 898ff03e1e7925ecde3da66327d3cdc7e07625ba Serhiy Storchaka 2017-05-05 05:53:40
Make code coverage less strict (GH-1438) 647c3d381e67490e82cdbbe6c96e46d5e1628ce2 Brett Cannon 2017-05-04 21:58:54
bpo-30273: Update sysconfig (#1464) b109a1d3360fc4bb87b9887264e3634632d392ca Victor Stinner 2017-05-04 21:29:09
bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319) 6dd4d734ed207ba16b017e38f8909de7ef187e29 Antoine Pitrou 2017-05-04 14:44:53
bpo-30263: regrtest: log system load (#1452) 3d0056842c5e06b4102f990b59ab3b607f932dd8 Victor Stinner 2017-05-04 13:21:12
bpo-29956: Improve the math.exp() related documentation. (#1073) dbaf746b6de0ee431c809d3175ab40ccc18898a8 Serhiy Storchaka 2017-05-04 09:25:09
bpo-30166: Import command-line parsing modules only when needed. (#1293) 7e4db2f253c555568d56177c2fd083bcf8f88d34 Serhiy Storchaka 2017-05-04 05:17:47
bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) 1c4670ea0cc3d208121af11b9b973e6bb268e570 Victor Stinner 2017-05-03 22:45:56
bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316) 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 Serhiy Storchaka 2017-05-03 21:03:23
Add myself to mention-bot's alwaysNotifyForPaths for ssl/hashlib (#1425) feec3dc9c308052754f9e4848c1c1ddb007e9f66 Christian Heimes 2017-05-03 18:17:54
Explicitly mention what should (not) be discussed on GitHub (GH-1437) 7fdd30975e3fa9ec4be62464a9fcab7798d0ed6e Brett Cannon 2017-05-03 17:51:55
bpo-28315: Improve code examples in docs (GH-1372) 8856940cf2e82cb17db2b684cd5732fe658605ca UltimateCoder 2017-05-03 16:46:45
bpo-23404: make touch becomes make regen-all (#1405) a5c62a8e9f0de6c4133825a5710984a3cd5e102b Victor Stinner 2017-05-03 16:21:48
bpo-30103: Allow Uuencode in Python using backtick as zero instead of space (#1326) 13f1f423fac39f8f14a3ce919dd236975517d5c6 Xiang Zhang 2017-05-03 03:16:21
Commit a1054c3b0037d4c2a5492e79fc193f36245366c7 - bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478)
* bpo-29243: Fix Makefile with respect to --enable-optimizations

When using the Profile Guided Optimization (./configure --enable-optimizations)
Python is built not only during `make` but rebuilt again during `make test`,
`make install` and others. This patch fixes the issue.

Note that this fix produces no change at all in the Makefile if configure is
run witout --enable-optimizations.

* !squash
Author: torsava
Author date (UTC): 2017-05-05 15:35
Committer name: Victor Stinner
Committer date (UTC): 2017-05-05 15:35
Parent(s): c07b3a15be5e0a68a73b4c532861ed8de6932bd2
Signing key:
Tree: b8c35a169117004996d98ca1fe6aaec5efa363ca
File Lines added Lines deleted
Makefile.pre.in 7 7
Misc/ACKS 1 0
Misc/NEWS 4 0
File Makefile.pre.in changed (mode: 100644) (index 12593a2b63..c40a198101)
... ... TESTTIMEOUT= 1200
999 999
1000 1000 # Run a basic set of regression tests. # Run a basic set of regression tests.
1001 1001 # This excludes some tests that are particularly resource-intensive. # This excludes some tests that are particularly resource-intensive.
1002 test: all platform
1002 test: @DEF_MAKE_RULE@ platform
1003 1003 $(TESTRUNNER) $(TESTOPTS) $(TESTRUNNER) $(TESTOPTS)
1004 1004
1005 1005 # Run the full test suite twice - once without .pyc files, and once with. # Run the full test suite twice - once without .pyc files, and once with.
 
... ... test: all platform
1009 1009 # the bytecode read from a .pyc file had the bug, sometimes the directly # the bytecode read from a .pyc file had the bug, sometimes the directly
1010 1010 # generated bytecode. This is sometimes a very shy bug needing a lot of # generated bytecode. This is sometimes a very shy bug needing a lot of
1011 1011 # sample data. # sample data.
1012 testall: all platform
1012 testall: @DEF_MAKE_RULE@ platform
1013 1013 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
1014 1014 $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py $(TESTPYTHON) -E $(srcdir)/Lib/compileall.py
1015 1015 -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
 
... ... testall: all platform
1018 1018
1019 1019 # Run the test suite for both architectures in a Universal build on OSX. # Run the test suite for both architectures in a Universal build on OSX.
1020 1020 # Must be run on an Intel box. # Must be run on an Intel box.
1021 testuniversal: all platform
1021 testuniversal: @DEF_MAKE_RULE@ platform
1022 1022 @if [ `arch` != 'i386' ]; then \ @if [ `arch` != 'i386' ]; then \
1023 1023 echo "This can only be used on OSX/i386" ;\ echo "This can only be used on OSX/i386" ;\
1024 1024 exit 1 ;\ exit 1 ;\
 
... ... QUICKTESTOPTS= $(TESTOPTS) -x test_subprocess test_io test_lib2to3 \
1041 1041 test_multiprocessing_forkserver \ test_multiprocessing_forkserver \
1042 1042 test_mailbox test_socket test_poll \ test_mailbox test_socket test_poll \
1043 1043 test_select test_zipfile test_concurrent_futures test_select test_zipfile test_concurrent_futures
1044 quicktest: all platform
1044 quicktest: @DEF_MAKE_RULE@ platform
1045 1045 $(TESTRUNNER) $(QUICKTESTOPTS) $(TESTRUNNER) $(QUICKTESTOPTS)
1046 1046
1047 1047
 
... ... LIBPL= @LIBPL@
1378 1378 # pkgconfig directory # pkgconfig directory
1379 1379 LIBPC= $(LIBDIR)/pkgconfig LIBPC= $(LIBDIR)/pkgconfig
1380 1380
1381 libainstall: all python-config
1381 libainstall: @DEF_MAKE_RULE@ python-config
1382 1382 @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \ @for i in $(LIBDIR) $(LIBPL) $(LIBPC); \
1383 1383 do \ do \
1384 1384 if test ! -d $(DESTDIR)$$i; then \ if test ! -d $(DESTDIR)$$i; then \
 
... ... distclean: clobber
1640 1640 -exec rm -f {} ';' -exec rm -f {} ';'
1641 1641
1642 1642 # Check for smelly exported symbols (not starting with Py/_Py) # Check for smelly exported symbols (not starting with Py/_Py)
1643 smelly: all
1643 smelly: @DEF_MAKE_RULE@
1644 1644 nm -p $(LIBRARY) | \ nm -p $(LIBRARY) | \
1645 1645 sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \ sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
1646 1646
 
... ... funny:
1677 1677 -o -print -o -print
1678 1678
1679 1679 # Perform some verification checks on any modified files. # Perform some verification checks on any modified files.
1680 patchcheck: all
1680 patchcheck: @DEF_MAKE_RULE@
1681 1681 $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py $(RUNSHARED) ./$(BUILDPYTHON) $(srcdir)/Tools/scripts/patchcheck.py
1682 1682
1683 1683 # Dependencies # Dependencies
File Misc/ACKS changed (mode: 100644) (index fb62b5b56a..6f80ab749a)
... ... Bastien Orivel
1120 1120 Douglas Orr Douglas Orr
1121 1121 William Orr William Orr
1122 1122 Michele Orrù Michele Orrù
1123 Tomáš Orsava
1123 1124 Oleg Oshmyan Oleg Oshmyan
1124 1125 Denis S. Otkidach Denis S. Otkidach
1125 1126 Peter Otten Peter Otten
File Misc/NEWS changed (mode: 100644) (index 4500021f04..25619efddf)
... ... Documentation
1037 1037 Build Build
1038 1038 ----- -----
1039 1039
1040 - bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``,
1041 ``make install`` and some other make targets when configured with
1042 ``--enable-optimizations``.
1043
1040 1044 - bpo-23404: Don't regenerate generated files based on file modification time - bpo-23404: Don't regenerate generated files based on file modification time
1041 1045 anymore: the action is now explicit. Replace ``make touch`` with anymore: the action is now explicit. Replace ``make touch`` with
1042 1046 ``make regen-all``. ``make regen-all``.
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main