Package: pylint
Version: 1.3.1-3
Severity: normal

Dear Maintainer,

when working in a virtual env, pylint uses system python, not virtualenv python.


Possible fix
------------

I believe this can be fixed by changing 

#!/usr/bin/python

into 

#!/usr/bin/env python

in /usr/bin/pylint.

However, /usr/bin/pylint and /usr/bin/pylint3 are generated files and I don't 
know exactly where to make the change.


Workaround
----------

Workaround suggested on SO (http://stackoverflow.com/questions/17923090/):

Use python $(which pylint) instead of just pylint

This workaround might not be usable in every IDE pylint plugin.


Impacted versions
-----------------

This applies to both pylint and pylint3 1.5.2-1 from Stretch as well.

It may have been fixed upstream already in a more recent version, I can't tell.

Jérôme

-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pylint depends on:
ii  python                 2.7.9-1
ii  python-astroid         1.2.1-3
ii  python-logilab-common  0.62.0-1
pn  python:any             <none>

Versions of packages pylint recommends:
ii  python-tk  2.7.8-2+b1

pylint suggests no packages.

-- no debconf information

Reply via email to