comparison docs/installation_win.rst @ 3358:321ca2e69004 beta

installation win document updates
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 10 Feb 2013 17:52:29 +0100
parents 7b74079beec9
children 2dfefa385fde
comparison
equal deleted inserted replaced
3357:674a8fad3abc 3358:321ca2e69004
11 + All Windows Updates until 24-may-2012 11 + All Windows Updates until 24-may-2012
12 12
13 .. note:: 13 .. note::
14 14
15 This installation is for 32bit systems, for 64bit windows you might need 15 This installation is for 32bit systems, for 64bit windows you might need
16 to download proper 64bit version of "Windows Installer" and Win32py 16 to download proper 64bit versions of the different packages(Windows Installer, Win32py extensions)
17 extensions 17 plus some extra tweaks.
18 These extra steps haven been marked as "64bit".
19 Tested on Windows Server 2008 R2 SP1, 9-feb-2013.
20 If you run into any 64bit related problems, please check these pages:
21 - http://blog.victorjabur.com/2011/06/05/compiling-python-2-7-modules-on-windows-32-and-64-using-msvc-2008-express/
22 - http://bugs.python.org/issue7511
18 23
19 Step1 - Install Visual Studio 2008 Express 24 Step1 - Install Visual Studio 2008 Express
20 ------------------------------------------ 25 ------------------------------------------
21 26
22 27
39 .. note:: 44 .. note::
40 45
41 Silverlight Runtime and SQL Server 2008 Express Edition are not 46 Silverlight Runtime and SQL Server 2008 Express Edition are not
42 required, you can uncheck them 47 required, you can uncheck them
43 48
49 .. note::
50 64bit: You also need to install the Microsoft Windows SDK for .NET 3.5 SP1 (.NET 4.0 won't work).
51 Download from: http://www.microsoft.com/en-us/download/details.aspx?id=3138
52
53 .. note::
54 64bit: You also need to copy and rename a .bat file to make the Visual C++ compiler work.
55 I am not sure why this is not necessary for 32bit.
56 Copy C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\vcvars64.bat to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\vcvarsamd64.bat
57
44 58
45 Step2 - Install Python 59 Step2 - Install Python
46 ---------------------- 60 ----------------------
47 61
48 Install Python 2.x.y (x >= 5) x86 version (32bit). DO NOT USE A 3.x version. 62 Install Python 2.x.y (x >= 5) x86 version (32bit). DO NOT USE A 3.x version.
52 Choose "Windows Installer" (32bit version) not "Windows X86-64 66 Choose "Windows Installer" (32bit version) not "Windows X86-64
53 Installer". While writing this guide, the latest version was v2.7.3. 67 Installer". While writing this guide, the latest version was v2.7.3.
54 Remember the specific major and minor version installed, because it will 68 Remember the specific major and minor version installed, because it will
55 be needed in the next step. In this case, it is "2.7". 69 be needed in the next step. In this case, it is "2.7".
56 70
71 .. note::
72 64bit: Just download and install the 64bit version of python.
57 73
58 Step3 - Install Win32py extensions 74 Step3 - Install Win32py extensions
59 ---------------------------------- 75 ----------------------------------
60 76
61 Download pywin32 from: 77 Download pywin32 from:
66 - Choose the file ending with ".win32-py2.x.exe" -> x being the minor 82 - Choose the file ending with ".win32-py2.x.exe" -> x being the minor
67 version of Python you installed (in this case, 7) 83 version of Python you installed (in this case, 7)
68 When writing this guide, the file was: 84 When writing this guide, the file was:
69 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download 85 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/pywin32-217.win32-py2.7.exe/download
70 86
87 .. note::
88 64bit: Download and install the 64bit version.
89 At the time of writing you can find this at:
90 http://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/pywin32-218.win-amd64-py2.7.exe/download
71 91
72 Step4 - Python BIN 92 Step4 - Python BIN
73 ------------------ 93 ------------------
74 94
75 Add Python BIN folder to the path 95 Add Python BIN folder to the path
143 163
144 Close previously opened command prompt/s, and open a Visual Studio 2008 164 Close previously opened command prompt/s, and open a Visual Studio 2008
145 Command Prompt (**IMPORTANT!!**). To do so, go to Start Menu, and then open 165 Command Prompt (**IMPORTANT!!**). To do so, go to Start Menu, and then open
146 "Microsoft Visual C++ 2008 Express Edition" -> "Visual Studio Tools" -> 166 "Microsoft Visual C++ 2008 Express Edition" -> "Visual Studio Tools" ->
147 "Visual Studio 2008 Command Prompt" 167 "Visual Studio 2008 Command Prompt"
168
169 .. note::
170 64bit: For 64bit you need to modify the shortcut that is used to start the
171 Visual Studio 2008 Command Prompt. Use right-mouse click to open properties.
172 Change commandline from::
173
174 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
175
176 to::
177
178 %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" amd64
179
148 180
149 In that CMD (loaded with VS2008 PATHs) type:: 181 In that CMD (loaded with VS2008 PATHs) type::
150 182
151 cd C:\RhodeCode\Env\Scripts (or similar) 183 cd C:\RhodeCode\Env\Scripts (or similar)
152 activate 184 activate