@@ -273,65 +273,24 @@ still build properly).
273
273
Windows
274
274
'''''''
275
275
276
- The `readme <https://github.com/python/cpython/blob/master/PCbuild/readme.txt >`_
277
- included in the solution has more details, especially on what additional
278
- software is required to build which parts of Python.
279
-
280
276
**Python 3.5 ** and later use Microsoft Visual Studio 2015. You can download
281
- and use any of the free or paid versions of `Visual Studio 2015
282
- <https://www.visualstudio.com/> `_. Installing the latest updates is also
283
- recommended.
284
-
285
- Python 3.3 and 3.4 use Microsoft Visual Studio 2010. You can download
286
- Microsoft Visual Studio 2010 Express with an `MSDN subscription
287
- <https://msdn.microsoft.com/subscriptions/downloads> `_.
288
- You'll also need to install the Visual Studio `Service Pack 1 (SP1)
289
- <http://www.microsoft.com/en-us/download/details.aspx?id=23691> `_. If you
290
- don't install this service pack, you may receive errors like the following
291
- during linking: ``LINK : fatal error LNK1123: failure during conversion to
292
- COFF: file invalid or corrupt ``.
293
-
294
- Most Python versions prior to 3.3 use Microsoft Visual Studio 2008. You can
295
- download Microsoft Visual C++ 2008 Express Edition with SP1
296
- from a new location yet to be determined.
297
-
298
- Regardless of Visual Studio version, the ``PCbuild `` directory of a source
299
- checkout contains the build files for the Python version you are building.
300
-
301
- To build from the command line, execute :file: `PCBuild\\ build.bat `. If you
302
- have not previously done so, you can pass the ``-e `` option to download
303
- external dependencies or invoke :file: `PCBuild\\ get_externals.bat ` directly. By
304
- default, :file: `PCBuild\\ build.bat ` will produce a 32-bit release build. Pass
305
- the ``-p x64 `` option to produce a 64-bit build, and/or the ``-d `` option to
306
- produce a debug build.
307
-
308
- To build from the Visual Studio GUI, open the ``pcbuild.sln `` solution file
309
- with Visual Studio. Choose the :menuselection: `Build Solution ` option
310
- under the :menuselection: `Build ` menu. Be sure that "Debug" was chosen
311
- as the active solution configuration (e.g. under
312
- :menuselection: `Build --> Configuration Manager... `).
313
-
314
- When building you may see a number of build errors related to missing
315
- files or directories. These do not necessarily mean that Python failed
316
- to build. If you prefer, you can exclude the offending projects from
317
- the build process by unchecking them inside the
318
- :menuselection: `Build --> Configuration Manager... ` settings. You can
319
- also use the script :file: `PCbuild\\ get_externals.bat ` to download missing
320
- dependencies.
321
-
322
- Once built you might want to set Python as a startup project. Pressing F5 in
323
- Visual Studio, or choosing :menuselection: `Start Debugging ` from the
324
- :menuselection: `Debug ` menu, will launch the interpreter.
325
-
326
- .. _win-python.exe :
327
-
328
- If you want to launch the compiled interpreter from the command-line, the
329
- path varies according to the build. For a 32-bit build in debug mode, you
330
- have to invoke ``PCBuild\win32\python_d.exe ``, for a 64-bit build in debug
331
- mode, ``PCBuild\amd64\python_d.exe ``. If you are compiling in release mode
332
- (which you shouldn't, in general), replace ``python_d.exe `` with
333
- ``python.exe ``. You can also invoke the most recently built interpreter using
334
- ``python.bat `` in the root of the source tree.
277
+ and use any of the free or paid versions of `Visual Studio 2015 `_. Installing
278
+ the latest updates is also recommended. See the readme _ for
279
+ more details on what other software is necessary and how to build.
280
+
281
+ **Python 2.7 ** uses Microsoft Visual Studio 2008, which is most easily obtained
282
+ through an MSDN subscription. To use the build files in the `PCbuild
283
+ directory `_ you will also need Visual Studio 2010, see the `2.7 readme `_ for
284
+ more details. If you have VS 2008 but not 2010 you can use the build files in
285
+ the `PC/VS9.0 directory `_, see the `VS9 readme `_ for details.
286
+
287
+ .. _Visual Studio 2015 : https://www.visualstudio.com/
288
+ .. _readme : https://github.com/python/cpython/blob/master/PCbuild/readme.txt
289
+ .. _PCbuild directory : https://github.com/python/cpython/tree/2.7/PCbuild/
290
+ .. _2.7 readme : https://github.com/python/cpython/blob/2.7/PCbuild/readme.txt
291
+ .. _PC/VS9.0 directory : https://github.com/python/cpython/tree/2.7/PC/VS9.0/
292
+ .. _VS9 readme : https://github.com/python/cpython/blob/2.7/PC/VS9.0/readme.txt
293
+
335
294
336
295
.. _build_troubleshooting :
337
296
0 commit comments