From 8007cfcc3bfc7906ec53917bd0716d65d46dbfd7 Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sun, 11 Oct 2026 17:56:06 +0200 Subject: [PATCH] build: support Python 3.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/65750 Reviewed-By: Richard Lau Reviewed-By: Stefan Stojanovic Reviewed-By: Luigi Pinca Reviewed-By: Gürgün Dayıoğlu Reviewed-By: Colin Ihrig Reviewed-By: Ulises Gascón --- .github/workflows/build-tarball.yml | 2 +- .github/workflows/coverage-linux-without-intl.yml | 2 +- .github/workflows/coverage-linux.yml | 2 +- .github/workflows/coverage-windows.yml | 2 +- .github/workflows/daily-wpt-fyi.yml | 2 +- .github/workflows/lint-release-proposal.yml | 2 +- .github/workflows/linters.yml | 2 +- .github/workflows/stress-test.yml | 2 +- .github/workflows/test-internet.yml | 2 +- .github/workflows/test-linux-quic.yml | 2 +- .github/workflows/test-linux.yml | 2 +- .github/workflows/test-macos.yml | 2 +- .github/workflows/tools.yml | 2 +- android-configure | 3 ++- configure | 3 ++- 15 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 8b306b59fe7..e7007953048 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -30,7 +30,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying permissions: diff --git a/.github/workflows/coverage-linux-without-intl.yml b/.github/workflows/coverage-linux-without-intl.yml index 45e8951120c..f9a22f1674f 100644 --- a/.github/workflows/coverage-linux-without-intl.yml +++ b/.github/workflows/coverage-linux-without-intl.yml @@ -34,7 +34,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ diff --git a/.github/workflows/coverage-linux.yml b/.github/workflows/coverage-linux.yml index 3215160d5d1..5560c4be2c8 100644 --- a/.github/workflows/coverage-linux.yml +++ b/.github/workflows/coverage-linux.yml @@ -34,7 +34,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ diff --git a/.github/workflows/coverage-windows.yml b/.github/workflows/coverage-windows.yml index 05822b8b14b..98cf3b21fec 100644 --- a/.github/workflows/coverage-windows.yml +++ b/.github/workflows/coverage-windows.yml @@ -58,7 +58,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying permissions: diff --git a/.github/workflows/daily-wpt-fyi.yml b/.github/workflows/daily-wpt-fyi.yml index 280b80d4af9..59303f9e33f 100644 --- a/.github/workflows/daily-wpt-fyi.yml +++ b/.github/workflows/daily-wpt-fyi.yml @@ -13,7 +13,7 @@ on: - cron: 30 0 * * * env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' permissions: contents: read diff --git a/.github/workflows/lint-release-proposal.yml b/.github/workflows/lint-release-proposal.yml index 027aee336ac..9652eea91b8 100644 --- a/.github/workflows/lint-release-proposal.yml +++ b/.github/workflows/lint-release-proposal.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' NODE_VERSION: lts/* permissions: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 6a2927eecf4..fbfe118ef44 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -14,7 +14,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' NODE_VERSION: lts/* permissions: diff --git a/.github/workflows/stress-test.yml b/.github/workflows/stress-test.yml index af1df77fe5f..581b3f84883 100644 --- a/.github/workflows/stress-test.yml +++ b/.github/workflows/stress-test.yml @@ -33,7 +33,7 @@ on: type: string env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' XCODE_VERSION: '16.4' CLANG_VERSION: '19' RUSTC_VERSION: '1.82' diff --git a/.github/workflows/test-internet.yml b/.github/workflows/test-internet.yml index ee3a85d10fc..c6a0266bc6f 100644 --- a/.github/workflows/test-internet.yml +++ b/.github/workflows/test-internet.yml @@ -31,7 +31,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ diff --git a/.github/workflows/test-linux-quic.yml b/.github/workflows/test-linux-quic.yml index c1a57509c0b..62108ba0536 100644 --- a/.github/workflows/test-linux-quic.yml +++ b/.github/workflows/test-linux-quic.yml @@ -30,7 +30,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 03f349fbed9..021a063f1ba 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -35,7 +35,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' FLAKY_TESTS: keep_retrying CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++ diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 29b9d4b0b93..ae4223fc277 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -31,7 +31,7 @@ concurrency: cancel-in-progress: true env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' XCODE_VERSION: '16.1' FLAKY_TESTS: keep_retrying diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml index c738b0df8fb..cd2e7dc8810 100644 --- a/.github/workflows/tools.yml +++ b/.github/workflows/tools.yml @@ -44,7 +44,7 @@ on: - zstd env: - PYTHON_VERSION: '3.14' + PYTHON_VERSION: '3.15' permissions: contents: read diff --git a/android-configure b/android-configure index 0467e7a90b7..d8d10c2f8f0 100755 --- a/android-configure +++ b/android-configure @@ -4,6 +4,7 @@ # Note that the mix of single and double quotes is intentional, # as is the fact that the ] goes on a new line. _=[ 'exec' '/bin/sh' '-c' ''' +command -v python3.15 >/dev/null && exec python3.15 "$0" "$@" command -v python3.14 >/dev/null && exec python3.14 "$0" "$@" command -v python3.13 >/dev/null && exec python3.13 "$0" "$@" command -v python3.12 >/dev/null && exec python3.12 "$0" "$@" @@ -23,7 +24,7 @@ except ImportError: from distutils.spawn import find_executable as which print('Node.js android configure: Found Python {}.{}.{}...'.format(*sys.version_info)) -acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9)) +acceptable_pythons = ((3, 15), (3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9)) if sys.version_info[:2] in acceptable_pythons: import android_configure else: diff --git a/configure b/configure index 0d8f79ba9ab..7dcef72c223 100755 --- a/configure +++ b/configure @@ -4,6 +4,7 @@ # Note that the mix of single and double quotes is intentional, # as is the fact that the ] goes on a new line. _=[ 'exec' '/bin/sh' '-c' ''' +command -v python3.15 >/dev/null && exec python3.15 "$0" "$@" command -v python3.14 >/dev/null && exec python3.14 "$0" "$@" command -v python3.13 >/dev/null && exec python3.13 "$0" "$@" command -v python3.12 >/dev/null && exec python3.12 "$0" "$@" @@ -23,7 +24,7 @@ except ImportError: from distutils.spawn import find_executable as which print('Node.js configure: Found Python {}.{}.{}...'.format(*sys.version_info)) -acceptable_pythons = ((3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9)) +acceptable_pythons = ((3, 15), (3, 14), (3, 13), (3, 12), (3, 11), (3, 10), (3, 9)) if sys.version_info[:2] in acceptable_pythons: import configure else: