Your message dated Wed, 20 Apr 2016 19:07:07 +0100
with message-id 
<cab4xwxxsamtxcwe4glki2o_b1hrmxbu0vxasb5poepxd_y8...@mail.gmail.com>
and subject line Re: Bug#821947: pylint doesn't point to virtualenv python
has caused the Debian Bug report #821947,
regarding pylint doesn't point to virtualenv python
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
821947: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821947
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
On Wed, Apr 20, 2016 at 6:51 PM, Jérôme <[email protected]> wrote:
> I believe this can be fixed by changing
>
> #!/usr/bin/python
>
> into
>
> #!/usr/bin/env python

as per 
https://www.debian.org/doc/packaging-manuals/python-policy/ch-programs.html
I'm using the strongly preferred form here

> Workaround suggested on SO (http://stackoverflow.com/questions/17923090/):
>
> Use python $(which pylint) instead of just pylint

yes, that's probably what you want to use?

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

what do you mean here?

No bug to fix, hence closing.

Regards,
-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi

--- End Message ---

Reply via email to