Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building python 2.6 w/ sqlite3 module if sqlite is installed in non-standard location

Tags:

python

sqlite

I am trying to build python2.6 with support for the sqlite3 module.

I have successfully built and installed the sqlite-amalgamation to a non standard path: ./configure --prefix=/my/non/standard/install/path/sqlite/3.6.20/ make make install

I would like the python2.6 build to use this path & build the sqlite3 module. I checked './configure --help' but did not see any type of "--with-sqlite-dir=path" option.

How can I let python's configure know where sqlite lives?

like image 599
Cyrus Avatar asked Nov 05 '09 00:11

Cyrus


1 Answers

Rather than rebuilding python, the simplest way to get the most recent sqlite3 is to install the pysqlite package which is the more up-to-date version of the standard library's sqlite3 module. It includes support for more recent sqlite3 features and is upwards compatible. More details are here.

like image 165
Ned Deily Avatar answered Nov 15 '22 02:11

Ned Deily