[issue13445] Enable linking the module pysqlite with Berkeley DB SQL instead of SQLite
Lauren Foutz
report at bugs.python.org
Mon Nov 21 17:58:37 CET 2011
Lauren Foutz <lauren.foutz at gmail.com> added the comment:
Before the pysqlite module was made standard it could be edited to link with Berkeley DB SQL instead of SQLite. I am requesting that the Python build add the ability to link with BDBSQL instead of SQLite.
Below is a description of how to link pysqlite with BDBSQL
Download and unpack the latest version of pysqlite.
Download and unpack the latest release of Berkeley Db (at least db-5.0 or higher).
Build bdb using the following:
cd db/build_unix
../dist/configure --enable-sql-compat --prefix=<bdb install directory>
make
make install
Next change to the top pysqlite directory. There edit the file setup.cfg to the following:
[build_ext]
#define=
include_dirs=<bdb install directory>/include
library_dirs=<bdb install directory>/lib
libraries=sqlite3
define=SQLITE_OMIT_LOAD_EXTENSION
Note, make sure you uncomment the lines with "include_dirs" and "library_dirs"
Next, build and install the python sqlite3 library using:
python setup.py build
python setup.py install
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13445>
_______________________________________
More information about the Python-bugs-list
mailing list