Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f92acf5

Browse files
committed
Merge branch 'master' into github
2 parents b20457c + f8645b6 commit f92acf5

File tree

5 files changed

+27
-69
lines changed

5 files changed

+27
-69
lines changed

docquality.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ To clone the Developer's Guide::
8383

8484
$ git clone https://github.com/python/devguide.git
8585

86-
To build the devguide, you must have `Sphinx`_ installed. The devguide HTML
87-
can be built by running::
86+
To build the devguide, you must have the latest stable version of `Sphinx`_
87+
installed. The devguide HTML can be built by running::
8888

8989
$ make html
9090

documenting.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,8 +1458,9 @@ To build the documentation, follow the instructions from one of the sections
14581458
below. You can view the documentation after building the HTML by pointing
14591459
a browser at the file :file:`Doc/build/html/index.html`.
14601460

1461-
You are expected to have installed a recent version of Sphinx on your system or
1462-
in a virtualenv_, so that the Makefile can find the ``sphinx-build`` command.
1461+
You are expected to have installed the latest stable version of Sphinx_ on
1462+
your system or in a virtualenv_, so that the Makefile can find the
1463+
``sphinx-build`` command.
14631464

14641465

14651466
Using make / make.bat

index.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ patch:
4949
./python -m test -j3
5050

5151
On :ref:`most <mac-python.exe>` Mac OS X systems, replace :file:`./python`
52-
with :file:`./python.exe`. On Windows, use :file:`python.bat` or
53-
check the :ref:`Windows instructions <win-python.exe>`. With Python 2.7,
54-
replace ``test`` with ``test.regrtest``.
52+
with :file:`./python.exe`. On Windows, use :file:`python.bat`. With Python
53+
2.7, replace ``test`` with ``test.regrtest``.
5554
5. Make a :doc:`pull request <pullrequest>`.
5655
6. Create an issue on the `issue tracker`_ if one does not already exist.
5756

@@ -76,9 +75,9 @@ Status of Python branches
7675
+------------------+--------------+-------------+----------------+----------------+----------------------------------------------------------------------------+
7776
| Branch | Schedule | Status | First release | End-of-life | Comment |
7877
+==================+==============+=============+================+================+============================================================================+
79-
| default | *TBD* | features | *TBD* | *TBD* | The default branch is currently the future version Python 3.7. |
78+
| default | :pep:`537` | features | *2018-06-15* | *2023-06-15* | The default branch is currently the future version Python 3.7. |
8079
+------------------+--------------+-------------+----------------+----------------+----------------------------------------------------------------------------+
81-
| 3.6 | :pep:`494` | bugfix | *2016-12-16* | *2021-12-16* | For the beta and rc phases of the future 3.6.0, then maintenance for 3.6.x |
80+
| 3.6 | :pep:`494` | bugfix | 2016-12-23 | *2021-12-23* | |
8281
+------------------+--------------+-------------+----------------+----------------+----------------------------------------------------------------------------+
8382
| 3.5 | :pep:`478` | bugfix | 2015-09-13 | *2020-09-13* | |
8483
+------------------+--------------+-------------+----------------+----------------+----------------------------------------------------------------------------+

runtests.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ from the root directory of your checkout (after you have
2121

2222
You may need to change this command as follows throughout this section.
2323
On :ref:`most <mac-python.exe>` Mac OS X systems, replace :file:`./python`
24-
with :file:`./python.exe`. On Windows, use :file:`PCbuild\\python_d.exe` or
25-
check the detailed :ref:`Windows instructions <win-python.exe>`. If using
24+
with :file:`./python.exe`. On Windows, use :file:`python.bat`. If using
2625
Python 2.7, replace ``test`` with ``test.regrtest``.
2726

2827
If you don't have easy access to a command line, you can run the test suite from

setup.rst

Lines changed: 17 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -273,65 +273,24 @@ still build properly).
273273
Windows
274274
'''''''
275275

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-
280276
**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+
335294

336295
.. _build_troubleshooting:
337296

0 commit comments

Comments
 (0)