Skip to content

Commit bce1be3

Browse files
The reason the python37, 38, and 39 are failing to build in BigSur is because ``MacOS.version`` in in Ruby on BigSur evaluates to simply 11 without a sub-version. This confuses Python when building.
1 parent c0f0cfe commit bce1be3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Formula/[email protected]

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@ class PythonAT39 < Formula
8484
sha256 "167e328cf68e9ec142f483fda9fafbb903be9a47dee2826614fdc24b2fbe6e06"
8585
end
8686

87-
# Further patch for Big Sur, remove in 3.9.2
88-
# https://github.com/python/cpython/pull/23556
89-
patch do
90-
url "https://github.com/fxcoudert/cpython/commit/cd26ccbb.patch?full_index=1"
91-
sha256 "59c98f991f839d610d53ca5c4af1464a99adf6c85e807f8a676b3e41c5dbe0a2"
92-
end
9387
end
9488

9589
def install
@@ -128,7 +122,11 @@ def install
128122
cflags << "-I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers"
129123
end
130124
# Avoid linking to libgcc https://mail.python.org/pipermail/python-dev/2012-February/116205.html
131-
args << "MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"
125+
if MacOS.version >= :big_sur
126+
args << "MACOSX_DEPLOYMENT_TARGET=11.0.1"
127+
else
128+
args << "MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"
129+
end
132130

133131
# We want our readline! This is just to outsmart the detection code,
134132
# superenv makes cc always find includes/libs!

0 commit comments

Comments
 (0)