[Python-apps-team] Bug#527473: pylint: refers to global python interpreter

Alexandre Fayolle alexandre.fayolle at logilab.fr
Mon May 11 07:10:36 UTC 2009

Le Thursday 07 May 2009 21:28:10 Philipp Kern, vous avez écrit :
> Package: pylint
> Version: 0.14.0-2.2
> Severity: wishlist
> pylint refers to `/usr/bin/python' in its shebang line.  It would be nice
> if it could use `/usr/bin/env python' instead, to run under the Python
> interpreter the user wants.  Use case: if you have a private instance
> created with python-virtualenv you really don't want to run the global
> interpreter but the one in your path to find all the libraries in use.

The prefered way to do this at Logilab is using 

/explicit/path/to/mypython /usr/bin/pylint arguments

after having set the PYTHONPATH appropriately if required. This is done for 
example to test a module against python2.4. 

Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science

More information about the Python-apps-team mailing list