Skip to content

Commit 19aa557

Browse files
authored
[3.12] Docs: update using/configure.rst (GH-116274) (#116276)
1 parent ee7ba53 commit 19aa557

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

Doc/using/configure.rst

Lines changed: 21 additions & 13 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

@@ -22,22 +24,22 @@ Features required to build CPython:
2224

2325
* On Windows, Microsoft Visual Studio 2017 or later is required.
2426

25-
.. versionchanged:: 3.11
26-
C11 compiler, IEEE 754 and NaN support are now required.
27-
On Windows, Visual Studio 2017 or later is required.
27+
.. versionchanged:: 3.5
28+
On Windows, Visual Studio 2015 or later is required.
2829

29-
.. versionchanged:: 3.10
30-
OpenSSL 1.1.1 is now required.
30+
.. versionchanged:: 3.6
31+
Selected C99 features are now required, like ``<stdint.h>`` and ``static
32+
inline`` functions.
3133

3234
.. versionchanged:: 3.7
3335
Thread support and OpenSSL 1.0.2 are now required.
3436

35-
.. versionchanged:: 3.6
36-
Selected C99 features are now required, like ``<stdint.h>`` and ``static
37-
inline`` functions.
37+
.. versionchanged:: 3.10
38+
OpenSSL 1.1.1 is now required.
3839

39-
.. versionchanged:: 3.5
40-
On Windows, Visual Studio 2015 or later is required.
40+
.. versionchanged:: 3.11
41+
C11 compiler, IEEE 754 and NaN support are now required.
42+
On Windows, Visual Studio 2017 or later is required.
4143

4244
See also :pep:`7` "Style Guide for C Code" and :pep:`11` "CPython platform
4345
support".
@@ -689,7 +691,9 @@ the version of the cross compiled host Python.
689691

690692
An environment variable that points to a file with configure overrides.
691693

692-
Example *config.site* file::
694+
Example *config.site* file:
695+
696+
.. code-block:: ini
693697
694698
# config.site-aarch64
695699
ac_cv_buggy_getaddrinfo=no
@@ -752,7 +756,9 @@ C extensions
752756

753757
Some C extensions are built as built-in modules, like the ``sys`` module.
754758
They are built with the ``Py_BUILD_CORE_BUILTIN`` macro defined.
755-
Built-in modules have no ``__file__`` attribute::
759+
Built-in modules have no ``__file__`` attribute:
760+
761+
.. code-block:: pycon
756762
757763
>>> import sys
758764
>>> sys
@@ -764,7 +770,9 @@ Built-in modules have no ``__file__`` attribute::
764770
765771
Other C extensions are built as dynamic libraries, like the ``_asyncio`` module.
766772
They are built with the ``Py_BUILD_CORE_MODULE`` macro defined.
767-
Example on Linux x86-64::
773+
Example on Linux x86-64:
774+
775+
.. code-block:: pycon
768776
769777
>>> import _asyncio
770778
>>> _asyncio

0 commit comments

Comments
 (0)