Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 125188c

Browse files
committed
Add BerkeleyDB 4.2 to the library search for the bsddb module.
1 parent e94040a commit 125188c

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

setup.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,22 +468,29 @@ def detect_modules(self):
468468
# Sleepycat Berkeley DB interface. http://www.sleepycat.com
469469
#
470470
# This requires the Sleepycat DB code. The earliest supported version
471-
# of that library is 3.0, the latest supported version is 4.1. A list
471+
# of that library is 3.1, the latest supported version is 4.2. A list
472472
# of available releases can be found at
473473
#
474474
# http://www.sleepycat.com/update/index.html
475+
#
476+
# NOTE: 3.1 is only partially supported; expect the extended bsddb module
477+
# test suite to show failures due to some missing methods and behaviours
478+
# in BerkeleyDB 3.1.
475479

476480
# when sorted in reverse order, keys for this dict must appear in the
477481
# order you wish to search - e.g., search for db4 before db3
478482
db_try_this = {
479-
'db4': {'libs': ('db-4.1', 'db41', 'db-4.0', 'db4',),
480-
'libdirs': ('/usr/local/BerkeleyDB.4.1/lib',
483+
'db4': {'libs': ('db-4.2', 'db42', 'db-4.1', 'db41', 'db-4.0', 'db4',),
484+
'libdirs': ('/usr/local/BerkeleyDB.4.2/lib',
485+
'/usr/local/BerkeleyDB.4.1/lib',
481486
'/usr/local/BerkeleyDB.4.0/lib',
482487
'/usr/local/lib',
483488
'/opt/sfw',
484489
'/sw/lib',
485490
),
486-
'incdirs': ('/usr/local/BerkeleyDB.4.1/include',
491+
'incdirs': ('/usr/local/BerkeleyDB.4.2/include',
492+
'/usr/local/include/db42',
493+
'/usr/local/BerkeleyDB.4.1/include',
487494
'/usr/local/include/db41',
488495
'/usr/local/BerkeleyDB.4.0/include',
489496
'/usr/local/include/db4',

0 commit comments

Comments
 (0)