Skip to content

Commit 3bf9f54

Browse files
authored
Merge pull request #196805 from Homebrew/python3.13-clt
[email protected]: remove CLT requirement
2 parents 313fbaf + 72242ab commit 3bf9f54

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

Formula/p/[email protected]

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@ class PythonAT313 < Formula
1212
end
1313

1414
bottle do
15-
sha256 arm64_sequoia: "56d325c239b860c2f2be6dcf255021142aeb1ba4d1abbc44fc9832726b9ae71e"
16-
sha256 arm64_sonoma: "59cb6d9a33e96f12b1c03e3931062b413ed05749b57921b5438bf59f465fb869"
17-
sha256 arm64_ventura: "9d839b31f2728276cec2d4af27954a0202645d50f47e3768105cc263cbb2efc5"
18-
sha256 sonoma: "44239bd5b2e23ac4e3537925d16695931e34cedb93648ac63e15ce05fa66926d"
19-
sha256 ventura: "d5257cc367cea5fb1003646077cdb644e8eb181045e2815255738242e05f8af2"
20-
sha256 x86_64_linux: "856c9c245e10cac940a6bf36af6ecf1a321ad82cbbcca2ea38136d3605bea9b2"
15+
rebuild 1
16+
sha256 arm64_sequoia: "c314898eba960a72f69472bcf569caf5b9d4cfe898032f501eb964afbcc17180"
17+
sha256 arm64_sonoma: "1f171451ebef942ac66ea0cbe8853e5e3e32e459136e48af87db09a38a36344d"
18+
sha256 arm64_ventura: "ed4fc8d947eb3f429ec98603517ac5ad1c2ec77aeb357052a1736ab945ef2c58"
19+
sha256 sonoma: "02c9128efbe4a34d4282dfb3986bea855fcf5816a1b3f685a2b60e219969c048"
20+
sha256 ventura: "ad2f1a43187bd8519f45137a31d99d9bd731c1c1c11c04c6f9115f53e575cc4b"
21+
sha256 x86_64_linux: "18d08d68e1abfb4e24c416f4d3a9c419fce04e1c10b85ef8e57a28a112a2b63e"
2122
end
2223

23-
# setuptools remembers the build flags python is built with and uses them to
24-
# build packages later. Xcode-only systems need different flags.
25-
pour_bottle? only_if: :clt_installed
26-
2724
depends_on "pkg-config" => :build
2825
depends_on "mpdecimal"
2926
depends_on "openssl@3"
@@ -156,13 +153,6 @@ def install
156153
cppflags = ["-I#{HOMEBREW_PREFIX}/include"]
157154

158155
if OS.mac?
159-
if MacOS.sdk_path_if_needed
160-
# Help Python's build system (setuptools/pip) to build things on SDK-based systems
161-
# The setup.py looks at "-isysroot" to get the sysroot (and not at --sysroot)
162-
cflags << "-isysroot #{MacOS.sdk_path}"
163-
ldflags << "-isysroot #{MacOS.sdk_path}"
164-
end
165-
166156
# Enabling LTO on Linux makes libpython3.*.a unusable for anyone whose GCC
167157
# install does not match the one in CI _exactly_ (major and minor version).
168158
# https://github.com/orgs/Homebrew/discussions/3734
@@ -369,7 +359,7 @@ def post_install
369359
# Mark Homebrew python as externally managed: https://peps.python.org/pep-0668/#marking-an-interpreter-as-using-an-external-package-manager
370360
# Placed after ensurepip since it invokes pip in isolated mode, meaning
371361
# we can't pass --break-system-packages.
372-
(lib_cellar/"EXTERNALLY-MANAGED").write <<~EOS
362+
(lib_cellar/"EXTERNALLY-MANAGED").write <<~PYTHON
373363
[externally-managed]
374364
Error=To install Python packages system-wide, try brew install
375365
xyz, where xyz is the package you are trying to
@@ -398,11 +388,11 @@ def post_install
398388
file. Failure to do this can result in a broken Homebrew installation.
399389
400390
Read more about this behavior here: <https://peps.python.org/pep-0668/>
401-
EOS
391+
PYTHON
402392
end
403393

404394
def sitecustomize
405-
<<~EOS
395+
<<~PYTHON
406396
# This file is created by Homebrew and is executed on each python startup.
407397
# Don't print from here, or else python command line scripts may fail!
408398
# <https://docs.brew.sh/Homebrew-and-Python>
@@ -455,7 +445,7 @@ def sitecustomize
455445
split_prefix = f"#{HOMEBREW_PREFIX}/opt/python-{split_module}@#{version.major_minor}/libexec"
456446
if os.path.isdir(split_prefix):
457447
sys.path.append(split_prefix)
458-
EOS
448+
PYTHON
459449
end
460450

461451
def caveats
@@ -497,7 +487,7 @@ def caveats
497487
shell_output("#{python3} -Sc 'import dbm.gnu' 2>&1", 1)
498488

499489
# Verify that the selected DBM interface works
500-
(testpath/"dbm_test.py").write <<~EOS
490+
(testpath/"dbm_test.py").write <<~PYTHON
501491
import dbm
502492
503493
with dbm.ndbm.open("test", "c") as db:
@@ -506,7 +496,7 @@ def caveats
506496
assert list(db.keys()) == [b"foo \\xbd"]
507497
assert b"foo \\xbd" in db
508498
assert db[b"foo \\xbd"] == b"bar \\xbd"
509-
EOS
499+
PYTHON
510500
system python3, "dbm_test.py"
511501

512502
system bin/"pip#{version.major_minor}", "list", "--format=columns"

0 commit comments

Comments
 (0)