From 6dd89d9abed8e5b7a80ac2caed75ba1f95cf42ff Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 5 Dec 2022 17:05:27 +0100 Subject: [PATCH] gh-100008: Require Two's complement to build Python Building Python now requires two's complement integer representation: drop support for platforms with other signed number representations. --- Doc/using/configure.rst | 3 +++ Doc/whatsnew/3.12.rst | 6 ++++++ .../Build/2022-12-05-17-07-49.gh-issue-100008.dlTVxs.rst | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2022-12-05-17-07-49.gh-issue-100008.dlTVxs.rst diff --git a/Doc/using/configure.rst b/Doc/using/configure.rst index 3df6ff4873b72e..fb907c1ae67207 100644 --- a/Doc/using/configure.rst +++ b/Doc/using/configure.rst @@ -16,6 +16,9 @@ Features required to build CPython: point numbers and `floating point Not-a-Number (NaN) `_. +* `Two's complement `_ + integer representation. + * Support for threads. * OpenSSL 1.1.1 or newer for the :mod:`ssl` and :mod:`hashlib` modules. diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 6f5ce818d961a5..855e5675d9657c 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -711,6 +711,12 @@ Build Changes optimization levels (0, 1, 2) at once. (Contributed by Victor Stinner in :gh:`99289`.) +* Building Python now requires `two's complement + `_ integer representation: + drop support for platforms with other `signed number representations + `_. + (Contributed by Victor Stinner in :gh:`100008`.) + C API Changes ============= diff --git a/Misc/NEWS.d/next/Build/2022-12-05-17-07-49.gh-issue-100008.dlTVxs.rst b/Misc/NEWS.d/next/Build/2022-12-05-17-07-49.gh-issue-100008.dlTVxs.rst new file mode 100644 index 00000000000000..3368f98bfffdd8 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2022-12-05-17-07-49.gh-issue-100008.dlTVxs.rst @@ -0,0 +1,5 @@ +Building Python now requires `two's complement +`_ integer representation: +drop support for platforms with other `signed number representations +`_. +Patch by Victor Stinner.