Skip to content

Commit 9074829

Browse files
Mitchell Hentgescarlocab
authored andcommitted
[email protected]: Mac SDK include paths should be system include paths
1 parent 1c21d35 commit 9074829

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Formula/[email protected]

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class PythonAT37 < Formula
44
url "https://www.python.org/ftp/python/3.7.9/Python-3.7.9.tar.xz"
55
sha256 "91923007b05005b5f9bd46f3b9172248aea5abc1543e8a636d59e629c3331b01"
66
license "Python-2.0"
7-
revision 2
7+
revision 3
88

99
livecheck do
1010
url "https://www.python.org/ftp/python/"
@@ -111,12 +111,12 @@ def install
111111
if MacOS.sdk_path_if_needed
112112
# Help Python's build system (setuptools/pip) to build things on SDK-based systems
113113
# The setup.py looks at "-isysroot" to get the sysroot (and not at --sysroot)
114-
cflags << "-isysroot #{MacOS.sdk_path}" << "-I#{MacOS.sdk_path}/usr/include"
114+
cflags << "-isysroot #{MacOS.sdk_path}"
115115
ldflags << "-isysroot #{MacOS.sdk_path}"
116116
# For the Xlib.h, Python needs this header dir with the system Tk
117117
# Yep, this needs the absolute path where zlib needed a path relative
118118
# to the SDK.
119-
cflags << "-I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers"
119+
cflags << "-isystem #{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers"
120120
end
121121
# Avoid linking to libgcc https://mail.python.org/pipermail/python-dev/2012-February/116205.html
122122
args << "MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"

0 commit comments

Comments
 (0)