Skip to content

Commit 4d3ee77

Browse files
authored
Docs: update using/configure.rst (#116274)
1 parent 87faec2 commit 4d3ee77

File tree

1 file changed

+31
-23
lines changed

1 file changed

+31
-23
lines changed

Doc/using/configure.rst

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
Configure Python
33
****************
44

5+
.. highlight:: sh
6+
57
Build Requirements
68
==================
79

@@ -30,31 +32,31 @@ Features and minimum versions required to build CPython:
3032
* Autoconf 2.71 and aclocal 1.16.4 are required to regenerate the
3133
:file:`configure` script.
3234

33-
.. versionchanged:: 3.13:
34-
Autoconf 2.71, aclocal 1.16.4 and SQLite 3.15.2 are now required.
35+
.. versionchanged:: 3.1
36+
Tcl/Tk version 8.3.1 is now required.
3537

36-
.. versionchanged:: 3.11
37-
C11 compiler, IEEE 754 and NaN support are now required.
38-
On Windows, Visual Studio 2017 or later is required.
39-
Tcl/Tk version 8.5.12 is now required for the :mod:`tkinter` module.
38+
.. versionchanged:: 3.5
39+
On Windows, Visual Studio 2015 or later is now required.
40+
Tcl/Tk version 8.4 is now required.
4041

41-
.. versionchanged:: 3.10
42-
OpenSSL 1.1.1 is now required.
43-
Require SQLite 3.7.15.
42+
.. versionchanged:: 3.6
43+
Selected C99 features are now required, like ``<stdint.h>`` and ``static
44+
inline`` functions.
4445

4546
.. versionchanged:: 3.7
4647
Thread support and OpenSSL 1.0.2 are now required.
4748

48-
.. versionchanged:: 3.6
49-
Selected C99 features are now required, like ``<stdint.h>`` and ``static
50-
inline`` functions.
49+
.. versionchanged:: 3.10
50+
OpenSSL 1.1.1 is now required.
51+
Require SQLite 3.7.15.
5152

52-
.. versionchanged:: 3.5
53-
On Windows, Visual Studio 2015 or later is now required.
54-
Tcl/Tk version 8.4 is now required.
53+
.. versionchanged:: 3.11
54+
C11 compiler, IEEE 754 and NaN support are now required.
55+
On Windows, Visual Studio 2017 or later is required.
56+
Tcl/Tk version 8.5.12 is now required for the :mod:`tkinter` module.
5557

56-
.. versionchanged:: 3.1
57-
Tcl/Tk version 8.3.1 is now required.
58+
.. versionchanged:: 3.13
59+
Autoconf 2.71, aclocal 1.16.4 and SQLite 3.15.2 are now required.
5860

5961
See also :pep:`7` "Style Guide for C Code" and :pep:`11` "CPython platform
6062
support".
@@ -275,7 +277,7 @@ General Options
275277
* to/from free lists;
276278
* dictionary materialized/dematerialized;
277279
* type cache;
278-
* optimization attemps;
280+
* optimization attempts;
279281
* optimization traces created/executed;
280282
* uops executed.
281283

@@ -694,12 +696,12 @@ Debug options
694696

695697
:ref:`Statically allocated objects <static-types>` are not traced.
696698

699+
.. versionadded:: 3.8
700+
697701
.. versionchanged:: 3.13
698702
This build is now ABI compatible with release build and :ref:`debug build
699703
<debug-build>`.
700704

701-
.. versionadded:: 3.8
702-
703705
.. option:: --with-assertions
704706

705707
Build with C assertions enabled (default is no): ``assert(...);`` and
@@ -941,7 +943,9 @@ the version of the cross compiled host Python.
941943

942944
An environment variable that points to a file with configure overrides.
943945

944-
Example *config.site* file::
946+
Example *config.site* file:
947+
948+
.. code-block:: ini
945949
946950
# config.site-aarch64
947951
ac_cv_buggy_getaddrinfo=no
@@ -1019,7 +1023,9 @@ C extensions
10191023

10201024
Some C extensions are built as built-in modules, like the ``sys`` module.
10211025
They are built with the ``Py_BUILD_CORE_BUILTIN`` macro defined.
1022-
Built-in modules have no ``__file__`` attribute::
1026+
Built-in modules have no ``__file__`` attribute:
1027+
1028+
.. code-block:: pycon
10231029
10241030
>>> import sys
10251031
>>> sys
@@ -1031,7 +1037,9 @@ Built-in modules have no ``__file__`` attribute::
10311037
10321038
Other C extensions are built as dynamic libraries, like the ``_asyncio`` module.
10331039
They are built with the ``Py_BUILD_CORE_MODULE`` macro defined.
1034-
Example on Linux x86-64::
1040+
Example on Linux x86-64:
1041+
1042+
.. code-block:: pycon
10351043
10361044
>>> import _asyncio
10371045
>>> _asyncio

0 commit comments

Comments
 (0)