Author Lauren.Foutz
Recipients Lauren.Foutz
Date 2011-11-21.16:58:37
SpamBayes Score 6.47016e-11
Marked as misclassified No
Message-id <1321894717.88.0.466767650866.issue13445@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2011-11-21 16:58:37Lauren.Foutzsetrecipients: + Lauren.Foutz
2011-11-21 16:58:37Lauren.Foutzsetmessageid: <1321894717.88.0.466767650866.issue13445@psf.upfronthosting.co.za>
2011-11-21 16:58:37Lauren.Foutzlinkissue13445 messages
2011-11-21 16:58:37Lauren.Foutzcreate