Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410593 - dev-python/sphinx-1.1.3-r2 emerge fails with USE="doc" and Python 3
Summary: dev-python/sphinx-1.1.3-r2 emerge fails with USE="doc" and Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-02 18:58 UTC by Chris Mayo
Modified: 2012-04-03 15:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2012-04-02 18:58:54 UTC
* Generation of documentation
make -j5 'SPHINXBUILD=python3.2 ../sphinx-build.py' html 
python3.2 ../sphinx-build.py -b html -d _build/doctrees    . _build/html
Traceback (most recent call last):
  File "../sphinx-build.py", line 15, in <module>
    sys.exit(main(sys.argv))
  File "/var/tmp/portage/dev-python/sphinx-1.1.3-r2/work/Sphinx-1.1.3/sphinx/__init__.py", line 47, in main
    from sphinx import cmdline
  File "/var/tmp/portage/dev-python/sphinx-1.1.3-r2/work/Sphinx-1.1.3/sphinx/cmdline.py", line 198
    except Exception, err:
                    ^
SyntaxError: invalid syntax
make: *** [html] Error 1
 * ERROR: dev-python/sphinx-1.1.3-r2 failed (compile phase):


Looks like sphinx-build.py is using the original source and not the modified code in Sphinx-1.1.3/build-3.2/lib/sphinx.
Comment 1 jannis 2012-04-03 07:49:16 UTC
Same here.
But it doesn't work with python-2.7 selected by eselect during build. Chris, does it work for you then?
Comment 2 Mike Gilbert gentoo-dev 2012-04-03 14:49:32 UTC
This package is really starting to irritate me...
Comment 3 Mike Gilbert gentoo-dev 2012-04-03 15:26:57 UTC
+  03 Apr 2012; Mike Gilbert <floppym@gentoo.org> sphinx-1.1.3-r2.ebuild:
+  Fix generation of docs with python 3. Solution copied from Progress overlay.
+