workingenv: installing pylint

 pylint, Python, workingenv  Comments Off on workingenv: installing pylint
Jan 052007
 

installing pylint is a little more complicated then necessary because it doesn’t specify it’s requirements for easy_install and it also doesn’t list download locations for logilab-common and logilab-astng in it’s cheeshop record

in your workingenv:
easy_install pylint

then switch to the tmp directory in your workingenv, and download the two packages you need:
wget ftp://ftp.logilab.fr/pub/astng/logilab-astng-0.16.3.tar.gz
wget ftp://ftp.logilab.fr/pub/common/logilab-common-0.21.1.tar.gz

then unpack them and install them:
tar -xzvf logilab-common-0.21.1.tar.gz
cd logilab-common-0.21.1
python setup.py install
cd ..
tar -xzvf logilab-astng-0.16.3.tar.gz
cd logilab-astng-0.16.3
python setup.py install

now test pylint by calling it from the command line. If all is well you should get no error messages/warnings and the standard help output.

 Posted by at 11:42 pm
Jan 052007
 

I tried setting up a workingenv for playing with SQLAlchemy today but I ran into a number of problems. First, since I had installed pysqlite2 via Synaptix, easy_install was not finding the package. So I had to uninstall the pysqlite2 that I had installed with Synaptix and then install with easy_setup.

However, there is a bug for pysqlite on cheeseshop and no download is listed. So after inquiring on the TG mailing list, I tried:
easy_install -f http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/ pysqlite

but that failed because it couldn’t find the sqlite headers.
In file included from src/module.c:24:
src/connection.h:33:21: error: sqlite3.h: No such file or directory
...
error: Setup script exited with error: command 'gcc' failed with exit status 1

So I installed the libsqlite3-dev package via Synaptix — and finally all was right with the world.

I couldn’t get pysqlite to install fully into the workingenv, so I had to install it on the base system and then when I issued the
easy_install -f http://initd.org/pub/software/pysqlite/releases/2.3/2.3.2/ pysqlite
in the workingenv a proper entry was made pointing back to the package in site-packages
Adding pysqlite 2.3.2 to easy-install.pth file
Using /usr/lib/python2.4/site-packages/pysqlite-2.3.2-py2.4-linux-i686.egg

 Posted by at 9:48 pm