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

Skip to content

Commit 6e5184f

Browse files
committed
Update comments in the second paragraph, discussing versioning issues
related to the BSD DB library. Based on comments from Mark Summerfield <[email protected]>.
1 parent be467e5 commit 6e5184f

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Doc/lib/libbsddb.tex

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@ \section{\module{bsddb} ---
1414
other objects as keys or to store other kinds of objects the user must
1515
serialize them somehow, typically using marshal.dumps or pickle.dumps.
1616

17-
The \module{bsddb} module is only available on \UNIX{} systems, so it
18-
is not built by default in the standard Python distribution. Also,
19-
there are two incompatible versions of the underlying library.
17+
There are two incompatible versions of the underlying library.
2018
Version 1.85 is widely available, but has some known bugs. Version 2
2119
is not quite as widely used, but does offer some improvements. The
22-
\module{bsddb} module uses the 1.85 interface. Users wishing to use
23-
version 2 of the Berkeley DB library will have to modify the source
24-
for the module to include \file{db_185.h} instead of
25-
\file{db.h} (\file{db_185.h} contains the version 1.85 compatibility
26-
interface).
20+
\module{bsddb} module uses the 1.85 interface. Starting with Python
21+
2.0, the \program{configure} script can usually determine the
22+
version of the library which is available and build it correctly. If
23+
you have difficulty getting \program{configure} to do the right thing,
24+
run it with the \longprogramopt{help} option to get information about
25+
additional options that can help. On Windows, you will need to define
26+
the \code{HAVE_DB_185_H} macro if you are building Python from source
27+
and using version 2 of the DB library.
2728

2829
The \module{bsddb} module defines the following functions that create
2930
objects that access the appropriate type of Berkeley DB file. The

0 commit comments

Comments
 (0)