11class PythonAT39 < Formula
22 desc "Interpreted, interactive, object-oriented programming language"
33 homepage "https://www.python.org/"
4- url "https://www.python.org/ftp/python/3.9.0 /Python-3.9.0 .tar.xz"
5- sha256 "9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854 "
4+ url "https://www.python.org/ftp/python/3.9.1 /Python-3.9.1 .tar.xz"
5+ sha256 "991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff "
66 license "Python-2.0"
7- revision 5
87
98 livecheck do
109 url "https://www.python.org/ftp/python/"
@@ -62,8 +61,8 @@ class PythonAT39 < Formula
6261 link_overwrite "Frameworks/Python.framework/Versions/Current"
6362
6463 resource "setuptools" do
65- url "https://files.pythonhosted.org/packages/a7/e0/30642b9c2df516506d40b563b0cbd080c49c6b3f11a70b4c7a670f13a78b /setuptools-50.3.2 .zip"
66- sha256 "ed0519d27a243843b05d82a5e9d01b0b083d9934eaa3d02779a23da18077bd3c "
64+ url "https://files.pythonhosted.org/packages/12/e1/b9a2926a3c5a3fb055b8f85052f5baa890106a0e21b64a977c10affea751 /setuptools-51.0.0 .zip"
65+ sha256 "029c49fd713e9230f6a41c0298e6e1f5839f2cde7104c0ad5e053a37777e7688 "
6766 end
6867
6968 resource "pip" do
@@ -76,23 +75,6 @@ class PythonAT39 < Formula
7675 sha256 "aaef9b8c36db72f8bf7f1e54f85f875c4d466819940863ca0b3f3f77f0a1646f"
7776 end
7877
79- # Remove this block when upstream adds arm64 and Big Sur compatibility
80- if MacOS . version >= :big_sur
81- # Upstream PRs #20171, #21114, #21224 and #21249
82- # Backport of https://github.com/python/cpython/pull/22855
83- patch do
84- url "https://raw.githubusercontent.com/Homebrew/formula-patches/33a9d63f/python/arm64-3.9.patch"
85- sha256 "167e328cf68e9ec142f483fda9fafbb903be9a47dee2826614fdc24b2fbe6e06"
86- end
87-
88- # Further patch for Big Sur, remove in 3.9.2
89- # https://github.com/python/cpython/pull/23556
90- patch do
91- url "https://github.com/fxcoudert/cpython/commit/6511bf56.patch?full_index=1"
92- sha256 "3a34fea8a133305bc337d67acfacc36dc8f9d47a808dd592f5b0cd8c9c9384d2"
93- end
94- end
95-
9678 def install
9779 # Unset these so that installing pip and setuptools puts them where we want
9880 # and not into some other Python the user has installed.
0 commit comments