-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 29.03.2010 08:21, schrieb Guenter Milde: > On 2010-03-28, Lennart Regebro wrote: >> On Wed, Mar 24, 2010 at 11:08, Guenter Milde <[email protected]> wrote: >>> AFAIK, you must convert the code with 2to3. This is automatically done, if >>> you install with setuptools under Python 3.
Unfortunately, Sphinx has not been ported yet to Python 3. The docs for Python 3 themselves have to be built with a Python 2 interpreter. However, I'm very confident, given the focus of the PSF in this year's GSoC, that one of the projects we get will do the porting (together with other stuff, since I don't think it'll take so long) >> No, it's not automatically done. In fact, setuptools has no such >> support except the one in distutils. > > My version of /usr/lib/python2.5/site-packages/setuptools (0.7) defines > in build_py():: > > self.run_2to3(self.__updated_files, False) > > and as fallback:: > > except ImportError: > class Mixin2to3: > def run_2to3(self, files, doctests=True): > # Nothing done in 2.x > pass > > > Sphinx's setup.py explicitely uses setuptools:: [...] >> There is easy support for converting at install Distribute under >> Python 3, but it must be enabled by the package authors, as code >> generally does not convert cleanly. > > The Sphinx author made Docutils "py3k-save" and provided for > auto-conversion in Docutil's setup.py, so I would really be astonished if > he missed to do so in Sphinx. Well, the docutils are a prerequisite for Sphinx to work on py3k, and therefore I ported that project (and Pygments) first. I then intended to go on to Sphinx itself, but had no time for that, and other features were more important. cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAku4yBIACgkQN9GcIYhpnLB3hQCeOVkN/xwRtJ9YZORWY+Koe5NO 9dcAn3jMwkLIseo1NSmzFxLTe1kEPlhn =isna -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
