File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments