Monday, November 23, 2009

Compiling Python 2.6 with sqlite3 support

Quick note to self, hopefully useful to others too:

If you compile Python 2.6 (or 2.5) from source, and you want to enable sqlite3 support (which is included in the stdlib for 2.5 and above), then you need to pass a special USE flag to the configuration command line, like this:

./configure USE="sqlite"

(note "sqlite" and not "sqlite3")


jcalderone said...

Hm. That's strange. I've built Python 2.5 and 2.6 from source and I didn't do this either time, but I got the "sqlite3" module. I wonder what the difference is.

Mariano said...

Same doubt here: I just compiled Python 2.6 in Centos 5 64 bits: only thing I needed -of course- was the dev files for sqlite.

Grig Gheorghiu said...

It may be some peculiarity of my environment....I am compiling Python 2.6 from source on an Ubuntu 8.04 box, which has Python 2.5 as the default.

Modifying EC2 security groups via AWS Lambda functions

One task that comes up again and again is adding, removing or updating source CIDR blocks in various security groups in an EC2 infrastructur...