diff --git a/Formula/python@3.9.rb b/Formula/python@3.9.rb index 8e8450074a06..f68020867b1e 100644 --- a/Formula/python@3.9.rb +++ b/Formula/python@3.9.rb @@ -1,10 +1,9 @@ class PythonAT39 < Formula desc "Interpreted, interactive, object-oriented programming language" homepage "https://www.python.org/" - url "https://www.python.org/ftp/python/3.9.0/Python-3.9.0.tar.xz" - sha256 "9c73e63c99855709b9be0b3cc9e5b072cb60f37311e8c4e50f15576a0bf82854" + url "https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tar.xz" + sha256 "991c3f8ac97992f3d308fefeb03a64db462574eadbff34ce8bc5bb583d9903ff" license "Python-2.0" - revision 5 livecheck do url "https://www.python.org/ftp/python/" @@ -62,8 +61,8 @@ class PythonAT39 < Formula link_overwrite "Frameworks/Python.framework/Versions/Current" resource "setuptools" do - url "https://files.pythonhosted.org/packages/a7/e0/30642b9c2df516506d40b563b0cbd080c49c6b3f11a70b4c7a670f13a78b/setuptools-50.3.2.zip" - sha256 "ed0519d27a243843b05d82a5e9d01b0b083d9934eaa3d02779a23da18077bd3c" + url "https://files.pythonhosted.org/packages/12/e1/b9a2926a3c5a3fb055b8f85052f5baa890106a0e21b64a977c10affea751/setuptools-51.0.0.zip" + sha256 "029c49fd713e9230f6a41c0298e6e1f5839f2cde7104c0ad5e053a37777e7688" end resource "pip" do @@ -76,23 +75,6 @@ class PythonAT39 < Formula sha256 "aaef9b8c36db72f8bf7f1e54f85f875c4d466819940863ca0b3f3f77f0a1646f" end - # Remove this block when upstream adds arm64 and Big Sur compatibility - if MacOS.version >= :big_sur - # Upstream PRs #20171, #21114, #21224 and #21249 - # Backport of https://github.com/python/cpython/pull/22855 - patch do - url "https://raw.githubusercontent.com/Homebrew/formula-patches/33a9d63f/python/arm64-3.9.patch" - sha256 "167e328cf68e9ec142f483fda9fafbb903be9a47dee2826614fdc24b2fbe6e06" - end - - # Further patch for Big Sur, remove in 3.9.2 - # https://github.com/python/cpython/pull/23556 - patch do - url "https://github.com/fxcoudert/cpython/commit/6511bf56.patch?full_index=1" - sha256 "3a34fea8a133305bc337d67acfacc36dc8f9d47a808dd592f5b0cd8c9c9384d2" - end - end - def install # Unset these so that installing pip and setuptools puts them where we want # and not into some other Python the user has installed.