Kiln » TortoiseHg » WinBuild Read More
Clone URL:  
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
TortoiseHg and Mercurial installer builder for Windows Repository subdirs: contrib/ - Bundled libraries and utilities external to (T)HG misc/ - Miscellaneous files used to build packages Clones (setup.py will create these clones at runtime): hg-main - Mercurial repository tortoisehg - TortoiseHg repository hgfold - case folding conflict detection and resolution extension hgcr-gui - code review extension keyring - python-keyring-lib hgkeyring - mercurial keyring extension perfarce - perforce integration extension hgeol - EOL handling extension (eventual successor to win32text) === Mercurial Prerequisites === - Python 2.6.4 http://www.python.org/ C:\Python26 must be in your PATH - C++ Compiler Get the gratis "Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1" from microsoft.com. See the win32/shellext/README.txt file in the TortoiseHg source for details on installing this package. If you already have Visual Studio 2008, installing the SDK will confuse DISTUTILS when it tries to build Mercurial's C extensions. Simply comment out the line in setup.py that sets the DISTUTILS_USE_SDK environment variable, and distutils will use VC2008 to build Mercurial and our build scripts will use SDK's compiler to build the THG shell extension. These are supposedly the same compiler, so it should be ok. - pywin32 Get the latest version for your Python release http://sourceforge.net/projects/pywin32/ pywin32-214.win32-py2.6.exe - gettext We recommend the 'Setup program' from http://gnuwin32.sourceforge.net/packages/gettext.htm - py2exe Get the latest version for your Python release http://sourceforge.net/projects/py2exe/ - Windows Installer XML Get the latest stable 3.0 package from http://sourceforge.net/projects/wix/files/ - Docutils Building HTML man pages for Mercurial requires the rst2html.py script from docutils. The easiest way to get docutils is to install setuptools (below), then: C:\Python26\Scripts\easy_install.exe docutils === Building TortoiseHg documentation === To build just the TortoiseHg docs, install the packages below then: python setup.py --thg-doc - setuptools (provides easy_install.exe) Get the latest version for your Python release http://pypi.python.org/pypi/setuptools We're using: setuptools-0.6.c11.win32-py2.6 - sphinx, docutils, jinja2, pygments, etc (requires easy_install from setuptools) The sphinx package has dependencies for docutils, jinja, etc, so installing sphinx pulls in all the other prerequisites. easy_install sphinx - MiKTeX (to build PDF docs) http://miktex.org/2.8/setup You can chose for it to automatically download packages when it needs them, else the first time it builds PDF docs it will require much user interaction. We're using: setup-2.8.3553 - HTML Help Workshop (to build CHM docs) This should come with the Windows SDK, but also available here: http://msdn.microsoft.com/en-us/library/ms669985%28VS.85%29.aspx === Building TortoiseHg Installer Packages === To build TortoiseHg MSI packages, you need the Mercurial prerequisites, TortoiseHg documentation prerequisites, and these packages: - GTK+ for Windows http://www.gtk.org/download-windows.html Unzip to C:\GTK or set GTK_PATH to the unzip location The WiX scripts require: gtk+-bundle_2.16.6-20100207_win32.zip - PyGTK Get the latest version for your Python release http://www.pygtk.org/downloads.html The WiX scripts require: pycairo-1.8.6.win32-py2.6 pygobject-2.20.0.win32-py2.6 pygtk-2.16.0.win32-py2.6 - iniparse (requires easy_install from setuptools) easy_install --always-unzip iniparse - pyreadline (optional) required by wincolor extension (requires easy_install from setuptools) easy_install --always-unzip pyreadline - OpenSSL Python bindings (optional) easy_install --always-unzip pyopenssl - Subversion Python bindings (optional) If you want your TortoiseHg package to include Subversion Python bindings (for svn conversions), install the bindings from: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100 We're using: svn-python-1.6.6.win32-py2.6.exe == Build Steps == It's entirely automated. Ensure C:\Python26 is in your path, then run: python setup.py --help