On Monday 06 December 2010 10:32:29 Julien Jehannet wrote: > > * Arfrever Frehtes Taifersar Arahesis <[email protected]> > > [06-déc.-2010 04:07]: > > > > 2010-11-16 11:53:47 Emile Anclin napisał(a): > > > Python3 support > > > --------------- > > > > > > However, the Python3.x support should be considered as an alpha > > > release, since we know that some of the tests don't pass. > > > > > > If you install logilab-common, logilab-astng and pylint from source, > > > you > > > > > > also have to run the 2to3 script by yourself:: > > > find . ! -path "*/test/*py" -name "*py" -exec 2to3-3.1 -wn {} \; > > > > You could use distutils.command.build_py.build_py_2to3 in setup.py: > > > > try: > > # Python 3 > > from distutils.command.build_py import build_py_2to3 as build_py > > > > except ImportError: > > # Python 2 > > from distutils.command.build_py import build_py > > > > ... > > > > setup(..., > > > > cmdclass = {"build_py": build_py}, > > ...) > > This technique is not appropriate (yet) because Pylint uses a bunch of > "unparsable" test files that will fail the build step.
What about renaming the unparsable files to '.py.syntaxerror' for example in the archive and have pylint's unit test rename those before running? -- Alexandre Fayolle LOGILAB, Paris (France) Formations Python, CubicWeb, Debian : http://www.logilab.fr/formations Développement logiciel sur mesure : http://www.logilab.fr/services Informatique scientifique: http://www.logilab.fr/science _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
