logilab/astng
view README.Python3 @ 965:0272006bdfbe
use open rather than file as 2to3 miss it (probably because of the file class attribute)
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
|---|---|
| date | Thu, 19 Jan 2012 17:02:39 +0100 |
| parents | c916a7a45d16 |
| children |
line source
1 Python3
2 =======
4 Approach
5 --------
7 We maintain a Python 2 base and use 2to3 to generate Python 3 code.
9 2to3 is integrated into the distutils installation process and will be run as a
10 build step when invoked by the python3 interpreter::
12 python3 setup.py install --no-compile
15 Debian
16 ------
18 For the Debian packaging, you can use the debian.py3k/ content against
19 the debian/ folder::
21 cp debian.py3k/* debian/
24 Resources
25 ---------
26 http://wiki.python.org/moin/PortingPythonToPy3k
