Installing pylint OS X Leopard
Installing pylint on OS X Leopard
$ sudo port search pylint No match for pylint found
However,
$ sudo port search py-lint py-lint python/py-lint 0.14.0 Error (and style) checking for python $ sudo port deps py-lint py-lint has library dependencies on: python24 py-logilab-astng
So, the pylint macpot wants to install python 2.4 while I use 2.5.2. The pylint install page suggests installing it with easy_install. This failed about half way for me when running the tests. Therefore, install pylint by hand
Downloading and installing the code was straightforward.
wget ftp://ftp.logilab.fr/pub/common/logilab-common-0.30.0.tar.gz wget ftp://ftp.logilab.fr/pub/astng/logilab-astng-0.17.2.tar.gz wget ftp://ftp.logilab.fr/pub/pylint/pylint-0.14.0.tar.gz tar xzvf logilab-common-0.30.0.tar.gz cd logilab-common-0.30.0 sudo python setup.py install cd .. tar xzvf logilab-astng-0.17.2.tar.gz cd logilab-astng-0.17.2 sudo python setup.py install cd .. tar xzvf pylint-0.14.0.tar.gz cd pylint-0.14.0 sudo python setup.py install cd ..
Now,
$ pylint --version No config file found, using default configuration pylint 0.14.0, astng 0.17.2, common 0.30.0 Python 2.5.2 (r252:60911, Mar 25 2008, 16:47:00) [GCC 4.0.1 (Apple Inc. build 5465)]
That is all, pylint is installed. Now back to the code.
Comments(0)