From: Georg Brandl <g.brandl@gm...> - 2009-04-01 20:08:06
I've just committed a somewhat larger patch that ports docutils to Python 3.
If you want to use docutils under Python 3, here is how to do it:
* Get a build of the Python 3.1 branch (3.0 release won't work, but you don't
want to use it anyway).
* Run python3 setup.py build -- this, in addition to copying the sources to
build/lib, will also convert them using 2to3 to Python 3-compatible code.
This takes quite some time the first time, but it works incrementally, so
if you change one file it will only reconvert that file the next time you
run setup.py build.
* Run python3 tests/alltests3.py -- this will copy and convert the test suite
to build/lib/test and run it. This is incremental like the setup.py build.
Note that you can still run the test suite with Python 2 with the normal
So if you make a change, it would be nice if you, in addition to testing with
Python 2, also tested with Python 3. If you run into problems with the test
suite under 3, feel free to mail me.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
On Wed, Apr 01, 2009, Georg Brandl wrote:
> I've just committed a somewhat larger patch that ports docutils to
> Python 3.
Aahz (aahz@...) <*> http://www.pythoncraft.com/
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it." --Brian W. Kernighan