annotate Doc/make.bat @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents e45db319e590
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68251
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
1 @@echo off
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
2 setlocal
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
3
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
4 set SVNROOT=http://svn.python.org/projects
82654
9b45873e5a68 Issue #17386 make.bat must run with Python 2 until Sphinx runs with Python 3.
Terry Jan Reedy <tjreedy@udel.edu>
parents: 68257
diff changeset
5 if "%PYTHON%" EQU "" set PYTHON=py -2
68251
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
6 if "%HTMLHELP%" EQU "" set HTMLHELP=%ProgramFiles%\HTML Help Workshop\hhc.exe
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
7 if "%DISTVERSION%" EQU "" for /f "usebackq" %%v in (`%PYTHON% tools/sphinxext/patchlevel.py`) do set DISTVERSION=%%v
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
8
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
9 if "%1" EQU "" goto help
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
10 if "%1" EQU "html" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
11 if "%1" EQU "htmlhelp" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
12 if "%1" EQU "latex" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
13 if "%1" EQU "text" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
14 if "%1" EQU "suspicious" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
15 if "%1" EQU "linkcheck" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
16 if "%1" EQU "changes" goto build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
17 if "%1" EQU "checkout" goto checkout
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
18 if "%1" EQU "update" goto update
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
19
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
20 :help
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
21 set this=%~n0
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
22 echo HELP
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
23 echo.
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
24 echo %this% checkout
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
25 echo %this% update
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
26 echo %this% html
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
27 echo %this% htmlhelp
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
28 echo %this% latex
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
29 echo %this% text
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
30 echo %this% suspicious
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
31 echo %this% linkcheck
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
32 echo %this% changes
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
33 echo.
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
34 goto end
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
35
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
36 :checkout
68135
9ff7bc361060 Make svn:eol-style's more consistent
Antoine Pitrou <solipsis@pitrou.net>
parents: 67618
diff changeset
37 svn co %SVNROOT%/external/Sphinx-1.0.7/sphinx tools/sphinx
68251
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
38 svn co %SVNROOT%/external/docutils-0.6/docutils tools/docutils
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
39 svn co %SVNROOT%/external/Jinja-2.3.1/jinja2 tools/jinja2
79332
543c6a8d5787 Use newer version of Pygments that handles "yield from".
Georg Brandl <georg@python.org>
parents: 68257
diff changeset
40 svn co %SVNROOT%/external/Pygments-1.5dev-20120930/pygments tools/pygments
68251
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
41 goto end
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
42
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
43 :update
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
44 svn update tools/sphinx
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
45 svn update tools/docutils
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
46 svn update tools/jinja2
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
47 svn update tools/pygments
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
48 goto end
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
49
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
50 :build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
51 if not exist build mkdir build
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
52 if not exist build\%1 mkdir build\%1
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
53 if not exist build\doctrees mkdir build\doctrees
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
54 cmd /C %PYTHON% --version
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
55 cmd /C %PYTHON% tools\sphinx-build.py -b%1 -dbuild\doctrees . build\%*
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
56 if "%1" EQU "htmlhelp" "%HTMLHELP%" build\htmlhelp\python%DISTVERSION:.=%.hhp
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
57 goto end
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
58
255bb3ae7030 Add updated .hgeol file and fix newlines in the 3.1 branch.
Georg Brandl <georg@python.org>
parents: 59571
diff changeset
59 :end