Well, if Pylint is supposed to support 2.5, adding a from __future__ import 
with_statement in all relevant modules is the correct solution.

If 2.5 is not supported, and you still need it for whatever purposes, you can 
try hacking compileall.py passing in the correct flags to the compile function.

Andreas

Dan Stromberg <strom...@gmail.com> schrieb:



(included the list this time)

I've gone through attempting to do the build manually, and ran across this 
while building common:

running install_lib
byte-compiling 
/usr/local/cpython-2.5/lib/python2.5/site-packages/logilab/common/test/unittest_decorators.py
 to unittest_decorators.pyc
/usr/local/cpython-2.5/lib/python2.5/site-packages/logilab/common/test/unittest_decorators.py:63:
 Warning: 'with' will become a reserved keyword in Python 2.6
  File 
"/usr/local/cpython-2.5/lib/python2.5/site-packages/logilab/common/test/unittest_decorators.py",
 line 63
    with self.assertRaises(AttributeError) as cm:
            ^
SyntaxError: invalid syntax

I agree, 2.5 is getting old.  I'm only supporting it because Jython's most 
recent production release is comparable to cpython 2.5.   Jython does have a 
2.7 beta now though.

On Wed, Aug 7, 2013 at 7:41 AM, Kostyrka (External user) Andreas 
<andreas.kosty...@kapsch.net<mailto:andreas.kosty...@kapsch.net>> wrote:
That seems to to be an issue with the distutils in your python2.5 install, not 
pylint as such. No idea btw, what the supported versions for pylint are, but 
2.5 is starting to get old, .

Andreas

  File "/usr/local/cpython-2.5/lib/python2.5/distutils/dist.py", line 994, in 
run_command
    cmd_obj.run()
  File "setup.py", line 132, in run
    shutil.copytree(directory, dest, ignore=lambda dir, names: list(set(names) 
& exclude))
TypeError: copytree() got an unexpected keyword argument 'ignore'
root@zareason:~/src/cpythons#




The information contained in this e-mail message is privileged and confidential 
and is for the exclusive use of the addressee. The person who receives this 
message and who is not the addressee, one of his employees or an agent entitled 
to hand it over to the addressee, is informed that he may not use, disclose or 
reproduce the contents thereof, and is kindly asked to notify the sender and 
delete the e-mail immediately.




--
Dan Stromberg



The information contained in this e-mail message is privileged and confidential 
and is for the exclusive use of the addressee. The person who receives this 
message and who is not the addressee, one of his employees or an agent entitled 
to hand it over to the addressee, is informed that he may not use, disclose or 
reproduce the contents thereof, and is kindly asked to notify the sender and 
delete the e-mail immediately.
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to