Adds basic support for BerkeleyDB 4.2.x. Compiles and passes tests; new

features in BerkeleyDB not exposed.  notably: the DB_MPOOLFILE interface
has not yet been wrapped in an object.

Adds support for building and installing bsddb3 in python2.3 that has
an older version of this module installed as bsddb without conflicts.
The pybsddb.sf.net build/packaged version of the module uses a
dynamicly loadable module called _pybsddb rather than _bsddb.
This commit is contained in:
Gregory P. Smith 2003-09-21 00:08:14 +00:00
parent cec1b3f6a7
commit 41631e8f66
21 changed files with 114 additions and 71 deletions

View file

@ -33,11 +33,18 @@
#----------------------------------------------------------------------
"""Support for BerkeleyDB 3.1 through 4.1.
"""Support for BerkeleyDB 3.2 through 4.2.
"""
try:
import _bsddb
if __name__ == 'bsddb3':
# import _pybsddb binary as it should be the more recent version from
# a standalone pybsddb addon package than the version included with
# python as bsddb._bsddb.
import _pybsddb
_bsddb = _pybsddb
else:
import _bsddb
except ImportError:
# Remove ourselves from sys.modules
import sys