We’ve set up a new build server at work and for some perplexing reasons the virtualenv python was missing support for sqlite3, even though the system python had it. Although the system python still had sqlite3. We need to make sure the dev package of sqlite3 is installed before compiling.
yum sqlite3-devel wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz tar -zxvf Python-2.7.2.tgz cd Python-2.7.2/
Then configure python to be built absolute path of the virtualenv:
./configure --prefix=/var/lib/jenkins/.virtualenvs/clients/ make make install