Skip to content

Commit 6b6905a

Browse files
authored
CPython 3.15.0a5 -> 3.15.0a6 (#981)
* Update CPython to 3.15.0a6 * Remove unneeded patch added for 3.15.0a5 * Enable tail call for free-threading build on Windows.
1 parent a003a67 commit 6b6905a

6 files changed

Lines changed: 24 additions & 24 deletions

File tree

cpython-unix/build-cpython.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,11 @@ if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
324324
patch -p1 -i ${ROOT}/patch-python-relative-build-details.patch
325325
fi
326326

327-
# Mark the COLORS global variable static to prevent it from
328-
# conflicting with the symbol in the ncurses library.
329-
# Fix has been merged upstream, drop in next 3.15 release
330-
# https://github.com/python/cpython/pull/143846
327+
# Mark _Py_jit_entry as extern in _testiternalcapi/interpreter.c to avoid a duplicate symbols.
328+
# The symbol is not actually used in the module, a better solution should be found, see:
329+
# https://github.com/python/cpython/issues/144712
331330
if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_15}" ]; then
332-
patch -p1 -i ${ROOT}/patch-optimizer-static-colors.patch
331+
patch -p1 -i ${ROOT}/patch-testinternalcapi-interpreter-extern.patch
333332
fi
334333

335334
# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.

cpython-unix/extension-modules.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,8 @@ _testinternalcapi:
652652
minimum-python-version: "3.13"
653653
- source: _testinternalcapi/complex.c
654654
minimum-python-version: "3.14"
655+
- source: _testinternalcapi/interpreter.c
656+
minimum-python-version: "3.15"
655657

656658
_testmultiphase:
657659
minimum-python-version: '3.10'

cpython-unix/patch-optimizer-static-colors.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/Modules/_testinternalcapi/interpreter.c b/Modules/_testinternalcapi/interpreter.c
2+
index 2cd23fa3c58..653332f7073 100644
3+
--- a/Modules/_testinternalcapi/interpreter.c
4+
+++ b/Modules/_testinternalcapi/interpreter.c
5+
@@ -21,7 +21,7 @@ stop_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
6+
}
7+
#endif
8+
9+
-_PyJitEntryFuncPtr _Py_jit_entry;
10+
+extern _PyJitEntryFuncPtr _Py_jit_entry;
11+
12+
#if _Py_TAIL_CALL_INTERP
13+
#include "test_targets.h"

cpython-windows/build.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,7 @@ def run_msbuild(
752752
args.append("/property:DisableGil=true")
753753

754754
# Build tail-calling Python for 3.15+
755-
# TODO(jjh) Remove 'not freethreaded' when 3.15.0a6 released
756-
if python_version.startswith("3.15") and platform == "x64" and not freethreaded:
755+
if python_version.startswith("3.15") and platform == "x64":
757756
args.append("/property:PlatformToolset=v145")
758757
args.append("/property:UseTailCallInterp=true")
759758

pythonbuild/downloads.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@
9393
"python_tag": "cp314",
9494
},
9595
"cpython-3.15": {
96-
"url": "https://www.python.org/ftp/python/3.15.0/Python-3.15.0a5.tar.xz",
97-
"size": 34829268,
98-
"sha256": "fee40da6450b67547c079dcb2852e8a03db6d57e06415466b2d3294449db22ef",
99-
"version": "3.15.0a5",
96+
"url": "https://www.python.org/ftp/python/3.15.0/Python-3.15.0a6.tar.xz",
97+
"size": 34950024,
98+
"sha256": "8e2a4e1b2afb93a84d659d431b1f384544b3da00a4b8ff5bf3580f07ad4ff989",
99+
"version": "3.15.0a6",
100100
"licenses": ["Python-2.0", "CNRI-Python"],
101101
"license_file": "LICENSE.cpython.txt",
102102
"python_tag": "cp315",

0 commit comments

Comments
 (0)