New submission from Michele Orrù:
On Arch/Linux, running `make html` fails with
$ make html
mkdir -p build/html build/doctrees
python tools/sphinx-build.py -b html -d build/doctrees -D latex_paper_size= .
build/html
Traceback (most recent call last):
File "tools/sphinx-build.py", line 27, in <module>
from sphinx import main
File "/..../cpython/Doc/tools/sphinx/__init__.py", line 44
except ImportError, err:
^
SyntaxError: invalid syntax
make: *** [build] Error 1
That is because sphinx needs python version 2 to run; but `python` is symlinked
to python3 on my platform. We should replace $PYTHON with python2, which AFAIS
here[0], it would point to the correct version.
[0] http://hg.python.org/cpython/file/5fc6f47974db/Makefile.pre.in#l808
----------
components: Interpreter Core
messages: 172931
nosy: maker
priority: normal
severity: normal
status: open
title: Doc/Makefile should have $PYTHON=python2
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16236>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com