17 http://sourceforge.net/projects/pywin32/ |
17 http://sourceforge.net/projects/pywin32/ |
18 |
18 |
19 mfc71.dll (just download, don't install; not needed for Python 2.6) |
19 mfc71.dll (just download, don't install; not needed for Python 2.6) |
20 http://starship.python.net/crew/mhammond/win32/ |
20 http://starship.python.net/crew/mhammond/win32/ |
21 |
21 |
22 Visual C++ 2008 SP1 redistributable package (needed for >= Python 2.6 or if you compile with MSVC) |
22 Visual C++ 2008 redistributable package (needed for >= Python 2.6 or if you compile with MSVC) |
23 for 32-bit: |
23 for 32-bit: |
24 http://www.microsoft.com/downloads/details.aspx?FamilyID=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2 |
24 http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf |
25 for 64-bit: |
25 for 64-bit: |
26 http://www.microsoft.com/downloads/details.aspx?familyid=BA9257CA-337F-4B40-8C14-157CFDFFEE4E |
26 http://www.microsoft.com/downloads/details.aspx?familyid=bd2a6171-e2d6-4230-b809-9a8d7548c1b6 |
27 |
27 |
28 The py2exe distutils extension |
28 The py2exe distutils extension |
29 http://sourceforge.net/projects/py2exe/ |
29 http://sourceforge.net/projects/py2exe/ |
30 |
30 |
31 GnuWin32 gettext utility (if you want to build translations) |
31 GnuWin32 gettext utility (if you want to build translations) |
63 If you want to create a file named setup.cfg with the contents: |
63 If you want to create a file named setup.cfg with the contents: |
64 [build] |
64 [build] |
65 compiler=mingw32 |
65 compiler=mingw32 |
66 you can skip the first build step. |
66 you can skip the first build step. |
67 |
67 |
68 Building instructions with MSVC 2008 SP1 Express Edition: |
68 Building instructions with MSVC 2008 Express Edition: |
69 for 32-bit: |
69 for 32-bit: |
70 "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 |
70 "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86 |
71 python setup.py py2exe -b 2 |
71 python setup.py py2exe -b 2 |
72 for 64-bit: |
72 for 64-bit: |
73 "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86_amd64 |
73 "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86_amd64 |
78 If you are using Python up to version 2.5.4, copy mfc71.dll into the dist |
78 If you are using Python up to version 2.5.4, copy mfc71.dll into the dist |
79 directory that just got created. |
79 directory that just got created. |
80 |
80 |
81 If you are using Python 2.6 or later, or if you are using MSVC 2008 to compile |
81 If you are using Python 2.6 or later, or if you are using MSVC 2008 to compile |
82 mercurial, you must include the C runtime libraries in the installer. To do so, |
82 mercurial, you must include the C runtime libraries in the installer. To do so, |
83 install the Visual C++ 2008 SP1 redistributable package. Then in your |
83 install the Visual C++ 2008 redistributable package. Then in your windows\winsxs |
84 windows\winsxs folder, locate the folder containing the dlls version 9.0.30729. |
84 folder, locate the folder containing the dlls version 9.0.21022.8. |
85 For x86, it should be named like x86_Microsoft.VC90.CRT_(...)_9.0.30729(...). |
85 For x86, it should be named like x86_Microsoft.VC90.CRT_(...)_9.0.21022.8(...). |
86 For x64, it should be named like amd64_Microsoft.VC90.CRT_(...)_9.0.30729(...). |
86 For x64, it should be named like amd64_Microsoft.VC90.CRT_(...)_9.0.21022.8(...). |
87 Copy the files named msvcm90.dll, msvcp90.dll and msvcr90.dll into the dist |
87 Copy the files named msvcm90.dll, msvcp90.dll and msvcr90.dll into the dist |
88 directory. |
88 directory. |
89 Then in the windows\winsxs\manifests folder, locate the corresponding manifest |
89 Then in the windows\winsxs\manifests folder, locate the corresponding manifest |
90 file (x86_Microsoft.VC90.CRT_(...)_9.0.30729(...).manifest for x86, |
90 file (x86_Microsoft.VC90.CRT_(...)_9.0.21022.8(...).manifest for x86, |
91 amd64_Microsoft.VC90.CRT_(...)_9.0.30729(...).manifest for x64), copy it in the |
91 amd64_Microsoft.VC90.CRT_(...)_9.0.21022.8(...).manifest for x64), copy it in the |
92 dist directory and rename it to Microsoft.VC90.CRT.manifest. |
92 dist directory and rename it to Microsoft.VC90.CRT.manifest. |
93 |
93 |
94 Before building the installer, you have to build Mercurial HTML documentation |
94 Before building the installer, you have to build Mercurial HTML documentation |
95 (or fix mercurial.iss to not reference the doc directory): |
95 (or fix mercurial.iss to not reference the doc directory): |
96 |
96 |