Skip to content

Commit ccc0045

Browse files
transip-botclaui
authored andcommitted
[email protected]: use hosted patch for arm64 support
This replaces the three unmerged PR patches with a hosted formula patch. This includes the following upstream pull requests: - python/cpython#20171, "Fix _tkinter use" (prerequisite for 21249) - python/cpython#21114, "Support arm64 in Mac/Tools/pythonw" - python/cpython#21224, "allow python to build for macosx-11.0-arm64" - python/cpython#21249, "ctypes fixes for arm64 Mac OS" See also: - Homebrew/formula-patches#292 Closes #57997. Signed-off-by: Claudia Pellegrino <[email protected]>
1 parent a25c130 commit ccc0045

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

Formula/[email protected]

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -69,22 +69,10 @@ class PythonAT38 < Formula
6969

7070
# Remove this block when upstream adds arm64 compatibility
7171
if Hardware::CPU.arm?
72-
# Upstream PR #21114, "Support `arm64` in Mac/Tools/pythonw"
72+
# Upstream PRs #20171, #21114, #21224 and #21249
7373
patch do
74-
url "https://github.com/python/cpython/pull/21114.patch?full_index=1"
75-
sha256 "a50ddeb9f3a51277c935d681a4607f6e73c0817ec7a10c5e77bc8389814ccb19"
76-
end
77-
78-
# Upstream PR #21224, "allow python to build for macosx-11.0-arm64"
79-
patch do
80-
url "https://github.com/python/cpython/pull/21224.patch?full_index=1"
81-
sha256 "2a02ad3412a3f41cd67ae26a20f70ffd42dd15ef6791f8c8ef86129572e8f1d7"
82-
end
83-
84-
# Upstream PR #21249, "ctypes fixes for arm64 Mac OS"
85-
patch do
86-
url "https://github.com/python/cpython/pull/21249.patch?full_index=1"
87-
sha256 "11923d4a249da7b050cc2093bd9d4547dcdfbf61718b20896e8b6447e1967cb3"
74+
url "https://raw.githubusercontent.com/Homebrew/formula-patches/113aa84/python/3.8.3.patch"
75+
sha256 "9c0d7c28c33c6036860457bd9c5a03026c71bd034907b77fbf861ff5fe216ed0"
8876
end
8977
end
9078

0 commit comments

Comments
 (0)