2
2
Configure Python
3
3
****************
4
4
5
+ .. highlight :: sh
6
+
5
7
Build Requirements
6
8
==================
7
9
@@ -30,31 +32,31 @@ Features and minimum versions required to build CPython:
30
32
* Autoconf 2.71 and aclocal 1.16.4 are required to regenerate the
31
33
:file: `configure ` script.
32
34
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.
35
37
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.
40
41
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 .
44
45
45
46
.. versionchanged :: 3.7
46
47
Thread support and OpenSSL 1.0.2 are now required.
47
48
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 .
51
52
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.
55
57
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.
58
60
59
61
See also :pep: `7 ` "Style Guide for C Code" and :pep: `11 ` "CPython platform
60
62
support".
@@ -275,7 +277,7 @@ General Options
275
277
* to/from free lists;
276
278
* dictionary materialized/dematerialized;
277
279
* type cache;
278
- * optimization attemps ;
280
+ * optimization attempts ;
279
281
* optimization traces created/executed;
280
282
* uops executed.
281
283
@@ -694,12 +696,12 @@ Debug options
694
696
695
697
:ref: `Statically allocated objects <static-types >` are not traced.
696
698
699
+ .. versionadded :: 3.8
700
+
697
701
.. versionchanged :: 3.13
698
702
This build is now ABI compatible with release build and :ref: `debug build
699
703
<debug-build>`.
700
704
701
- .. versionadded :: 3.8
702
-
703
705
.. option :: --with-assertions
704
706
705
707
Build with C assertions enabled (default is no): ``assert(...); `` and
@@ -941,7 +943,9 @@ the version of the cross compiled host Python.
941
943
942
944
An environment variable that points to a file with configure overrides.
943
945
944
- Example *config.site * file::
946
+ Example *config.site * file:
947
+
948
+ .. code-block :: ini
945
949
946
950
# config.site-aarch64
947
951
ac_cv_buggy_getaddrinfo =no
@@ -1019,7 +1023,9 @@ C extensions
1019
1023
1020
1024
Some C extensions are built as built-in modules, like the ``sys `` module.
1021
1025
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
1023
1029
1024
1030
>>> import sys
1025
1031
>>> sys
@@ -1031,7 +1037,9 @@ Built-in modules have no ``__file__`` attribute::
1031
1037
1032
1038
Other C extensions are built as dynamic libraries, like the ``_asyncio `` module.
1033
1039
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
1035
1043
1036
1044
>>> import _asyncio
1037
1045
>>> _asyncio
0 commit comments