Does Python 2.5 include or not include SQLite engine?

Diez B. Roggisch deets at nospam.web.de
Tue Apr 22 08:32:06 EDT 2008


Dennis Lee Bieber schrieb:
> On Mon, 21 Apr 2008 19:05:46 -0400, python at bdurham.com declaimed the
> following in comp.lang.python:
> 
>> I thought one of the major features of Python 2.5 was its embedded
>> SQLite engine.
>>
> 	No, just the inclusion of the adapter became standard... The
> packagers of Windows installers include the SQLite3 DLL as it isn't a
> commonly available item... But many Linux versions probably include it
> as an option during the OS install.

AFAIK thats wrong. On my ubuntu gutsy for example, I find this:

deets at absinth:~$ find /usr/lib/python2.5/ | grep -i sqlite
/usr/lib/python2.5/lib-dynload/_sqlite3.so
/usr/lib/python2.5/site-packages/pysqlite-2.3.2.egg-info
/usr/lib/python2.5/site-packages/pysqlite2
/usr/lib/python2.5/site-packages/pysqlite2/__init__.py
/usr/lib/python2.5/site-packages/pysqlite2/__init__.pyc
/usr/lib/python2.5/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.py
/usr/lib/python2.5/site-packages/pysqlite2/dbapi2.pyc
/usr/lib/python2.5/sqlite3
/usr/lib/python2.5/sqlite3/__init__.py

...


As you can see, stock 2.5 ships with its OWN version of sqlite, and I 
additionally installed the pysqlite-wrapper for whatever reason I now 
can't remember.

Diez



More information about the Python-list mailing list