2010-11-16 10:40:25 +00:00
|
|
|
Python3
|
|
|
|
=======
|
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
Compatibility
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Please, consider python3 >= 3.2 only.
|
2010-11-16 10:40:25 +00:00
|
|
|
|
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
Approach
|
|
|
|
--------
|
2010-11-16 10:40:25 +00:00
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
We maintain a Python 2 base and use 2to3 to generate Python 3 code.
|
2010-11-16 10:40:25 +00:00
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
2to3 is integrated into the distutils installation process and will be run as a
|
|
|
|
build step when invoked by the python3 interpreter::
|
2010-11-16 10:40:25 +00:00
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
NO_SETUPTOOLS=1 python3 setup.py install --no-compile
|
2010-11-16 10:40:25 +00:00
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
In order to run pylint locally, you have to install the dependencies::
|
|
|
|
|
|
|
|
easy_install-3.2 logilab-common
|
2013-06-17 13:06:48 +00:00
|
|
|
easy_install-3.2 astroid
|
2010-11-16 10:40:25 +00:00
|
|
|
|
|
|
|
|
|
|
|
Debian
|
|
|
|
------
|
|
|
|
|
|
|
|
For the Debian packaging, you can use the debian.py3k/ content against
|
|
|
|
the debian/ folder::
|
|
|
|
|
|
|
|
cp debian.py3k/* debian/
|
|
|
|
|
2011-12-05 13:10:29 +00:00
|
|
|
|
|
|
|
Resources
|
|
|
|
---------
|
|
|
|
http://wiki.python.org/moin/PortingPythonToPy3k
|