From 600760c898a6503bd5de6b39c351896913e568ab Mon Sep 17 00:00:00 2001 From: priya-kinthali Date: Wed, 11 Mar 2026 19:01:34 +0530 Subject: [PATCH 1/2] patch for 3.15.0a6 --- builders/nix-python-builder.psm1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/builders/nix-python-builder.psm1 b/builders/nix-python-builder.psm1 index 010cdbae..c5cd71a8 100644 --- a/builders/nix-python-builder.psm1 +++ b/builders/nix-python-builder.psm1 @@ -146,6 +146,14 @@ class NixPythonBuilder : PythonBuilder { $sourcesLocation = $this.Download() Push-Location -Path $sourcesLocation + + # Patch for 3.15.0a6: Fix test_bz2 BIG_DATA to ensure two compressed blocks + # See: https://github.com/python/cpython/pull/145730 + if ($this.Version -eq [semver]"3.15.0-alpha.6") { + Write-Host "Applying patch for python/cpython#145730 (test_bz2 fix)..." + Execute-Command -Command "curl -sL -o Lib/test/test_bz2.py https://raw.githubusercontent.com/python/cpython/19676e5fc28bdee8325a062a31ddeee60960cf75/Lib/test/test_bz2.py" + } + Write-Host "Configure for $($this.Platform)..." $this.Configure() From 26125fe9fe7008f33c78158b3b71a4b13a8ff6fd Mon Sep 17 00:00:00 2001 From: priya-kinthali Date: Wed, 11 Mar 2026 19:05:24 +0530 Subject: [PATCH 2/2] patch for 3.15.0a6 --- builders/nix-python-builder.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builders/nix-python-builder.psm1 b/builders/nix-python-builder.psm1 index c5cd71a8..802c2cdd 100644 --- a/builders/nix-python-builder.psm1 +++ b/builders/nix-python-builder.psm1 @@ -149,7 +149,7 @@ class NixPythonBuilder : PythonBuilder { # Patch for 3.15.0a6: Fix test_bz2 BIG_DATA to ensure two compressed blocks # See: https://github.com/python/cpython/pull/145730 - if ($this.Version -eq [semver]"3.15.0-alpha.6") { + if (($this.Architecture -match "arm64") -and ($this.Platform -match "22\.04") -and ($this.Version -eq [semver]"3.15.0-alpha.6")) { Write-Host "Applying patch for python/cpython#145730 (test_bz2 fix)..." Execute-Command -Command "curl -sL -o Lib/test/test_bz2.py https://raw.githubusercontent.com/python/cpython/19676e5fc28bdee8325a062a31ddeee60960cf75/Lib/test/test_bz2.py" }