Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions cpython-unix/build-cpython.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,11 @@ if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_14}" ]; then
patch -p1 -i ${ROOT}/patch-python-relative-build-details.patch
fi

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

# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.
Expand Down
2 changes: 2 additions & 0 deletions cpython-unix/extension-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ _testinternalcapi:
minimum-python-version: "3.13"
- source: _testinternalcapi/complex.c
minimum-python-version: "3.14"
- source: _testinternalcapi/interpreter.c
minimum-python-version: "3.15"

_testmultiphase:
minimum-python-version: '3.10'
Expand Down
13 changes: 0 additions & 13 deletions cpython-unix/patch-optimizer-static-colors.patch

This file was deleted.

13 changes: 13 additions & 0 deletions cpython-unix/patch-testinternalcapi-interpreter-extern.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/Modules/_testinternalcapi/interpreter.c b/Modules/_testinternalcapi/interpreter.c
index 2cd23fa3c58..653332f7073 100644
--- a/Modules/_testinternalcapi/interpreter.c
+++ b/Modules/_testinternalcapi/interpreter.c
@@ -21,7 +21,7 @@ stop_tracing_and_jit(PyThreadState *tstate, _PyInterpreterFrame *frame)
}
#endif

-_PyJitEntryFuncPtr _Py_jit_entry;
+extern _PyJitEntryFuncPtr _Py_jit_entry;

#if _Py_TAIL_CALL_INTERP
#include "test_targets.h"
3 changes: 1 addition & 2 deletions cpython-windows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,7 @@ def run_msbuild(
args.append("/property:DisableGil=true")

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

Expand Down
8 changes: 4 additions & 4 deletions pythonbuild/downloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@
"python_tag": "cp314",
},
"cpython-3.15": {
"url": "https://www.python.org/ftp/python/3.15.0/Python-3.15.0a5.tar.xz",
"size": 34829268,
"sha256": "fee40da6450b67547c079dcb2852e8a03db6d57e06415466b2d3294449db22ef",
"version": "3.15.0a5",
"url": "https://www.python.org/ftp/python/3.15.0/Python-3.15.0a6.tar.xz",
"size": 34950024,
"sha256": "8e2a4e1b2afb93a84d659d431b1f384544b3da00a4b8ff5bf3580f07ad4ff989",
"version": "3.15.0a6",
"licenses": ["Python-2.0", "CNRI-Python"],
"license_file": "LICENSE.cpython.txt",
"python_tag": "cp315",
Expand Down
Loading