diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-12-05 14:10:29 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2011-12-05 14:10:29 +0100 |
commit | 751484e68edbb8345aa9a48ceadec60a772f14f2 (patch) | |
tree | 2007e1067e2ca36f0edca3065b352704717223d1 /README.Python3 | |
parent | df62bb8696ad499435fa9313cb71828dfd189a52 (diff) | |
download | pylint-git-751484e68edbb8345aa9a48ceadec60a772f14f2.tar.gz |
[doc] update README.Python3 (closes: #82421)
Forget hardy distribution.
Diffstat (limited to 'README.Python3')
-rw-r--r-- | README.Python3 | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/README.Python3 b/README.Python3 index 3c94863e3..ccc92972e 100644 --- a/README.Python3 +++ b/README.Python3 @@ -1,26 +1,27 @@ Python3 ======= -Source ------- +Compatibility +------------- + +Please, consider python3 >= 3.2 only. -Python3 portage is made by running the 2to3 script on all modules:: - find . ! -path "*/test/*py" -name "*py" -exec 2to3-3.1 -wn {} \; +Approach +-------- +We maintain a Python 2 base and use 2to3 to generate Python 3 code. -Dev ---- +2to3 is integrated into the distutils installation process and will be run as a +build step when invoked by the python3 interpreter:: -If you want to run the tests, simply remove the "! -path ..." option, hence -also refactoring the test files, including all data files. -Note that when running 2to3 on some test/input/ files, it will crash since -this folder contains corrupted files. Hence, we can not run directly -*2to3* on the test folder:: + NO_SETUPTOOLS=1 python3 setup.py install --no-compile - $ 2to3 test/ +In order to run pylint locally, you have to install the dependencies:: + + easy_install-3.2 logilab-common + easy_install-3.2 logilab-astng -But it will work nice with *find*. Debian ------ @@ -30,3 +31,7 @@ the debian/ folder:: cp debian.py3k/* debian/ + +Resources +--------- +http://wiki.python.org/moin/PortingPythonToPy3k |