[issue16236] Doc/Makefile should have $PYTHON=python2

2014-04-15 Thread Berker Peksag

Berker Peksag added the comment:

You can now build the Python documentation with using Python 3. See msg216161 
in issue 10224 for more information.

--
nosy: +berker.peksag
resolution:  - out of date
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-20 Thread Michele Orrù

Michele Orrù added the comment:

 The patch should not unconditionally use `python2` since many distributions 
 do not yet install a `python2` link 
 to the interpreter nor is there one when running python2.7 from a build 
 directory.  The Makefile could 
 conditionally try `python2` and then fall back to `python`.
Sorry, I did not know that some OSes could not have the `python2` symlink, I 
just watched if there was on the Makefile. 


 Yes, please don’t break many OSes for the sake of one.

Concerning this, we should do a proper configure script. Do you think that's 
worth it, E`ric?  
```
Real configure scripts are generally much more complicated than this, since 
they may deal with systems where $PATH is not delimited by colons; or systems 
where executable programs may have optional extensions like .EXE; or $PATH 
variables that have the current working directory included in them as an empty 
string; etc. 

-- http://mywiki.wooledge.org/BashFAQ/081

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-19 Thread Éric Araujo

Éric Araujo added the comment:

Yes, please don’t break many OSes for the sake of one.

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-14 Thread Michele Orrù

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 rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-14 Thread Michele Orrù

Changes by Michele Orrù maker...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file27576/issue16236.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-14 Thread Michele Orrù

Changes by Michele Orrù maker...@gmail.com:


--
assignee:  - docs@python
components: +Documentation -Interpreter Core
nosy: +docs@python

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16236] Doc/Makefile should have $PYTHON=python2

2012-10-14 Thread Ned Deily

Ned Deily added the comment:

The patch should not unconditionally use `python2` since many distributions do 
not yet install a `python2` link to the interpreter nor is there one when 
running python2.7 from a build directory.  The Makefile could conditionally try 
`python2` and then fall back to `python`.

--
nosy: +ned.deily
versions: +Python 2.7 -Python 3.1, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com