11class PythonAT38 < Formula
22 desc "Interpreted, interactive, object-oriented programming language"
33 homepage "https://www.python.org/"
4- url "https://www.python.org/ftp/python/3.8.3 /Python-3.8.3 .tar.xz"
5- sha256 "dfab5ec723c218082fe3d5d7ae17ecbdebffa9a1aea4d64aa3a2ecdd2e795864 "
6- head "https://github.com/python/cpython.git" , :branch => "3.8 "
4+ url "https://www.python.org/ftp/python/3.8.5 /Python-3.8.5 .tar.xz"
5+ sha256 "e3003ed57db17e617acb382b0cade29a248c6026b1bd8aad1f976e9af66a83b0 "
6+ license "Python-2.0 "
77
88 # setuptools remembers the build flags python is built with and uses them to
99 # build packages later. Xcode-only systems need different flags.
@@ -36,8 +36,8 @@ class PythonAT38 < Formula
3636 "bin/easy_install-3.7" , "bin/easy_install-3.8"
3737
3838 resource "setuptools" do
39- url "https://pypi.org/packages/source/s/setuptools/setuptools-47.3.1 .zip"
40- sha256 "843037738d1e34e8b326b5e061f474aca6ef9d7ece41329afbc8aac6195a3920 "
39+ url "https://pypi.org/packages/source/s/setuptools/setuptools-49.2.0 .zip"
40+ sha256 "afe9e81fee0270d3f60d52608549cc8ec4c46dada8c95640c1a00160f577acf2 "
4141 end
4242
4343 resource "pip" do
@@ -50,6 +50,15 @@ class PythonAT38 < Formula
5050 sha256 "8788e9155fe14f54164c1b9eb0a319d98ef02c160725587ad60f14ddc57b6f96"
5151 end
5252
53+ # Remove this block when upstream adds arm64 compatibility
54+ if Hardware ::CPU . arm?
55+ # Upstream PRs #20171, #21114, #21224 and #21249
56+ patch do
57+ url "https://raw.githubusercontent.com/Homebrew/formula-patches/113aa84/python/3.8.3.patch"
58+ sha256 "9c0d7c28c33c6036860457bd9c5a03026c71bd034907b77fbf861ff5fe216ed0"
59+ end
60+ end
61+
5362 def install
5463 # Unset these so that installing pip and setuptools puts them where we want
5564 # and not into some other Python the user has installed.
0 commit comments