-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathconfigure.html
More file actions
2417 lines (2222 loc) · 188 KB
/
Copy pathconfigure.html
File metadata and controls
2417 lines (2222 loc) · 188 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="fa" data-content_root="../">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:title" content="3. Configure Python" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://docs.python.org/3/using/configure.html" />
<meta property="og:site_name" content="Python documentation" />
<meta property="og:description" content="Build Requirements: To build CPython, you will need: A C11 compiler. Optional C11 features are not required., On Windows, Microsoft Visual Studio 2017 or later is required., Support for IEEE 754 fl..." />
<meta property="og:image" content="_static/og-image.png" />
<meta property="og:image:alt" content="Python documentation" />
<meta name="description" content="Build Requirements: To build CPython, you will need: A C11 compiler. Optional C11 features are not required., On Windows, Microsoft Visual Studio 2017 or later is required., Support for IEEE 754 fl..." />
<meta name="theme-color" content="#3776ab">
<meta property="og:image:width" content="200">
<meta property="og:image:height" content="200">
<title>3. Configure Python — مستندات Python3.14.6</title><meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b86133f3" />
<link rel="stylesheet" type="text/css" href="../_static/classic.css?v=234b1a7c" />
<link rel="stylesheet" type="text/css" href="../_static/pydoctheme.css?v=4365c8fe" />
<link id="pygments_dark_css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css" href="../_static/pygments_dark.css?v=0fc419ee" />
<script src="../_static/documentation_options.js?v=e254dbbb"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/translations.js?v=5df48d09"></script>
<script src="../_static/sidebar.js"></script>
<link rel="search" type="application/opensearchdescription+xml"
title="جستجو در مستندات Python3.14.6"
href="../_static/opensearch.xml"/>
<link rel="author" title="درباره این مستندات" href="../about.html" />
<link rel="index" title="فهرست" href="../genindex.html" />
<link rel="search" title="جستجو" href="../search.html" />
<link rel="copyright" title="حق چاپ" href="../copyright.html" />
<link rel="next" title="4. Using Python on Windows" href="windows.html" />
<link rel="prev" title="2. Using Python on Unix platforms" href="unix.html" />
<link rel="canonical" href="https://docs.python.org/3/using/configure.html">
<style>
@media only screen {
table.full-width-table {
width: 100%;
}
}
</style>
<link rel="stylesheet" href="../_static/pydoctheme_dark.css" media="(prefers-color-scheme: dark)" id="pydoctheme_dark_css">
<link rel="shortcut icon" type="image/png" href="../_static/py.svg">
<script type="text/javascript" src="../_static/copybutton.js"></script>
<script type="text/javascript" src="../_static/menu.js"></script>
<script type="text/javascript" src="../_static/search-focus.js"></script>
<script type="text/javascript" src="../_static/themetoggle.js"></script>
<script type="text/javascript" src="../_static/rtd_switcher.js"></script>
<meta name="readthedocs-addons-api-version" content="1">
</head>
<body>
<div class="mobile-nav">
<input type="checkbox" id="menuToggler" class="toggler__input" aria-controls="navigation"
aria-pressed="false" aria-expanded="false" role="button" aria-label="Menu">
<nav class="nav-content" role="navigation">
<label for="menuToggler" class="toggler__label">
<span></span>
</label>
<span class="nav-items-wrapper">
<a href="https://www.python.org/" class="nav-logo">
<img src="../_static/py.svg" alt="Python logo">
</a>
<span class="version_switcher_placeholder"></span>
<form role="search" class="search" action="../search.html" method="get">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" class="search-icon">
<path fill-rule="nonzero" fill="currentColor" d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 001.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 00-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 005.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
</svg>
<input placeholder="جستجو سریع" aria-label="جستجو سریع" type="search" name="q">
<input type="submit" value="برو">
</form>
</span>
</nav>
<div class="menu-wrapper">
<nav class="menu" role="navigation" aria-label="main navigation">
<div class="language_switcher_placeholder"></div>
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label>
<div>
<h3><a href="../contents.html">فهرست عناوین</a></h3>
<ul>
<li><a class="reference internal" href="#">3. Configure Python</a><ul>
<li><a class="reference internal" href="#build-requirements">3.1. Build Requirements</a><ul>
<li><a class="reference internal" href="#requirements-for-optional-modules">3.1.1. Requirements for optional modules</a></li>
</ul>
</li>
<li><a class="reference internal" href="#generated-files">3.2. Generated files</a><ul>
<li><a class="reference internal" href="#configure-script">3.2.1. configure script</a></li>
</ul>
</li>
<li><a class="reference internal" href="#configure-options">3.3. Configure Options</a><ul>
<li><a class="reference internal" href="#general-options">3.3.1. General Options</a></li>
<li><a class="reference internal" href="#c-compiler-options">3.3.2. C compiler options</a></li>
<li><a class="reference internal" href="#linker-options">3.3.3. Linker options</a></li>
<li><a class="reference internal" href="#options-for-third-party-dependencies">3.3.4. Options for third-party dependencies</a></li>
<li><a class="reference internal" href="#webassembly-options">3.3.5. WebAssembly Options</a></li>
<li><a class="reference internal" href="#install-options">3.3.6. Install Options</a></li>
<li><a class="reference internal" href="#performance-options">3.3.7. Performance options</a></li>
<li><a class="reference internal" href="#python-debug-build">3.3.8. Python Debug Build</a></li>
<li><a class="reference internal" href="#debug-options">3.3.9. Debug options</a></li>
<li><a class="reference internal" href="#id13">3.3.10. Linker options</a></li>
<li><a class="reference internal" href="#libraries-options">3.3.11. Libraries options</a></li>
<li><a class="reference internal" href="#security-options">3.3.12. Security Options</a></li>
<li><a class="reference internal" href="#macos-options">3.3.13. macOS Options</a></li>
<li><a class="reference internal" href="#ios-options">3.3.14. iOS Options</a></li>
<li><a class="reference internal" href="#cross-compiling-options">3.3.15. Cross Compiling Options</a></li>
</ul>
</li>
<li><a class="reference internal" href="#python-build-system">3.4. Python Build System</a><ul>
<li><a class="reference internal" href="#main-files-of-the-build-system">3.4.1. Main files of the build system</a></li>
<li><a class="reference internal" href="#main-build-steps">3.4.2. Main build steps</a></li>
<li><a class="reference internal" href="#main-makefile-targets">3.4.3. Main Makefile targets</a><ul>
<li><a class="reference internal" href="#make">3.4.3.1. make</a></li>
<li><a class="reference internal" href="#make-platform">3.4.3.2. make platform</a></li>
<li><a class="reference internal" href="#make-profile-opt">3.4.3.3. make profile-opt</a></li>
<li><a class="reference internal" href="#make-clean">3.4.3.4. make clean</a></li>
<li><a class="reference internal" href="#make-distclean">3.4.3.5. make distclean</a></li>
<li><a class="reference internal" href="#make-install">3.4.3.6. make install</a></li>
<li><a class="reference internal" href="#make-test">3.4.3.7. make test</a></li>
<li><a class="reference internal" href="#make-ci">3.4.3.8. make ci</a></li>
<li><a class="reference internal" href="#make-buildbottest">3.4.3.9. make buildbottest</a></li>
<li><a class="reference internal" href="#make-regen-all">3.4.3.10. make regen-all</a></li>
</ul>
</li>
<li><a class="reference internal" href="#c-extensions">3.4.4. C extensions</a></li>
</ul>
</li>
<li><a class="reference internal" href="#compiler-and-linker-flags">3.5. Compiler and linker flags</a><ul>
<li><a class="reference internal" href="#preprocessor-flags">3.5.1. Preprocessor flags</a></li>
<li><a class="reference internal" href="#compiler-flags">3.5.2. Compiler flags</a></li>
<li><a class="reference internal" href="#linker-flags">3.5.3. Linker flags</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div>
<h4>موضوع قبلی</h4>
<p class="topless"><a href="unix.html"
title="فصل قبلی"><span class="section-number">2. </span>Using Python on Unix platforms</a></p>
</div>
<div>
<h4>موضوع بعدی</h4>
<p class="topless"><a href="windows.html"
title="فصل بعدی"><span class="section-number">4. </span>Using Python on Windows</a></p>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const title = document.querySelector('meta[property="og:title"]').content;
const elements = document.querySelectorAll('.improvepage');
const pageurl = window.location.href.split('?')[0];
elements.forEach(element => {
const url = new URL(element.href.split('?')[0].replace("-nojs", ""));
url.searchParams.set('pagetitle', title);
url.searchParams.set('pageurl', pageurl);
url.searchParams.set('pagesource', "using/configure.rst");
element.href = url.toString();
});
});
</script>
<div role="note" aria-label="source link">
<h3>این صفحه</h3>
<ul class="this-page-menu">
<li><a href="../bugs.html">گزارش یک اشکال</a></li>
<li><a class="improvepage" href="../improve-page-nojs.html">بهبود این صفحه</a></li>
<li>
<a href="https://github.com/python/cpython/blob/main/Doc/using/configure.rst?plain=1"
rel="nofollow">نمایش منبع
</a>
</li>
<li>
<a href="https://github.com/python/python-docs-fa/blob/3.14/using/configure.po?plain=1"
rel="nofollow">نمایش منبع ترجمه</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
<div class="related" role="navigation" aria-label="Related">
<h3>ناوبری</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="../genindex.html" title="فهرست کلی"
accesskey="I">فهرست</a></li>
<li class="right" >
<a href="../py-modindex.html" title="نمایه ی ماژول های پایتون"
>ماژول ها</a> |</li>
<li class="right" >
<a href="windows.html" title="4. Using Python on Windows"
accesskey="N">بعدی</a> |</li>
<li class="right" >
<a href="unix.html" title="2. Using Python on Unix platforms"
accesskey="P">قبلی</a> |</li>
<li><img src="../_static/py.svg" alt="Python logo" style="vertical-align: middle; margin-top: -1px"></li>
<li><a href="https://www.python.org/">Python</a> »</li>
<li class="switchers">
<div class="language_switcher_placeholder"></div>
<div class="version_switcher_placeholder"></div>
</li>
<li>
</li>
<li id="cpython-language-and-version">
<a href="../index.html">3.14.6 Documentation</a> »
</li>
<li class="nav-item nav-item-1"><a href="index.html" accesskey="U">Python Setup and Usage</a> »</li>
<li class="nav-item nav-item-this"><a href=""><span class="section-number">3. </span>Configure Python</a></li>
<li class="right">
<div class="inline-search" role="search">
<form class="inline-search" action="../search.html" method="get">
<input placeholder="جستجو سریع" aria-label="جستجو سریع" type="search" name="q" id="search-box">
<input type="submit" value="برو">
</form>
</div>
|
</li>
<li class="right">
<label class="theme-selector-label">
Theme
<select class="theme-selector" oninput="activateTheme(this.value)">
<option value="auto" selected>Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label> |</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<section id="configure-python">
<h1><span class="section-number">3. </span>Configure Python<a class="headerlink" href="#configure-python" title="Link to this heading">¶</a></h1>
<section id="build-requirements">
<span id="id1"></span><h2><span class="section-number">3.1. </span>Build Requirements<a class="headerlink" href="#build-requirements" title="Link to this heading">¶</a></h2>
<p>To build CPython, you will need:</p>
<ul class="simple">
<li><p>A <a class="reference external" href="https://en.cppreference.com/w/c/11">C11</a> compiler. <a class="reference external" href="https://en.wikipedia.org/wiki/C11_(C_standard_revision)#Optional_features">Optional C11
features</a>
are not required.</p></li>
<li><p>On Windows, Microsoft Visual Studio 2017 or later is required.</p></li>
<li><p>Support for <a class="reference external" href="https://en.wikipedia.org/wiki/IEEE_754">IEEE 754</a>
floating-point numbers and <a class="reference external" href="https://en.wikipedia.org/wiki/NaN#Floating_point">floating-point Not-a-Number (NaN)</a>.</p></li>
<li><p>Support for threads.</p></li>
</ul>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.5: </span>On Windows, Visual Studio 2015 or later is now required.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.6: </span>Selected C99 features, like <code class="docutils literal notranslate"><span class="pre"><stdint.h></span></code> and <code class="docutils literal notranslate"><span class="pre">static</span> <span class="pre">inline</span></code> functions,
are now required.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.7: </span>Thread support is now required.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.11: </span>C11 compiler, IEEE 754 and NaN support are now required.
On Windows, Visual Studio 2017 or later is required.</p>
</div>
<p>See also <span class="target" id="index-0"></span><a class="pep reference external" href="https://peps.python.org/pep-0007/"><strong>PEP 7</strong></a> "Style Guide for C Code" and <span class="target" id="index-1"></span><a class="pep reference external" href="https://peps.python.org/pep-0011/"><strong>PEP 11</strong></a> "CPython platform
support".</p>
<section id="requirements-for-optional-modules">
<span id="optional-module-requirements"></span><h3><span class="section-number">3.1.1. </span>Requirements for optional modules<a class="headerlink" href="#requirements-for-optional-modules" title="Link to this heading">¶</a></h3>
<p>Some <a class="reference internal" href="../glossary.html#term-optional-module"><span class="xref std std-term">optional modules</span></a> of the standard library
require third-party libraries installed for development
(for example, header files must be available).</p>
<p>Missing requirements are reported in the <code class="docutils literal notranslate"><span class="pre">configure</span></code> output.
Modules that are missing due to missing dependencies are listed near the end
of the <code class="docutils literal notranslate"><span class="pre">make</span></code> output,
sometimes using an internal name, for example, <code class="docutils literal notranslate"><span class="pre">_ctypes</span></code> for <a class="reference internal" href="../library/ctypes.html#module-ctypes" title="ctypes: A foreign function library for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">ctypes</span></code></a>
module.</p>
<p>If you distribute a CPython interpreter without optional modules,
it's best practice to advise users, who generally expect that
standard library modules are available.</p>
<p>Dependencies to build optional modules are:</p>
<table class="docutils align-left">
<thead>
<tr class="row-odd"><th class="head"><p>Dependency</p></th>
<th class="head"><p>Minimum version</p></th>
<th class="head"><p>Python module</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p><a class="reference external" href="https://sourceware.org/bzip2/">libbz2</a></p></td>
<td></td>
<td><p><a class="reference internal" href="../library/bz2.html#module-bz2" title="bz2: Interfaces for bzip2 compression and decompression."><code class="xref py py-mod docutils literal notranslate"><span class="pre">bz2</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://sourceware.org/libffi/">libffi</a></p></td>
<td><p>3.3.0 recommended</p></td>
<td><p><a class="reference internal" href="../library/ctypes.html#module-ctypes" title="ctypes: A foreign function library for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">ctypes</span></code></a></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference external" href="https://tukaani.org/xz/">liblzma</a></p></td>
<td></td>
<td><p><a class="reference internal" href="../library/lzma.html#module-lzma" title="lzma: A Python wrapper for the liblzma compression library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">lzma</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://www.bytereef.org/mpdecimal/doc/libmpdec/">libmpdec</a></p></td>
<td><p>2.5.0</p></td>
<td><p><a class="reference internal" href="../library/decimal.html#module-decimal" title="decimal: Implementation of the General Decimal Arithmetic Specification."><code class="xref py py-mod docutils literal notranslate"><span class="pre">decimal</span></code></a> <a class="footnote-reference brackets" href="#id7" id="id2" role="doc-noteref"><span class="fn-bracket">[</span>1<span class="fn-bracket">]</span></a></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference external" href="https://tiswww.case.edu/php/chet/readline/rltop.html">libreadline</a> or
<a class="reference external" href="https://www.thrysoee.dk/editline/">libedit</a> <a class="footnote-reference brackets" href="#id8" id="id3" role="doc-noteref"><span class="fn-bracket">[</span>2<span class="fn-bracket">]</span></a></p></td>
<td></td>
<td><p><a class="reference internal" href="../library/readline.html#module-readline" title="readline: GNU readline support for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://linux.die.net/man/3/libuuid">libuuid</a></p></td>
<td></td>
<td><p><code class="docutils literal notranslate"><span class="pre">_uuid</span></code> <a class="footnote-reference brackets" href="#id9" id="id4" role="doc-noteref"><span class="fn-bracket">[</span>3<span class="fn-bracket">]</span></a></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference external" href="https://gnu.org/software/ncurses/ncurses.html">ncurses</a> <a class="footnote-reference brackets" href="#id10" id="id5" role="doc-noteref"><span class="fn-bracket">[</span>4<span class="fn-bracket">]</span></a></p></td>
<td></td>
<td><p><a class="reference internal" href="../library/curses.html#module-curses" title="curses: An interface to the curses library, providing portable terminal handling."><code class="xref py py-mod docutils literal notranslate"><span class="pre">curses</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://openssl-library.org/">OpenSSL</a></p></td>
<td><div class="line-block">
<div class="line">3.0.18 recommended</div>
<div class="line">(1.1.1 minimum)</div>
</div>
</td>
<td><p><a class="reference internal" href="../library/ssl.html#module-ssl" title="ssl: TLS/SSL wrapper for socket objects"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a>, <a class="reference internal" href="../library/hashlib.html#module-hashlib" title="hashlib: Secure hash and message digest algorithms."><code class="xref py py-mod docutils literal notranslate"><span class="pre">hashlib</span></code></a> <a class="footnote-reference brackets" href="#id11" id="id6" role="doc-noteref"><span class="fn-bracket">[</span>5<span class="fn-bracket">]</span></a></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference external" href="https://sqlite.org/">SQLite</a></p></td>
<td><p>3.15.2</p></td>
<td><p><a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://www.tcl-lang.org/">Tcl/Tk</a></p></td>
<td><p>8.5.12</p></td>
<td><p><a class="reference internal" href="../library/tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tkinter</span></code></a>, <a class="reference internal" href="../library/idle.html#idle"><span class="std std-ref">IDLE</span></a>, <a class="reference internal" href="../library/turtle.html#module-turtle" title="turtle: An educational framework for simple graphics applications"><code class="xref py py-mod docutils literal notranslate"><span class="pre">turtle</span></code></a></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference external" href="https://www.zlib.net">zlib</a></p></td>
<td><p>1.2.2.1</p></td>
<td><p><a class="reference internal" href="../library/zlib.html#module-zlib" title="zlib: Low-level interface to compression and decompression routines compatible with gzip."><code class="xref py py-mod docutils literal notranslate"><span class="pre">zlib</span></code></a>, <a class="reference internal" href="../library/gzip.html#module-gzip" title="gzip: Interfaces for gzip compression and decompression using file objects."><code class="xref py py-mod docutils literal notranslate"><span class="pre">gzip</span></code></a>, <a class="reference internal" href="../library/ensurepip.html#module-ensurepip" title="ensurepip: Bootstrapping the "pip" installer into an existing Python installation or virtual environment."><code class="xref py py-mod docutils literal notranslate"><span class="pre">ensurepip</span></code></a></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference external" href="https://facebook.github.io/zstd/">zstd</a></p></td>
<td><p>1.4.5</p></td>
<td><p><a class="reference internal" href="../library/compression.zstd.html#module-compression.zstd" title="compression.zstd: Low-level interface to compression and decompression routines in the zstd library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">compression.zstd</span></code></a></p></td>
</tr>
</tbody>
</table>
<aside class="footnote-list brackets">
<aside class="footnote brackets" id="id7" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id2">1</a><span class="fn-bracket">]</span></span>
<p>If <em>libmpdec</em> is not available, the <a class="reference internal" href="../library/decimal.html#module-decimal" title="decimal: Implementation of the General Decimal Arithmetic Specification."><code class="xref py py-mod docutils literal notranslate"><span class="pre">decimal</span></code></a> module will use
a pure-Python implementation.
See <a class="reference internal" href="#cmdoption-with-system-libmpdec"><code class="xref std std-option docutils literal notranslate"><span class="pre">--with-system-libmpdec</span></code></a> for details.</p>
</aside>
<aside class="footnote brackets" id="id8" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id3">2</a><span class="fn-bracket">]</span></span>
<p>See <a class="reference internal" href="#cmdoption-with-readline"><code class="xref std std-option docutils literal notranslate"><span class="pre">--with-readline</span></code></a> for choosing the backend for the
<a class="reference internal" href="../library/readline.html#module-readline" title="readline: GNU readline support for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code></a> module.</p>
</aside>
<aside class="footnote brackets" id="id9" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id4">3</a><span class="fn-bracket">]</span></span>
<p>The <a class="reference internal" href="../library/uuid.html#module-uuid" title="uuid: UUID objects (universally unique identifiers) according to RFC 9562"><code class="xref py py-mod docutils literal notranslate"><span class="pre">uuid</span></code></a> module uses <code class="docutils literal notranslate"><span class="pre">_uuid</span></code> to generate "safe" UUIDs.
See the module documentation for details.</p>
</aside>
<aside class="footnote brackets" id="id10" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id5">4</a><span class="fn-bracket">]</span></span>
<p>The <a class="reference internal" href="../library/curses.html#module-curses" title="curses: An interface to the curses library, providing portable terminal handling."><code class="xref py py-mod docutils literal notranslate"><span class="pre">curses</span></code></a> module requires the <code class="docutils literal notranslate"><span class="pre">libncurses</span></code> or <code class="docutils literal notranslate"><span class="pre">libncursesw</span></code>
library.
The <a class="reference internal" href="../library/curses.panel.html#module-curses.panel" title="curses.panel: A panel stack extension that adds depth to curses windows."><code class="xref py py-mod docutils literal notranslate"><span class="pre">curses.panel</span></code></a> module additionally requires the <code class="docutils literal notranslate"><span class="pre">libpanel</span></code> or
<code class="docutils literal notranslate"><span class="pre">libpanelw</span></code> library.</p>
</aside>
<aside class="footnote brackets" id="id11" role="doc-footnote">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#id6">5</a><span class="fn-bracket">]</span></span>
<p>If OpenSSL is not available, the <a class="reference internal" href="../library/hashlib.html#module-hashlib" title="hashlib: Secure hash and message digest algorithms."><code class="xref py py-mod docutils literal notranslate"><span class="pre">hashlib</span></code></a> module will use
bundled implementations of several hash functions.
See <a class="reference internal" href="#cmdoption-with-builtin-hashlib-hashes"><code class="xref std std-option docutils literal notranslate"><span class="pre">--with-builtin-hashlib-hashes</span></code></a> for <em>forcing</em> usage of OpenSSL.</p>
</aside>
</aside>
<p>Note that the table does not include all optional modules; in particular,
platform-specific modules like <a class="reference internal" href="../library/winreg.html#module-winreg" title="winreg: Routines and objects for manipulating the Windows registry."><code class="xref py py-mod docutils literal notranslate"><span class="pre">winreg</span></code></a> are not listed here.</p>
<div class="admonition seealso">
<p class="admonition-title">همچنین ملاحظه نمائید</p>
<ul class="simple">
<li><p>The <a class="reference external" href="https://devguide.python.org/getting-started/setup-building/#install-dependencies">devguide</a>
includes a full list of dependencies required to build all modules and
instructions on how to install them on common platforms.</p></li>
<li><p><a class="reference internal" href="#cmdoption-with-system-expat"><code class="xref std std-option docutils literal notranslate"><span class="pre">--with-system-expat</span></code></a> allows building with an external
<a class="reference external" href="https://libexpat.github.io/">libexpat</a> library.</p></li>
<li><p><a class="reference internal" href="#configure-options-for-dependencies"><span class="std std-ref">Options for third-party dependencies</span></a></p></li>
</ul>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.1: </span>Tcl/Tk version 8.3.1 is now required for <a class="reference internal" href="../library/tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tkinter</span></code></a>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.5: </span>Tcl/Tk version 8.4 is now required for <a class="reference internal" href="../library/tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tkinter</span></code></a>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.7: </span>OpenSSL 1.0.2 is now required for <a class="reference internal" href="../library/hashlib.html#module-hashlib" title="hashlib: Secure hash and message digest algorithms."><code class="xref py py-mod docutils literal notranslate"><span class="pre">hashlib</span></code></a> and <a class="reference internal" href="../library/ssl.html#module-ssl" title="ssl: TLS/SSL wrapper for socket objects"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.10: </span>OpenSSL 1.1.1 is now required for <a class="reference internal" href="../library/hashlib.html#module-hashlib" title="hashlib: Secure hash and message digest algorithms."><code class="xref py py-mod docutils literal notranslate"><span class="pre">hashlib</span></code></a> and <a class="reference internal" href="../library/ssl.html#module-ssl" title="ssl: TLS/SSL wrapper for socket objects"><code class="xref py py-mod docutils literal notranslate"><span class="pre">ssl</span></code></a>.
SQLite 3.7.15 is now required for <a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.11: </span>Tcl/Tk version 8.5.12 is now required for <a class="reference internal" href="../library/tkinter.html#module-tkinter" title="tkinter: Interface to Tcl/Tk for graphical user interfaces"><code class="xref py py-mod docutils literal notranslate"><span class="pre">tkinter</span></code></a>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.13: </span>SQLite 3.15.2 is now required for <a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a>.</p>
</div>
</section>
</section>
<section id="generated-files">
<h2><span class="section-number">3.2. </span>Generated files<a class="headerlink" href="#generated-files" title="Link to this heading">¶</a></h2>
<p>To reduce build dependencies, Python source code contains multiple generated
files. Commands to regenerate all generated files:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>make<span class="w"> </span>regen-all
make<span class="w"> </span>regen-stdlib-module-names
make<span class="w"> </span>regen-limited-abi
make<span class="w"> </span>regen-configure
</pre></div>
</div>
<p>The <code class="docutils literal notranslate"><span class="pre">Makefile.pre.in</span></code> file documents generated files, their inputs, and tools used
to regenerate them. Search for <code class="docutils literal notranslate"><span class="pre">regen-*</span></code> make targets.</p>
<section id="configure-script">
<h3><span class="section-number">3.2.1. </span>configure script<a class="headerlink" href="#configure-script" title="Link to this heading">¶</a></h3>
<p>The <code class="docutils literal notranslate"><span class="pre">make</span> <span class="pre">regen-configure</span></code> command regenerates the <code class="docutils literal notranslate"><span class="pre">aclocal.m4</span></code> file and
the <code class="docutils literal notranslate"><span class="pre">configure</span></code> script using the <code class="docutils literal notranslate"><span class="pre">Tools/build/regen-configure.sh</span></code> shell
script which uses an Ubuntu container to get the same tools versions and have a
reproducible output.</p>
<p>The container is optional, the following command can be run locally:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>autoreconf<span class="w"> </span>-ivf<span class="w"> </span>-Werror
</pre></div>
</div>
<p>The generated files can change depending on the exact versions of the
tools used.
The container that CPython uses has
<a class="reference external" href="https://gnu.org/software/autoconf">Autoconf</a> 2.72,
<code class="docutils literal notranslate"><span class="pre">aclocal</span></code> from <a class="reference external" href="https://www.gnu.org/software/automake">Automake</a> 1.16.5,
and <a class="reference external" href="https://www.freedesktop.org/wiki/Software/pkg-config/">pkg-config</a> 1.8.1.</p>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.13: </span>Autoconf 2.71 and aclocal 1.16.5 and are now used to regenerate
<code class="file docutils literal notranslate"><span class="pre">configure</span></code>.</p>
</div>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.14: </span>Autoconf 2.72 is now used to regenerate <code class="file docutils literal notranslate"><span class="pre">configure</span></code>.</p>
</div>
</section>
</section>
<section id="configure-options">
<span id="id12"></span><h2><span class="section-number">3.3. </span>Configure Options<a class="headerlink" href="#configure-options" title="Link to this heading">¶</a></h2>
<p>List all <code class="file docutils literal notranslate"><span class="pre">configure</span></code> script options using:</p>
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>./configure<span class="w"> </span>--help
</pre></div>
</div>
<p>See also the <code class="file docutils literal notranslate"><span class="pre">Misc/SpecialBuilds.txt</span></code> in the Python source distribution.</p>
<section id="general-options">
<h3><span class="section-number">3.3.1. </span>General Options<a class="headerlink" href="#general-options" title="Link to this heading">¶</a></h3>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-loadable-sqlite-extensions">
<span class="sig-name descname"><span class="pre">--enable-loadable-sqlite-extensions</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-enable-loadable-sqlite-extensions" title="Link to this definition">¶</a></dt>
<dd><p>Support loadable extensions in the <code class="xref py py-mod docutils literal notranslate"><span class="pre">_sqlite</span></code> extension module (default
is no) of the <a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a> module.</p>
<p>See the <a class="reference internal" href="../library/sqlite3.html#sqlite3.Connection.enable_load_extension" title="sqlite3.Connection.enable_load_extension"><code class="xref py py-meth docutils literal notranslate"><span class="pre">sqlite3.Connection.enable_load_extension()</span></code></a> method of the
<a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a> module.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.6.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-disable-ipv6">
<span class="sig-name descname"><span class="pre">--disable-ipv6</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-disable-ipv6" title="Link to this definition">¶</a></dt>
<dd><p>Disable IPv6 support (enabled by default if supported), see the
<a class="reference internal" href="../library/socket.html#module-socket" title="socket: Low-level networking interface."><code class="xref py py-mod docutils literal notranslate"><span class="pre">socket</span></code></a> module.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-big-digits">
<span class="sig-name descname"><span class="pre">--enable-big-digits</span></span><span class="sig-prename descclassname"><span class="pre">=[15|30]</span></span><a class="headerlink" href="#cmdoption-enable-big-digits" title="Link to this definition">¶</a></dt>
<dd><p>Define the size in bits of Python <a class="reference internal" href="../library/functions.html#int" title="int"><code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></a> digits: 15 or 30 bits.</p>
<p>By default, the digit size is 30.</p>
<p>Define the <code class="docutils literal notranslate"><span class="pre">PYLONG_BITS_IN_DIGIT</span></code> to <code class="docutils literal notranslate"><span class="pre">15</span></code> or <code class="docutils literal notranslate"><span class="pre">30</span></code>.</p>
<p>See <a class="reference internal" href="../library/sys.html#sys.int_info" title="sys.int_info"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.int_info.bits_per_digit</span></code></a>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-suffix">
<span class="sig-name descname"><span class="pre">--with-suffix</span></span><span class="sig-prename descclassname"><span class="pre">=SUFFIX</span></span><a class="headerlink" href="#cmdoption-with-suffix" title="Link to this definition">¶</a></dt>
<dd><p>Set the Python executable suffix to <em>SUFFIX</em>.</p>
<p>The default suffix is <code class="docutils literal notranslate"><span class="pre">.exe</span></code> on Windows and macOS (<code class="docutils literal notranslate"><span class="pre">python.exe</span></code>
executable), <code class="docutils literal notranslate"><span class="pre">.js</span></code> on Emscripten node, <code class="docutils literal notranslate"><span class="pre">.html</span></code> on Emscripten browser,
<code class="docutils literal notranslate"><span class="pre">.wasm</span></code> on WASI, and an empty string on other platforms (<code class="docutils literal notranslate"><span class="pre">python</span></code>
executable).</p>
<div class="versionchanged">
<p><span class="versionmodified changed">تغییر داده شده در نسخه 3.11: </span>The default suffix on WASM platform is one of <code class="docutils literal notranslate"><span class="pre">.js</span></code>, <code class="docutils literal notranslate"><span class="pre">.html</span></code>
or <code class="docutils literal notranslate"><span class="pre">.wasm</span></code>.</p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-tzpath">
<span class="sig-name descname"><span class="pre">--with-tzpath</span></span><span class="sig-prename descclassname"><span class="pre">=<list</span> <span class="pre">of</span> <span class="pre">absolute</span> <span class="pre">paths</span> <span class="pre">separated</span> <span class="pre">by</span> <span class="pre">pathsep></span></span><a class="headerlink" href="#cmdoption-with-tzpath" title="Link to this definition">¶</a></dt>
<dd><p>Select the default time zone search path for <a class="reference internal" href="../library/zoneinfo.html#zoneinfo.TZPATH" title="zoneinfo.TZPATH"><code class="xref py py-const docutils literal notranslate"><span class="pre">zoneinfo.TZPATH</span></code></a>.
See the <a class="reference internal" href="../library/zoneinfo.html#zoneinfo-data-compile-time-config"><span class="std std-ref">Compile-time configuration</span></a> of the <a class="reference internal" href="../library/zoneinfo.html#module-zoneinfo" title="zoneinfo: IANA time zone support"><code class="xref py py-mod docutils literal notranslate"><span class="pre">zoneinfo</span></code></a> module.</p>
<p>Default: <code class="docutils literal notranslate"><span class="pre">/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo</span></code>.</p>
<p>See <a class="reference internal" href="../library/os.html#os.pathsep" title="os.pathsep"><code class="xref py py-data docutils literal notranslate"><span class="pre">os.pathsep</span></code></a> path separator.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.9.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-without-decimal-contextvar">
<span class="sig-name descname"><span class="pre">--without-decimal-contextvar</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-without-decimal-contextvar" title="Link to this definition">¶</a></dt>
<dd><p>Build the <code class="docutils literal notranslate"><span class="pre">_decimal</span></code> extension module using a thread-local context rather
than a coroutine-local context (default), see the <a class="reference internal" href="../library/decimal.html#module-decimal" title="decimal: Implementation of the General Decimal Arithmetic Specification."><code class="xref py py-mod docutils literal notranslate"><span class="pre">decimal</span></code></a> module.</p>
<p>See <a class="reference internal" href="../library/decimal.html#decimal.HAVE_CONTEXTVAR" title="decimal.HAVE_CONTEXTVAR"><code class="xref py py-const docutils literal notranslate"><span class="pre">decimal.HAVE_CONTEXTVAR</span></code></a> and the <a class="reference internal" href="../library/contextvars.html#module-contextvars" title="contextvars: Context Variables"><code class="xref py py-mod docutils literal notranslate"><span class="pre">contextvars</span></code></a> module.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.9.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-dbmliborder">
<span class="sig-name descname"><span class="pre">--with-dbmliborder</span></span><span class="sig-prename descclassname"><span class="pre">=<list</span> <span class="pre">of</span> <span class="pre">backend</span> <span class="pre">names></span></span><a class="headerlink" href="#cmdoption-with-dbmliborder" title="Link to this definition">¶</a></dt>
<dd><p>Override order to check db backends for the <a class="reference internal" href="../library/dbm.html#module-dbm" title="dbm: Interfaces to various Unix "database" formats."><code class="xref py py-mod docutils literal notranslate"><span class="pre">dbm</span></code></a> module</p>
<p>A valid value is a colon (<code class="docutils literal notranslate"><span class="pre">:</span></code>) separated string with the backend names:</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">ndbm</span></code>;</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">gdbm</span></code>;</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">bdb</span></code>.</p></li>
</ul>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-without-c-locale-coercion">
<span class="sig-name descname"><span class="pre">--without-c-locale-coercion</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-without-c-locale-coercion" title="Link to this definition">¶</a></dt>
<dd><p>Disable C locale coercion to a UTF-8 based locale (enabled by default).</p>
<p>Don't define the <code class="docutils literal notranslate"><span class="pre">PY_COERCE_C_LOCALE</span></code> macro.</p>
<p>See <span class="target" id="index-2"></span><a class="reference internal" href="cmdline.html#envvar-PYTHONCOERCECLOCALE"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHONCOERCECLOCALE</span></code></a> and the <span class="target" id="index-3"></span><a class="pep reference external" href="https://peps.python.org/pep-0538/"><strong>PEP 538</strong></a>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-platlibdir">
<span class="sig-name descname"><span class="pre">--with-platlibdir</span></span><span class="sig-prename descclassname"><span class="pre">=DIRNAME</span></span><a class="headerlink" href="#cmdoption-with-platlibdir" title="Link to this definition">¶</a></dt>
<dd><p>Python library directory name (default is <code class="docutils literal notranslate"><span class="pre">lib</span></code>).</p>
<p>Fedora and SuSE use <code class="docutils literal notranslate"><span class="pre">lib64</span></code> on 64-bit platforms.</p>
<p>See <a class="reference internal" href="../library/sys.html#sys.platlibdir" title="sys.platlibdir"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.platlibdir</span></code></a>.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.9.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-wheel-pkg-dir">
<span class="sig-name descname"><span class="pre">--with-wheel-pkg-dir</span></span><span class="sig-prename descclassname"><span class="pre">=PATH</span></span><a class="headerlink" href="#cmdoption-with-wheel-pkg-dir" title="Link to this definition">¶</a></dt>
<dd><p>Directory of wheel packages used by the <a class="reference internal" href="../library/ensurepip.html#module-ensurepip" title="ensurepip: Bootstrapping the "pip" installer into an existing Python installation or virtual environment."><code class="xref py py-mod docutils literal notranslate"><span class="pre">ensurepip</span></code></a> module
(none by default).</p>
<p>Some Linux distribution packaging policies recommend against bundling
dependencies. For example, Fedora installs wheel packages in the
<code class="docutils literal notranslate"><span class="pre">/usr/share/python-wheels/</span></code> directory and don't install the
<code class="xref py py-mod docutils literal notranslate"><span class="pre">ensurepip._bundled</span></code> package.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.10.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-with-pkg-config">
<span class="sig-name descname"><span class="pre">--with-pkg-config</span></span><span class="sig-prename descclassname"><span class="pre">=[check|yes|no]</span></span><a class="headerlink" href="#cmdoption-with-pkg-config" title="Link to this definition">¶</a></dt>
<dd><p>Whether configure should use <strong class="program">pkg-config</strong> to detect build
dependencies.</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">check</span></code> (default): <strong class="program">pkg-config</strong> is optional</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">yes</span></code>: <strong class="program">pkg-config</strong> is mandatory</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">no</span></code>: configure does not use <strong class="program">pkg-config</strong> even when present</p></li>
</ul>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.11.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-pystats">
<span class="sig-name descname"><span class="pre">--enable-pystats</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-enable-pystats" title="Link to this definition">¶</a></dt>
<dd><p>Turn on internal Python performance statistics gathering.</p>
<p>By default, statistics gathering is off. Use <code class="docutils literal notranslate"><span class="pre">python3</span> <span class="pre">-X</span> <span class="pre">pystats</span></code> command
or set <code class="docutils literal notranslate"><span class="pre">PYTHONSTATS=1</span></code> environment variable to turn on statistics
gathering at Python startup.</p>
<p>At Python exit, dump statistics if statistics gathering was on and not
cleared.</p>
<p>Effects:</p>
<ul class="simple">
<li><p>Add <a class="reference internal" href="cmdline.html#cmdoption-X"><code class="xref std std-option docutils literal notranslate"><span class="pre">-X</span> <span class="pre">pystats</span></code></a> command line option.</p></li>
<li><p>Add <code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHONSTATS</span></code> environment variable.</p></li>
<li><p>Define the <code class="docutils literal notranslate"><span class="pre">Py_STATS</span></code> macro.</p></li>
<li><p>Add functions to the <a class="reference internal" href="../library/sys.html#module-sys" title="sys: Access system-specific parameters and functions."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sys</span></code></a> module:</p>
<ul>
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">sys._stats_on()</span></code>: Turns on statistics gathering.</p></li>
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">sys._stats_off()</span></code>: Turns off statistics gathering.</p></li>
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">sys._stats_clear()</span></code>: Clears the statistics.</p></li>
<li><p><code class="xref py py-func docutils literal notranslate"><span class="pre">sys._stats_dump()</span></code>: Dump statistics to file, and clears the statistics.</p></li>
</ul>
</li>
</ul>
<p>The statistics will be dumped to a arbitrary (probably unique) file in
<code class="docutils literal notranslate"><span class="pre">/tmp/py_stats/</span></code> (Unix) or <code class="docutils literal notranslate"><span class="pre">C:\temp\py_stats\</span></code> (Windows). If that
directory does not exist, results will be printed on stderr.</p>
<p>Use <code class="docutils literal notranslate"><span class="pre">Tools/scripts/summarize_stats.py</span></code> to read the stats.</p>
<p>Statistics:</p>
<ul class="simple">
<li><p>Opcode:</p>
<ul>
<li><p>Specialization: success, failure, hit, deferred, miss, deopt, failures;</p></li>
<li><p>Execution count;</p></li>
<li><p>Pair count.</p></li>
</ul>
</li>
<li><p>Call:</p>
<ul>
<li><p>Inlined Python calls;</p></li>
<li><p>PyEval calls;</p></li>
<li><p>Frames pushed;</p></li>
<li><p>Frame object created;</p></li>
<li><p>Eval calls: vector, generator, legacy, function VECTORCALL, build class,
slot, function "ex", API, method.</p></li>
</ul>
</li>
<li><p>Object:</p>
<ul>
<li><p>incref and decref;</p></li>
<li><p>interpreter incref and decref;</p></li>
<li><p>allocations: all, 512 bytes, 4 kiB, big;</p></li>
<li><p>free;</p></li>
<li><p>to/from free lists;</p></li>
<li><p>dictionary materialized/dematerialized;</p></li>
<li><p>type cache;</p></li>
<li><p>optimization attempts;</p></li>
<li><p>optimization traces created/executed;</p></li>
<li><p>uops executed.</p></li>
</ul>
</li>
<li><p>Garbage collector:</p>
<ul>
<li><p>Garbage collections;</p></li>
<li><p>Objects visited;</p></li>
<li><p>Objects collected.</p></li>
</ul>
</li>
</ul>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.11.</span></p>
</div>
</dd></dl>
<dl class="std option" id="free-threading-build">
<dt class="sig sig-object std" id="cmdoption-disable-gil">
<span class="sig-name descname"><span class="pre">--disable-gil</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-disable-gil" title="Link to this definition">¶</a></dt>
<dd><p>Enables support for running Python without the <a class="reference internal" href="../glossary.html#term-global-interpreter-lock"><span class="xref std std-term">global interpreter
lock</span></a> (GIL): <a class="reference internal" href="../glossary.html#term-free-threaded-build"><span class="xref std std-term">free-threaded build</span></a>.</p>
<p>Defines the <code class="docutils literal notranslate"><span class="pre">Py_GIL_DISABLED</span></code> macro and adds <code class="docutils literal notranslate"><span class="pre">"t"</span></code> to
<a class="reference internal" href="../library/sys.html#sys.abiflags" title="sys.abiflags"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.abiflags</span></code></a>.</p>
<p>See <a class="reference internal" href="../whatsnew/3.13.html#whatsnew313-free-threaded-cpython"><span class="std std-ref">Free-threaded CPython</span></a> for more detail.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.13.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-experimental-jit">
<span class="sig-name descname"><span class="pre">--enable-experimental-jit</span></span><span class="sig-prename descclassname"><span class="pre">=[no|yes|yes-off|interpreter]</span></span><a class="headerlink" href="#cmdoption-enable-experimental-jit" title="Link to this definition">¶</a></dt>
<dd><p>Indicate how to integrate the <a class="reference internal" href="../whatsnew/3.14.html#whatsnew314-jit-compiler"><span class="std std-ref">experimental just-in-time compiler</span></a>.</p>
<ul class="simple">
<li><p><code class="docutils literal notranslate"><span class="pre">no</span></code>: Don't build the JIT.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">yes</span></code>: Enable the JIT. To disable it at runtime, set the environment
variable <span class="target" id="index-4"></span><a class="reference internal" href="cmdline.html#envvar-PYTHON_JIT"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHON_JIT=0</span></code></a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">yes-off</span></code>: Build the JIT, but disable it by default. To enable it at
runtime, set the environment variable <span class="target" id="index-5"></span><a class="reference internal" href="cmdline.html#envvar-PYTHON_JIT"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHON_JIT=1</span></code></a>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">interpreter</span></code>: Enable the "JIT interpreter" (only useful for those
debugging the JIT itself). To disable it at runtime, set the environment
variable <span class="target" id="index-6"></span><a class="reference internal" href="cmdline.html#envvar-PYTHON_JIT"><code class="xref std std-envvar docutils literal notranslate"><span class="pre">PYTHON_JIT=0</span></code></a>.</p></li>
</ul>
<p><code class="docutils literal notranslate"><span class="pre">--enable-experimental-jit=no</span></code> is the default behavior if the option is not
provided, and <code class="docutils literal notranslate"><span class="pre">--enable-experimental-jit</span></code> is shorthand for
<code class="docutils literal notranslate"><span class="pre">--enable-experimental-jit=yes</span></code>. See <code class="file docutils literal notranslate"><span class="pre">Tools/jit/README.md</span></code> for more
information, including how to install the necessary build-time dependencies.</p>
<div class="admonition note">
<p class="admonition-title">توجه</p>
<p>When building CPython with JIT enabled, ensure that your system has Python 3.11 or later installed.</p>
</div>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.13.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-PKG_CONFIG">
<span class="sig-name descname"><span class="pre">PKG_CONFIG</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-PKG_CONFIG" title="Link to this definition">¶</a></dt>
<dd><p>Path to <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code> utility.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-PKG_CONFIG_LIBDIR">
<span class="sig-name descname"><span class="pre">PKG_CONFIG_LIBDIR</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-PKG_CONFIG_LIBDIR" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-PKG_CONFIG_PATH">
<span class="sig-name descname"><span class="pre">PKG_CONFIG_PATH</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-PKG_CONFIG_PATH" title="Link to this definition">¶</a></dt>
<dd><p><code class="docutils literal notranslate"><span class="pre">pkg-config</span></code> options.</p>
</dd></dl>
</section>
<section id="c-compiler-options">
<h3><span class="section-number">3.3.2. </span>C compiler options<a class="headerlink" href="#c-compiler-options" title="Link to this heading">¶</a></h3>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CC">
<span class="sig-name descname"><span class="pre">CC</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CC" title="Link to this definition">¶</a></dt>
<dd><p>C compiler command.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CFLAGS">
<span class="sig-name descname"><span class="pre">CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CFLAGS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler flags.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CPP">
<span class="sig-name descname"><span class="pre">CPP</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CPP" title="Link to this definition">¶</a></dt>
<dd><p>C preprocessor command.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CPPFLAGS">
<span class="sig-name descname"><span class="pre">CPPFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CPPFLAGS" title="Link to this definition">¶</a></dt>
<dd><p>C preprocessor flags, e.g. <code class="samp docutils literal notranslate"><span class="pre">-I</span><em><span class="pre">include_dir</span></em></code>.</p>
</dd></dl>
</section>
<section id="linker-options">
<h3><span class="section-number">3.3.3. </span>Linker options<a class="headerlink" href="#linker-options" title="Link to this heading">¶</a></h3>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LDFLAGS">
<span class="sig-name descname"><span class="pre">LDFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LDFLAGS" title="Link to this definition">¶</a></dt>
<dd><p>Linker flags, e.g. <code class="samp docutils literal notranslate"><span class="pre">-L</span><em><span class="pre">library_directory</span></em></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBS">
<span class="sig-name descname"><span class="pre">LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBS" title="Link to this definition">¶</a></dt>
<dd><p>Libraries to pass to the linker, e.g. <code class="samp docutils literal notranslate"><span class="pre">-l</span><em><span class="pre">library</span></em></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-MACHDEP">
<span class="sig-name descname"><span class="pre">MACHDEP</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-MACHDEP" title="Link to this definition">¶</a></dt>
<dd><p>Name for machine-dependent library files.</p>
</dd></dl>
</section>
<section id="options-for-third-party-dependencies">
<span id="configure-options-for-dependencies"></span><h3><span class="section-number">3.3.4. </span>Options for third-party dependencies<a class="headerlink" href="#options-for-third-party-dependencies" title="Link to this heading">¶</a></h3>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.11.</span></p>
</div>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-BZIP2_CFLAGS">
<span class="sig-name descname"><span class="pre">BZIP2_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-BZIP2_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-BZIP2_LIBS">
<span class="sig-name descname"><span class="pre">BZIP2_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-BZIP2_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags to link Python to <code class="docutils literal notranslate"><span class="pre">libbz2</span></code>, used by <a class="reference internal" href="../library/bz2.html#module-bz2" title="bz2: Interfaces for bzip2 compression and decompression."><code class="xref py py-mod docutils literal notranslate"><span class="pre">bz2</span></code></a>
module, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CURSES_CFLAGS">
<span class="sig-name descname"><span class="pre">CURSES_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CURSES_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-CURSES_LIBS">
<span class="sig-name descname"><span class="pre">CURSES_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-CURSES_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libncurses</span></code> or <code class="docutils literal notranslate"><span class="pre">libncursesw</span></code>, used by
<a class="reference internal" href="../library/curses.html#module-curses" title="curses: An interface to the curses library, providing portable terminal handling."><code class="xref py py-mod docutils literal notranslate"><span class="pre">curses</span></code></a> module, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-GDBM_CFLAGS">
<span class="sig-name descname"><span class="pre">GDBM_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-GDBM_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-GDBM_LIBS">
<span class="sig-name descname"><span class="pre">GDBM_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-GDBM_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">gdbm</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBEDIT_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBEDIT_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBEDIT_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBEDIT_LIBS">
<span class="sig-name descname"><span class="pre">LIBEDIT_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBEDIT_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libedit</span></code>, used by <a class="reference internal" href="../library/readline.html#module-readline" title="readline: GNU readline support for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBFFI_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBFFI_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBFFI_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBFFI_LIBS">
<span class="sig-name descname"><span class="pre">LIBFFI_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBFFI_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libffi</span></code>, used by <a class="reference internal" href="../library/ctypes.html#module-ctypes" title="ctypes: A foreign function library for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">ctypes</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBMPDEC_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBMPDEC_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBMPDEC_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBMPDEC_LIBS">
<span class="sig-name descname"><span class="pre">LIBMPDEC_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBMPDEC_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libmpdec</span></code>, used by <a class="reference internal" href="../library/decimal.html#module-decimal" title="decimal: Implementation of the General Decimal Arithmetic Specification."><code class="xref py py-mod docutils literal notranslate"><span class="pre">decimal</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
<div class="admonition note">
<p class="admonition-title">توجه</p>
<p>These environment variables have no effect unless
<a class="reference internal" href="#cmdoption-with-system-libmpdec"><code class="xref std std-option docutils literal notranslate"><span class="pre">--with-system-libmpdec</span></code></a> is specified.</p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBLZMA_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBLZMA_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBLZMA_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBLZMA_LIBS">
<span class="sig-name descname"><span class="pre">LIBLZMA_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBLZMA_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">liblzma</span></code>, used by <a class="reference internal" href="../library/lzma.html#module-lzma" title="lzma: A Python wrapper for the liblzma compression library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">lzma</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBREADLINE_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBREADLINE_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBREADLINE_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBREADLINE_LIBS">
<span class="sig-name descname"><span class="pre">LIBREADLINE_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBREADLINE_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libreadline</span></code>, used by <a class="reference internal" href="../library/readline.html#module-readline" title="readline: GNU readline support for Python."><code class="xref py py-mod docutils literal notranslate"><span class="pre">readline</span></code></a>
module, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBSQLITE3_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBSQLITE3_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBSQLITE3_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBSQLITE3_LIBS">
<span class="sig-name descname"><span class="pre">LIBSQLITE3_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBSQLITE3_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libsqlite3</span></code>, used by <a class="reference internal" href="../library/sqlite3.html#module-sqlite3" title="sqlite3: A DB-API 2.0 implementation using SQLite 3.x."><code class="xref py py-mod docutils literal notranslate"><span class="pre">sqlite3</span></code></a>
module, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBUUID_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBUUID_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBUUID_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBUUID_LIBS">
<span class="sig-name descname"><span class="pre">LIBUUID_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBUUID_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libuuid</span></code>, used by <a class="reference internal" href="../library/uuid.html#module-uuid" title="uuid: UUID objects (universally unique identifiers) according to RFC 9562"><code class="xref py py-mod docutils literal notranslate"><span class="pre">uuid</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBZSTD_CFLAGS">
<span class="sig-name descname"><span class="pre">LIBZSTD_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBZSTD_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-LIBZSTD_LIBS">
<span class="sig-name descname"><span class="pre">LIBZSTD_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-LIBZSTD_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libzstd</span></code>, used by <a class="reference internal" href="../library/compression.zstd.html#module-compression.zstd" title="compression.zstd: Low-level interface to compression and decompression routines in the zstd library."><code class="xref py py-mod docutils literal notranslate"><span class="pre">compression.zstd</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.14.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-PANEL_CFLAGS">
<span class="sig-name descname"><span class="pre">PANEL_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-PANEL_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-PANEL_LIBS">
<span class="sig-name descname"><span class="pre">PANEL_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-PANEL_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for PANEL, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
<p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libpanel</span></code> or <code class="docutils literal notranslate"><span class="pre">libpanelw</span></code>, used by
<a class="reference internal" href="../library/curses.panel.html#module-curses.panel" title="curses.panel: A panel stack extension that adds depth to curses windows."><code class="xref py py-mod docutils literal notranslate"><span class="pre">curses.panel</span></code></a> module, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-TCLTK_CFLAGS">
<span class="sig-name descname"><span class="pre">TCLTK_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-TCLTK_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-TCLTK_LIBS">
<span class="sig-name descname"><span class="pre">TCLTK_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-TCLTK_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for TCLTK, overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-ZLIB_CFLAGS">
<span class="sig-name descname"><span class="pre">ZLIB_CFLAGS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-ZLIB_CFLAGS" title="Link to this definition">¶</a></dt>
<dd></dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-arg-ZLIB_LIBS">
<span class="sig-name descname"><span class="pre">ZLIB_LIBS</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-arg-ZLIB_LIBS" title="Link to this definition">¶</a></dt>
<dd><p>C compiler and linker flags for <code class="docutils literal notranslate"><span class="pre">libzlib</span></code>, used by <a class="reference internal" href="../library/gzip.html#module-gzip" title="gzip: Interfaces for gzip compression and decompression using file objects."><code class="xref py py-mod docutils literal notranslate"><span class="pre">gzip</span></code></a> module,
overriding <code class="docutils literal notranslate"><span class="pre">pkg-config</span></code>.</p>
</dd></dl>
</section>
<section id="webassembly-options">
<h3><span class="section-number">3.3.5. </span>WebAssembly Options<a class="headerlink" href="#webassembly-options" title="Link to this heading">¶</a></h3>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-wasm-dynamic-linking">
<span class="sig-name descname"><span class="pre">--enable-wasm-dynamic-linking</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-enable-wasm-dynamic-linking" title="Link to this definition">¶</a></dt>
<dd><p>Turn on dynamic linking support for WASM.</p>
<p>Dynamic linking enables <code class="docutils literal notranslate"><span class="pre">dlopen</span></code>. File size of the executable
increases due to limited dead code elimination and additional features.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.11.</span></p>
</div>
</dd></dl>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-enable-wasm-pthreads">
<span class="sig-name descname"><span class="pre">--enable-wasm-pthreads</span></span><span class="sig-prename descclassname"></span><a class="headerlink" href="#cmdoption-enable-wasm-pthreads" title="Link to this definition">¶</a></dt>
<dd><p>Turn on pthreads support for WASM.</p>
<div class="versionadded">
<p><span class="versionmodified added">Added in version 3.11.</span></p>
</div>
</dd></dl>
</section>
<section id="install-options">
<h3><span class="section-number">3.3.6. </span>Install Options<a class="headerlink" href="#install-options" title="Link to this heading">¶</a></h3>
<dl class="std option">
<dt class="sig sig-object std" id="cmdoption-prefix">
<span class="sig-name descname"><span class="pre">--prefix</span></span><span class="sig-prename descclassname"><span class="pre">=PREFIX</span></span><a class="headerlink" href="#cmdoption-prefix" title="Link to this definition">¶</a></dt>
<dd><p>Install architecture-independent files in PREFIX. On Unix, it
defaults to <code class="file docutils literal notranslate"><span class="pre">/usr/local</span></code>.</p>
<p>This value can be retrieved at runtime using <a class="reference internal" href="../library/sys.html#sys.prefix" title="sys.prefix"><code class="xref py py-data docutils literal notranslate"><span class="pre">sys.prefix</span></code></a>.</p>