raise the minimum supported BerkeleyDB version to 3.3 and add notes to

news about this and a couple other recent fixes.
This commit is contained in:
Gregory P. Smith 2006-04-13 19:19:01 +00:00
parent da69041123
commit 3adc4aa2fb
4 changed files with 19 additions and 13 deletions

View File

@ -15,9 +15,8 @@ other objects as keys or to store other kinds of objects the user must
serialize them somehow, typically using \function{marshal.dumps()} or serialize them somehow, typically using \function{marshal.dumps()} or
\function{pickle.dumps}. \function{pickle.dumps}.
Starting with Python 2.3 the \module{bsddb} module requires the The \module{bsddb} module requires a Berkeley DB library version from
Berkeley DB library version 3.2 or later (it is known to work with 3.2 3.3 thru 4.4.
through 4.3 at the time of this writing).
\begin{seealso} \begin{seealso}
\seeurl{http://pybsddb.sourceforge.net/}{Website with documentation \seeurl{http://pybsddb.sourceforge.net/}{Website with documentation

View File

@ -44,7 +44,16 @@ Extension Modules
- Bug #1467952: os.listdir() now correctly raises an error if readdir() - Bug #1467952: os.listdir() now correctly raises an error if readdir()
fails with an error condition. fails with an error condition.
- Fix bsddb.db.DBError derived exceptions so they can be unpickled. - Fixed bsddb.db.DBError derived exceptions so they can be unpickled.
- Bug #1117761: bsddb.*open() no longer raises an exception when using
the cachesize parameter.
- Bug #1149413: bsddb.*open() no longer raises an exception when using
a temporary db (file=None) with the 'n' flag to truncate on open.
- Bug #1332852: bsddb module minimum BerkeleyDB version raised to 3.3
as older versions cause excessive test failures.
Library Library
------- -------

5
README
View File

@ -719,14 +719,13 @@ Configuring the bsddb and dbm modules
Beginning with Python version 2.3, the PyBsddb package Beginning with Python version 2.3, the PyBsddb package
<http://pybsddb.sf.net/> was adopted into Python as the bsddb package, <http://pybsddb.sf.net/> was adopted into Python as the bsddb package,
exposing a set of package-level functions which provide exposing a set of package-level functions which provide
backwards-compatible behavior. Only versions 3.1 through 4.1 of backwards-compatible behavior. Only versions 3.3 through 4.4 of
Sleepycat's libraries provide the necessary API, so older versions Sleepycat's libraries provide the necessary API, so older versions
aren't supported through this interface. The old bsddb module has aren't supported through this interface. The old bsddb module has
been retained as bsddb185, though it is not built by default. Users been retained as bsddb185, though it is not built by default. Users
wishing to use it will have to tweak Modules/Setup to build it. The wishing to use it will have to tweak Modules/Setup to build it. The
dbm module will still be built against the Sleepycat libraries if dbm module will still be built against the Sleepycat libraries if
other preferred alternatives (ndbm, gdbm) are not found, though other preferred alternatives (ndbm, gdbm) are not found.
versions of the Sleepycat library prior to 3.1 are not considered.
Building the sqlite3 module Building the sqlite3 module
--------------------------- ---------------------------

View File

@ -571,14 +571,13 @@ class PyBuildExt(build_ext):
# Sleepycat Berkeley DB interface. http://www.sleepycat.com # Sleepycat Berkeley DB interface. http://www.sleepycat.com
# #
# This requires the Sleepycat DB code. The earliest supported version # This requires the Sleepycat DB code. The supported versions
# of that library is 3.2, the latest supported version is 4.4. A list # are set below. Visit http://www.sleepycat.com/ to download
# of available releases can be found at # a release. Most open source OSes come with one or more
# # versions of BerkeleyDB already installed.
# http://www.sleepycat.com/update/index.html
max_db_ver = (4, 4) max_db_ver = (4, 4)
min_db_ver = (3, 2) min_db_ver = (3, 3)
db_setup_debug = False # verbose debug prints from this script? db_setup_debug = False # verbose debug prints from this script?
# construct a list of paths to look for the header file in on # construct a list of paths to look for the header file in on