]> granicus.if.org Git - python/commitdiff
Issue #17386 make.bat must run with Python 2 until Sphinx runs with Python 3.
authorTerry Jan Reedy <tjreedy@udel.edu>
Thu, 14 Mar 2013 01:33:50 +0000 (21:33 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Thu, 14 Mar 2013 01:33:50 +0000 (21:33 -0400)
If PYTHON is undefined, this fails without the launcher (installed with 3.3 or
from PyPI), but this is better than always failing. Patch from Zachary Ware.

Doc/make.bat

index 4ea2d519b273a1b6109360d96800a1d57625138b..af3bade8279847610a49552e071015d30ead7729 100644 (file)
@@ -2,7 +2,7 @@
 setlocal
 
 set SVNROOT=http://svn.python.org/projects
-if "%PYTHON%" EQU "" set PYTHON=..\pcbuild\python
+if "%PYTHON%" EQU "" set PYTHON=py -2
 if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
 if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v