Skip to content
Open
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
8 changes: 8 additions & 0 deletions builders/nix-python-builder.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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.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"
}

Write-Host "Configure for $($this.Platform)..."
$this.Configure()

Expand Down
Loading