[Python-projects] Syntax Errors while installing PyLint
Maarten ter Huurne
maarten.ter.huurne at philips.com
Tue Oct 16 17:06:13 CEST 2007
syt at logilab.fr wrote on 2007-10-16 09:00:42 AM:
> On Mon, Oct 15, 2007 at 05:52:28PM +0200, Maarten ter Huurne wrote:
> > I don't think the Python version is an issue here. The continue
> statement has
> > been there for quite a while: it is present in Python 2.2 and probably
even
> > longer than that. Also, "SyntaxError: 'continue' not properly in loop"
in a
> > file named "func_continue_not_in_loop.py" makes it sound intentional.
>
> it is actually intentional. And the python version is responsible for
> the 2nd syntax error (use of a generator expression).
Ah indeed, I didn't read the second one closely enough.
> > I've seen similar errors on Linux (Ubuntu), it happened when
> installing other
> > Python modules after PyLint. There seems to be a post-installationstep
that
> > byte-compiles all Python modules. This includes the PyLint tests,
> which should
> > have syntax errors in them, because they test whether PyLint reports
those
> > syntax errors correctly.
>
> This is much probably a packaging pb : on debian systems, tests should be
> installed in /usr/share/doc/pylint. I'll check our debian package and
> why distutils try to install the test directory.
Note that I always install PyLint from source (python setup.py install), so
I don't know if the Debian packages have the same problem. It would be good
though if the install from source would play nice with the distro.
Bye,
Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20071016/f1130543/attachment.htm
More information about the Python-Projects
mailing list