2
2
Configure Python
3
3
****************
4
4
5
+ .. highlight :: sh
6
+
5
7
Build Requirements
6
8
==================
7
9
@@ -22,22 +24,22 @@ Features required to build CPython:
22
24
23
25
* On Windows, Microsoft Visual Studio 2017 or later is required.
24
26
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.
28
29
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.
31
33
32
34
.. versionchanged :: 3.7
33
35
Thread support and OpenSSL 1.0.2 are now required.
34
36
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.
38
39
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.
41
43
42
44
See also :pep: `7 ` "Style Guide for C Code" and :pep: `11 ` "CPython platform
43
45
support".
@@ -689,7 +691,9 @@ the version of the cross compiled host Python.
689
691
690
692
An environment variable that points to a file with configure overrides.
691
693
692
- Example *config.site * file::
694
+ Example *config.site * file:
695
+
696
+ .. code-block :: ini
693
697
694
698
# config.site-aarch64
695
699
ac_cv_buggy_getaddrinfo =no
@@ -752,7 +756,9 @@ C extensions
752
756
753
757
Some C extensions are built as built-in modules, like the ``sys `` module.
754
758
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
756
762
757
763
>>> import sys
758
764
>>> sys
@@ -764,7 +770,9 @@ Built-in modules have no ``__file__`` attribute::
764
770
765
771
Other C extensions are built as dynamic libraries, like the ``_asyncio `` module.
766
772
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
768
776
769
777
>>> import _asyncio
770
778
>>> _asyncio
0 commit comments