Skip to content

Commit aadb08d

Browse files
committed
python@3.14: move _dbm to python-gdbm@3.14 on Linux
1 parent 6980bd7 commit aadb08d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Formula/p/python@3.14.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def install
163163
args << "MACOSX_DEPLOYMENT_TARGET=#{MacOS.version}"
164164
else
165165
args << "--enable-shared"
166-
args << "--with-dbmliborder=bdb"
166+
args << "--with-dbmliborder="
167167
end
168168

169169
# Allow python modules to use ctypes.find_library to find homebrew's stuff
@@ -492,7 +492,8 @@ def caveats
492492
assert_match "ModuleNotFoundError: No module named '_gdbm'",
493493
shell_output("#{python3} -Sc 'import dbm.gnu' 2>&1", 1)
494494

495-
# Verify that the selected DBM interface works
495+
# Verify that the selected DBM interface works on macOS.
496+
# Linux requires installing python-gdbm formula
496497
(testpath/"dbm_test.py").write <<~PYTHON
497498
import dbm
498499
@@ -503,7 +504,7 @@ def caveats
503504
assert b"foo \\xbd" in db
504505
assert db[b"foo \\xbd"] == b"bar \\xbd"
505506
PYTHON
506-
system python3, "dbm_test.py"
507+
system python3, "dbm_test.py" if OS.mac?
507508

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

0 commit comments

Comments
 (0)