[New-bugs-announce] [issue16236] Doc/Makefile should have $PYTHON=python2
Michele Orrù
report at bugs.python.org
Mon Oct 15 00:15:17 CEST 2012
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 <report at bugs.python.org>
<http://bugs.python.org/issue16236>
_______________________________________
More information about the New-bugs-announce
mailing list