[pybsddb] Patch for detecting BSDDB in Homebrew

Matthew Peveler matt.peveler at gmail.com
Tue May 29 18:20:52 UTC 2018


Hello,

Please see attached for patch for having pybsddb to detect BSDDB that's
been installed via Homebrew on Mac OS X. Homebrew will stick the berkeley
db files in /usr/local/opt/berkeley-db@# directory with a link then from
/usr/local/opt/berkeley-db to that above directory (where the # is the
major version), depending on what version you're installing. Installing
berkeley-db at 6 will create both directories while berkeley-db at 4 will only
create the former folder by default and require the '--force' flag to
create the latter.

As such, this patch makes pybsddb look for /usr/local/opt/berkeley-db
first, but then fall back to looking for the major version directories
(/usr/local/opt/berkeley-db@#) if that link doesn't exist.

Regards,
Matthew Peveler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20180529/21596dd2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: brew.patch
Type: application/octet-stream
Size: 1793 bytes
Desc: not available
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20180529/21596dd2/attachment.obj>


More information about the pybsddb mailing list