On 2012-06-12, Federico Bruni wrote: > Il 13/06/2012 00:48, Federico Bruni ha scritto: >> Currently I have docutils 0.8 on my debian system. >> I've tried installing latest svn version but code is not recognized:
> Nevermind, it didn't work because I followed the README in docutils > source code (which recommended using python3), so Sphinx didn't look in > /usr/local/lib/python3.2 This must be a misunderstanding. Docutils works with Python 2.3 and newer but is less tested under Python 3. For Sphinx, you need an installation under 2.x. In order to use Docutils under Python 3, it needs to be set up under Python 3, because only then the sources are converted to 3-compatible versions. If you want to use it under both, Python 2.x and Python 3.x, run e.g. .. code:: sh cd <the unpacked archive' root> cd test python alltests.py cd .. python3 setup.py build cd test3 python3 alltests.py cd .. and if no critical errors turn up: .. code:: sh :class: root cd <the unpacked archive' root> python3 setup.py install python setup.py install (The last setup command should use the default Python version, as distutils puts the command it was called with in the shebang line of the executables.) The latter code block translates here to:: <p>and if no critical errors turn up:</p> <pre class="code sh root literal-block"> <span class="nb">cd</span> <the unpacked archive<span class="err">'</span> root> python3 setup.py install python setup.py install </pre> which should match a CSS rule like:: pre.sh.root {background: red;} However, prefixing some command line prompt via CSS does not work, as the lines are not wrapped in a tag. Günter -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.