]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Rename the new --with-optimiations flag to --enable-optimizations.
authorGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sun, 20 Nov 2016 21:13:16 +0000 (21:13 +0000)
committerGregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) <greg@krypto.org>
Sun, 20 Nov 2016 21:13:16 +0000 (21:13 +0000)
1  2 
Misc/NEWS
configure
configure.ac

diff --cc Misc/NEWS
index b91badfcde63415650c728ac615c425c824048b2,7c6c158fc7d376a5275f9930596f83bba06a30a7..8b3dcf882bb6b99f82068a817f194459c28d6824
+++ b/Misc/NEWS
@@@ -854,245 -301,13 +854,247 @@@ Librar
    - fix crash in _get_type_vars() (upstream #259)
    - Remove the dict constraint in ForwardRef._eval_type (upstream #252)
  
 -- Issue #27539: Fix unnormalised ``Fraction.__pow__`` result in the case
 -  of negative exponent and negative base.
 +- Issue #27832: Make ``_normalize`` parameter to ``Fraction`` constuctor
 +  keyword-only, so that ``Fraction(2, 3, 4)`` now raises ``TypeError``.
 +
 +- Issue #27539: Fix unnormalised ``Fraction.__pow__`` result in the case
 +  of negative exponent and negative base.
 +
 +- Issue #21718: cursor.description is now available for queries using CTEs.
 +
 +- Issue #27819: In distutils sdists, simply produce the "gztar" (gzipped tar
 +  format) distributions on all platforms unless "formats" is supplied.
 +
 +- Issue #2466: posixpath.ismount now correctly recognizes mount points which
 +  the user does not have permission to access.
 +
 +- Issue #9998: On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH
 +  for shared libraries.
 +
 +- Issue #27573: exit message for code.interact is now configurable.
 +
 +- Issue #27930: Improved behaviour of logging.handlers.QueueListener.
 +  Thanks to Paulo Andrade and Petr Viktorin for the analysis and patch.
 +
 +- Issue #6766: Distributed reference counting added to multiprocessing
 +  to support nesting of shared values / proxy objects.
 +
 +- Issue #21201: Improves readability of multiprocessing error message.  Thanks
 +  to Wojciech Walczak for patch.
 +
 +- asyncio: Add set_protocol / get_protocol to Transports.
 +
 +- Issue #27456: asyncio: Set TCP_NODELAY by default.
 +
 +IDLE
 +----
 +
 +- Issue #15308: Add 'interrupt execution' (^C) to Shell menu.
 +  Patch by Roger Serwy, updated by Bayard Randel.
 +
 +- Issue #27922: Stop IDLE tests from 'flashing' gui widgets on the screen.
 +
 +- Issue #27891: Consistently group and sort imports within idlelib modules.
 +
 +- Issue #17642: add larger font sizes for classroom projection.
 +
 +- Add version to title of IDLE help window.
 +
 +- Issue #25564: In section on IDLE -- console differences, mention that
 +  using exec means that __builtins__ is defined for each statement.
 +
 +- Issue #27821: Fix 3.6.0a3 regression that prevented custom key sets
 +  from being selected when no custom theme was defined.
 +
 +C API
 +-----
 +
 +- Issue #26900: Excluded underscored names and other private API from limited API.
 +
 +- Issue #26027: Add support for path-like objects in PyUnicode_FSConverter() &
 +  PyUnicode_FSDecoder().
 +
 +Tests
 +-----
 +
 +- Issue #27427: Additional tests for the math module. Patch by Francisco Couzo.
 +
 +- Issue #27953: Skip math and cmath tests that fail on OS X 10.4 due to a
 +  poor libm implementation of tan.
 +
 +- Issue #26040: Improve test_math and test_cmath coverage and rigour. Patch by
 +  Jeff Allen.
 +
 +- Issue #27787: Call gc.collect() before checking each test for "dangling
 +  threads", since the dangling threads are weak references.
 +
 +Build
 +-----
 +
++- Issue #26359: Rename --with-optimiations to --enable-optimizations.
++
 +- Issue #27566: Fix clean target in freeze makefile (patch by Lisa Roach)
 +
 +- Issue #27705: Update message in validate_ucrtbase.py
 +
 +- Issue #27976: Deprecate building _ctypes with the bundled copy of libffi on
 +  non-OSX UNIX platforms.
 +
 +- Issue #27983: Cause lack of llvm-profdata tool when using clang as
 +  required for PGO linking to be a configure time error rather than
 +  make time when --with-optimizations is enabled.  Also improve our
 +  ability to find the llvm-profdata tool on MacOS and some Linuxes.
 +
 +- Issue #21590: Support for DTrace and SystemTap probes.
 +
 +- Issue #26307: The profile-opt build now applies PGO to the built-in modules.
 +
 +- Issue #26539: Add the --with-optimizations flag to turn on LTO and PGO build
 +  support when available.
 +
 +- Issue #27917: Set platform triplets for Android builds.
 +
 +- Issue #25825: Update references to the $(LIBPL) installation path on AIX.
 +  This path was changed in 3.2a4.
 +
 +- Update OS X installer to use SQLite 3.14.1 and XZ 5.2.2.
 +
 +- Issue #21122: Fix LTO builds on OS X.
 +
 +- Issue #17128: Build OS X installer with a private copy of OpenSSL.
 +  Also provide a sample Install Certificates command script to install a
 +  set of root certificates from the third-party certifi module.
 +
 +Tools/Demos
 +-----------
 +
 +- Issue #27952: Get Tools/scripts/fixcid.py working with Python 3 and the
 +  current "re" module, avoid invalid Python backslash escapes, and fix a bug
 +  parsing escaped C quote signs.
 +
 +Windows
 +-------
 +
 +- Issue #28065: Update xz dependency to 5.2.2 and build it from source.
 +
 +- Issue #25144: Ensures TargetDir is set before continuing with custom
 +  install.
 +
 +- Issue #1602: Windows console doesn't input or print Unicode (PEP 528)
 +
 +- Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)
 +
 +- Issue #27731: Opt-out of MAX_PATH on Windows 10
 +
 +- Issue #6135: Adds encoding and errors parameters to subprocess.
 +
 +- Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to
 +  codec lookup.
 +
 +- Issue #27982: The functions of the winsound module now accept keyword
 +  arguments.
 +
 +- Issue #20366: Build full text search support into SQLite on Windows.
 +
 +- Issue #27756: Adds new icons for Python files and processes on Windows.
 +  Designs by Cherry Wang.
 +
 +- Issue #27883: Update sqlite to 3.14.1.0 on Windows.
 +
 +
 +What's New in Python 3.6.0 alpha 4
 +==================================
 +
 +*Release date: 2016-08-15*
 +
 +Core and Builtins
 +-----------------
 +
 +- Issue #27704: Optimized creating bytes and bytearray from byte-like objects
 +  and iterables.  Speed up to 3 times for short objects.  Original patch by
 +  Naoki Inada.
 +
 +- Issue #26823: Large sections of repeated lines in tracebacks are now
 +  abbreviated as "[Previous line repeated {count} more times]" by the builtin
 +  traceback rendering. Patch by Emanuel Barry.
 +
 +- Issue #27574: Decreased an overhead of parsing keyword arguments in functions
 +  implemented with using Argument Clinic.
 +
 +- Issue #22557: Now importing already imported modules is up to 2.5 times
 +  faster.
 +
 +- Issue #17596: Include <wincrypt.h> to help with Min GW building.
 +
 +- Issue #17599: On Windows, rename the privately defined REPARSE_DATA_BUFFER
 +  structure to avoid conflicting with the definition from Min GW.
 +
 +- Issue #27507: Add integer overflow check in bytearray.extend().  Patch by
 +  Xiang Zhang.
 +
 +- Issue #27581: Don't rely on wrapping for overflow check in
 +  PySequence_Tuple().  Patch by Xiang Zhang.
 +
 +- Issue #1621: Avoid signed integer overflow in list and tuple operations.
 +  Patch by Xiang Zhang.
 +
 +- Issue #27419: Standard __import__() no longer look up "__import__" in globals
 +  or builtins for importing submodules or "from import".  Fixed a crash if
 +  raise a warning about unabling to resolve package from __spec__ or
 +  __package__.
 +
 +- Issue #27083: Respect the PYTHONCASEOK environment variable under Windows.
 +
 +- Issue #27514: Make having too many statically nested blocks a SyntaxError
 +  instead of SystemError.
 +
 +- Issue #27366: Implemented PEP 487 (Simpler customization of class creation).
 +  Upon subclassing, the __init_subclass__ classmethod is called on the base
 +  class. Descriptors are initialized with __set_name__ after class creation.
 +
 +Library
 +-------
 +
 +- Issue #26027, #27524: Add PEP 519/__fspath__() support to the os and os.path
 +  modules. Includes code from Jelle Zijlstra.
 +
 +- Issue #27598: Add Collections to collections.abc.
 +  Patch by Ivan Levkivskyi, docs by Neil Girdhar.
 +
 +- Issue #25958: Support "anti-registration" of special methods from
 +  various ABCs, like __hash__, __iter__ or __len__.  All these (and
 +  several more) can be set to None in an implementation class and the
 +  behavior will be as if the method is not defined at all.
 +  (Previously, this mechanism existed only for __hash__, to make
 +  mutable classes unhashable.)  Code contributed by Andrew Barnert and
 +  Ivan Levkivskyi.
 +
 +- Issue #16764: Support keyword arguments to zlib.decompress().  Patch by
 +  Xiang Zhang.
 +
 +- Issue #27736: Prevent segfault after interpreter re-initialization due
 +  to ref count problem introduced in code for Issue #27038 in 3.6.0a3.
 +  Patch by Xiang Zhang.
 +
 +- Issue #25628:  The *verbose* and *rename* parameters for
 +  collections.namedtuple are now keyword-only.
 +
 +- Issue #12345: Add mathematical constant tau to math and cmath. See also
 +  PEP 628.
 +
 +- Issue #26823: traceback.StackSummary.format now abbreviates large sections of
 +  repeated lines as "[Previous line repeated {count} more times]" (this change
 +  then further affects other traceback display operations in the module). Patch
 +  by Emanuel Barry.
  
 -- Issue #21718: cursor.description is now available for queries using CTEs.
 +- Issue #27664: Add to concurrent.futures.thread.ThreadPoolExecutor()
 +  the ability to specify a thread name prefix.
  
 -- Issue #2466: posixpath.ismount now correctly recognizes mount points which
 -  the user does not have permission to access.
 +- Issue #27181: Add geometric_mean and harmonic_mean to statistics module.
 +
 +- Issue #27573: code.interact now prints an message when exiting.
 +
 +- Issue #6422: Add autorange method to timeit.Timer objects.
  
  - Issue #27773: Correct some memory management errors server_hostname in
    _ssl.wrap_socket().
diff --cc configure
index 64b75c9cd28e5654eee9cbc0c1d3fa132cc5ffec,179c1982aa1a48cca300078c98fc84f9c3c6fb6f..b281970d3af0d664b80f6c7577fb6d6d359ed86d
+++ b/configure
@@@ -1476,6 -1486,8 +1488,8 @@@ Optional Features
                            Build (MacOSX|Darwin) framework
    --enable-shared         disable/enable building shared python library
    --enable-profiling      enable C-level code profiling
 -  --enable-optimizations  Enable expensive optimizations (PGO, maybe LTO,
 -                          etc). Disabled by default.
++  --enable-optimizations  Enable expensive optimizations (PGO, etc). Disabled
++                          by default.
    --enable-loadable-sqlite-extensions
                            support loadable extensions in _sqlite module
    --enable-ipv6           Enable ipv6 (with ipv4) support
@@@ -17860,8 -17827,8 +17871,8 @@@ mv config.c Module
  if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
      echo "" >&6
      echo "" >&6
 -    echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
 +    echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&6
-     echo "please run ./configure --with-optimizations" >&6
+     echo "please run ./configure --enable-optimizations" >&6
      echo "" >&6
      echo "" >&6
  fi
diff --cc configure.ac
index 73927b141719837796181fdd10f6f056ac52553d,4e55871772434626447cdf1905773aae254a0386..d4f71aa15d9588a3008aae1ae30e6a0401c3e815
@@@ -1281,8 -1234,8 +1281,8 @@@ fi]
  AC_SUBST(DEF_MAKE_ALL_RULE)
  AC_SUBST(DEF_MAKE_RULE)
  Py_OPT='false'
- AC_MSG_CHECKING(for --with-optimizations)
- AC_ARG_WITH(optimizations, AS_HELP_STRING([--with-optimizations], [Enable expensive optimizations (PGO, etc).  Disabled by default.]),
+ AC_MSG_CHECKING(for --enable-optimizations)
 -AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, maybe LTO, etc).  Disabled by default.]),
++AC_ARG_ENABLE(optimizations, AS_HELP_STRING([--enable-optimizations], [Enable expensive optimizations (PGO, etc).  Disabled by default.]),
  [
  if test "$withval" != no
  then
@@@ -5394,8 -5378,8 +5394,8 @@@ mv config.c Module
  if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
      echo "" >&AS_MESSAGE_FD
      echo "" >&AS_MESSAGE_FD
 -    echo "If you want a release build with all optimizations active (LTO, PGO, etc),"
 +    echo "If you want a release build with all optimizations active (LTO, PGO, etc)," >&AS_MESSAGE_FD
-     echo "please run ./configure --with-optimizations" >&AS_MESSAGE_FD
+     echo "please run ./configure --enable-optimizations" >&AS_MESSAGE_FD
      echo "" >&AS_MESSAGE_FD
      echo "" >&AS_MESSAGE_FD
  fi