hyb
2026-01-30 15bc7727b58bf9ca0c8f21702fa893daac232b8d
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
Ë
@ñúh29ãó—dZddlZddlZddlmZddlmZddlmZddl    m
Z
ddl m Z ddl mZddlmZddlZd    d
lmZej(d ¬ «d „«Zej(d ¬ «d„«ZGd„de j.«Zy)z"Tests for distutils.unixccompiler.éN)Ú    sysconfig)Úconsolidate_linker_args)ÚDistutilsPlatformError)Úsupport)ÚEnvironmentVarGuard)Ú_clear_cached_macosx_veré)ÚunixT)Úautousecóâ—|jtdtj«|jtdtj«|jtdtj
«y)NÚplatformÚget_config_varÚget_config_vars)ÚsetattrÚsysr rrr)Ú monkeypatchs údH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/compilers/C/tests/test_unix.pyÚ save_valuesrsJ€à×Ñœ˜Z¬¯©Ô6Ø×Ñœ    Ð#3´Y×5MÑ5MÔNØ×Ñœ    Ð#4´i×6OÑ6OÕPócób—Gd„dtj«}|«|j_y)Ncó—eZdZd„Zy)ú)compiler_wrapper.<locals>.CompilerWrappercó$—|jd«S)Nz/foo)Úruntime_library_dir_option©Úselfs rÚ    rpath_fooz3compiler_wrapper.<locals>.CompilerWrapper.rpath_foos€Ø×2Ñ2°6Ó:Ð :rN)Ú__name__Ú
__module__Ú __qualname__r©rrÚCompilerWrapperrs„ó    ;rr")r
ÚCompilerÚinstanceÚcc)Úrequestr"s  rÚcompiler_wrapperr's%€ô;œ$Ÿ-™-ô;ñ*Ó+€G×ÑÕrcóž—eZdZejj d«d„«Zejj d«d„«Zejj d«d„«Zejj d«ejjd«d„««Z
ejj d«d„«Z d„Z d    „Z y
) ÚTestUnixCCompilerzplatform.system == "Windows"c óV‡‡ ‡ —dt_dŠ d}d}d|fd|fd|fd|fd    |fd
|fd |fd |fd |fd|fd|fdg }ˆ fd„Š ˆ ˆ ˆfd„}|D]<\}}|\}}||||«|€
|d||«|€
||d|«|Œ0|Œ3|dd|«Œ>tj}    dt_d„}
|
t_‰jj «ddgk(sJ‚d„}
|
t_‰jj «ddgk(sJ‚d„}
|
t_‰jj «ddgk(sJ‚|    t_dt_d„}
|
t_‰jj «t ddg«k(sJ‚d„}
|
t_‰jj «t ddg«k(sJ‚dt_d„}
|
t_‰jj «dk(sJ‚dt_d „}
|
t_‰jj «t ddg«k(sJ‚dt_d!„}
|
t_‰jj «t ddg«k(sJ‚dt_d"„}
|
t_‰jj «dk(sJ‚y)#NÚdarwinÚMACOSX_DEPLOYMENT_TARGETz-Wl,-rpath,/fooz-L/foo)NN)NÚ11)Ú10N)ú10.3N)z10.3.1N)ú10.5N)z10.5.1N)r/r/)r/r0)r0r/)r0r-))z10.4r.Nc󕇗ˆˆfd„}|S)Ncó•—|‰k(r‰Sy©NÚxxxr!)ÚvarÚdarwin_ver_varÚsyscfg_macosx_vers €€rÚgcvzRTestUnixCCompiler.test_runtime_libdir_option.<locals>.make_darwin_gcv.<locals>.gcvCsø€Ø˜.Ò(Ø,Ð,Ørr!)r7r8r6s` €rÚmake_darwin_gcvzETestUnixCCompiler.test_runtime_libdir_option.<locals>.make_darwin_gcvBsù€õ ð
ˆJrcó4•—tj}d|›d|›d}tj}|j    ‰«}t «‰|«t_|||‰<n‰|vr|j ‰«|$‰    jj«|k(sHJ|«‚tjt‰dz¬«5‰    jj«ddd«|||‰<n‰|vr|j ‰«|t_t «y#1swYŒ<xYw)NzmacOS version = (sysconfig=z, env=ú)z     mismatch)Úmatch) ÚosÚenvironrrÚgetrÚpopr%rÚpytestÚraisesr)
r7Úenv_macosx_verÚ expected_flagÚenvÚmsgÚold_gcvÚold_env_macosx_verr6r9rs
       €€€rÚdo_darwin_testzDTestUnixCCompiler.test_runtime_libdir_option.<locals>.do_darwin_testJsø€Ü—*‘*ˆCØ/Ð0AÐ/DÀFÈ>ÐJ\Ð\]Ð^ˆCô ×.Ñ.ˆGØ!$§¡¨Ó!8Ð ô %Ô &Ù'6Ð7HÓ'IŒIÔ $ØÐ)Ø&4NÒ#Ø 3Ñ&Ø—‘˜Ô'ðÐ(Ø—w‘w×(Ñ(Ó*¨mÒ;Ð@¸SÓ@Ð;ä—]‘]Ü*°.À<Ñ2Oôñ(ð—G‘G×%Ñ%Ô'÷(ð "Ð-Ø&8NÒ#Ø 3Ñ&Ø—‘˜Ô'Ø'.ŒIÔ $Ü $Õ &÷(ð(ús Â8DÄDÚzhp-uxcó—yr3r!©Úvs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcv{ó€Ørz+scó—y)NÚgccr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcvrNrz-Wl,+scó—y)Nzg++r!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcv‡rNrÚbarcó—|dk(ry|dk(ryy)NÚCCrPÚGNULDÚyesr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcv’s€ØDŠyØØg’Øðrz-Wl,--enable-new-dtagscó—|dk(ry|dk(ryy)NrTzgcc -pthread -B /barrUrVr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcvžs€ØDŠyØ-ؐg’Øðrcó—|dk(ry|dk(ryy)NrTrPrUÚnor!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcv­s€ØDŠyØØg’Øðrz
-Wl,-R/foocó—|dk(ry|dk(ryy)NrTzx86_64-pc-linux-gnu-gcc-4.4.2rUrVr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcvºs€ØDŠyØ6ؐg’Øðrcó—|dk(ry|dk(ryy)NrTr%rUrVr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcvÉs€ØDŠyØØg’Øðrcó—|dk(ry|dk(ryy)NrTr%rUrYr!rLs rr8z9TestUnixCCompiler.test_runtime_libdir_option.<locals>.gcvØs€ØDŠyØØg’Øðr)rr rrr%rr) rÚdarwin_rpath_flagÚdarwin_lib_flagÚdarwin_test_casesrIÚ macosx_versrDr7rCrGr8r6r9s `          @@rÚtest_runtime_libdir_optionz,TestUnixCCompiler.test_runtime_libdir_option#s+ú€ð ŒŒ Ø3ˆØ-ÐØ"ˆð ˜?Ð +Ø Ð,Ð -Ø ˜?Ð +Ø ˜_Ð -Ø ˜Ð /Ø Ð.Ð /Ø Ð0Ð 1Ø ˜Ð /Ø Ð0Ð 1Ø ˜Ð /Ø Ð.Ð /Ø "ð 
Ðô    ö    'ðB+<ò        6Ñ &ˆK˜Ø0;Ñ -Ð ˜~Ù Ð,¨n¸mÔ Là Ð(Ù˜r >°=ÔAØÐ%ÙÐ0°"°mÔDØ Ñ(¨^Ñ-CÙ˜r 2 }Õ5ð        6ô×*Ñ*ˆðŒŒ ò    ð$'Œ    Ô Øw‰w× Ñ Ó" t¨XÐ&6Ò6Ð6Ð6ò    ð$'Œ    Ô Øw‰w× Ñ Ó" x°Ð&:Ò:Ð:Ð:ò    ð$'Œ    Ô Øw‰w× Ñ Ó" x°Ð&:Ò:Ð:Ð:à#*Œ    Ô ðŒŒ ò    ð $'Œ    Ô Øw‰w× Ñ Ó"Ô&=Ø $Ø ð?
ó' ò ð     ð ò
    ð $'Œ    Ô Øw‰w× Ñ Ó"Ô&=Ø $Ø ð?
ó' ò ð     ð 𠌌 ò    ð $'Œ    Ô Øw‰w× Ñ Ó" lÒ2Ð2Ð2ðŒŒ ò    ð $'Œ    Ô Øw‰w× Ñ Ó"Ô&=Ø $Ø ð?
ó' ò ð     ð 𠌌 ò    ð $'Œ    Ô Øw‰w× Ñ Ó"Ô&=Ø $Ø ð?
ó' ò ð     ð 𠌌 ò    ð $'Œ    Ô Øw‰w× Ñ Ó" lÒ2Ð2Ñ2rcó&—d„}tjdœd„}|t_|t_t«5}d|d<|d=tj|j
«ddd«|j
j ddk(sJ‚y#1swYŒ(xYw)Ncó—|dk(ryy©NÚLDSHAREDú*gcc-4.2 -bundle -undefined dynamic_lookup úgcc-4.2r!rLs rr8z9TestUnixCCompiler.test_cc_overrides_ldshared.<locals>.gcvå󀨐JŠØCØr©Ú_origcóZ—|r#tttj|««S|«S©N©ÚlistÚmaprr©rjÚargss  rÚgcvsz:TestUnixCCompiler.test_cc_overrides_ldshared.<locals>.gcvsêó$€ÙÜœC¤    × 8Ñ 8¸$Ó?Ó@Ð@Ù“7ˆNrÚmy_ccrTrer©rrrrÚcustomize_compilerr%Ú    linker_so©rr8rrrEs    rÚtest_cc_overrides_ldsharedz,TestUnixCCompiler.test_cc_overrides_ldsharedás‡€ò    ô
(×7Ñ7ô    ð
$'Œ    Ô Ø$(Œ    Ô!Ü  Ó "ð    2 c؈C‰IؐJÜ × (Ñ (¨¯©Ô 1÷    2ðw‰w× Ñ  Ñ# wÒ.Ð.Ñ.÷        2ð    2ús ¸(BÂBc
ó —d„}tjdœd„}|t_|t_tjj |j dd¬«5}tjj |j dd¬«5tjj |j dd¬«5t«5}|d    =|d
=tj|j «|j jd d d dgk(sJ‚|j jd d d dgk(sJ‚|j jdgdd¬«|jd d }gd¢}|dd|k(sJ‚|j jgdd¬«|jd d }d dd|j jd«g}|dd|k(sJ‚d|d
<d|d    <tj|j «|j jd d ddgk(sJ‚|j jd d ddgk(sJ‚|j jdgdd¬«|jd d }gd¢}|dd|k(sJ‚|j jgdd¬«|jd d }ddd|j jd«g}|dd|k(sJ‚    ddd«ddd«ddd«ddd«y#1swYŒ"xYw#1swYŒ&xYw#1swYŒ*xYw#1swYyxYw)Ncó4—|dk(ry|dk(ry|dk(ry|dk(ryy    )
Nrez0ccache gcc-4.2 -bundle -undefined dynamic_lookupÚ LDCXXSHAREDz0ccache g++-4.2 -bundle -undefined dynamic_lookupÚCXXzccache g++-4.2rTzccache gcc-4.2rJr!rLs rr8zATestUnixCCompiler.test_cxx_commands_used_are_correct.<locals>.gcvùs.€ØJŠØIؐmÒ#ØIؐe’Ø'ؐd’Ø'ØrricóZ—|r#tttj|««S|«Srlrmrps  rrrzBTestUnixCCompiler.test_cxx_commands_used_are_correct.<locals>.gcvsrsrÚspawn©Ú return_valueÚ
_need_linkTÚmkpathr}r|rr    Úccacheúg++-4.2úa.outúc++©Ú target_lang)r„r…ú-bundleú
-undefinedÚdynamic_lookupéz-oéz1wrapper g++-4.2 -bundle -undefined dynamic_lookupzwrapper g++-4.2Úwrapper)rr…rŠr‹rŒ)rrrÚmockÚpatchÚobjectr%rrvÚ linker_so_cxxÚlinker_exe_cxxÚlinkÚ    call_argsÚlink_executableÚexecutable_filename©rr8rrÚ
mock_spawnrEr–Úexpecteds       rÚ"test_cxx_commands_used_are_correctz4TestUnixCCompiler.test_cxx_commands_used_are_correct÷s€ò        ô(×7Ñ7ô    ð
$'Œ    Ô Ø$(Œ    Ô!ä J‰J× Ñ ˜dŸg™g w¸TÐ Ó Bð)    -ØFPÜ J‰J× Ñ ˜dŸg™g |À$Ð Ó Gñ)    -ô J‰J× Ñ ˜dŸg™g x¸dÐ Ó Cñ)    -ô  Ó !ð    )    -ð&)ðE
ؐMÐ"ä × (Ñ (¨¯©Ô 1Ø—7‘7×(Ñ(¨¨1Ð-°(¸IÐ1FÒFÐ FÐFØ—7‘7×)Ñ)¨!¨AÐ.°8¸YÐ2GÒGÐ GÐGØ G‰GL‰L˜˜r 7¸ˆLÔ >Ø"×,Ñ,¨QÑ/°Ñ2ˆIÚWˆHؘR˜a= HÒ,Ð ,Ð,à G‰G× #Ñ # B¨¸UÐ #Ô CØ"×,Ñ,¨QÑ/°Ñ2ˆIØ  )¨T°4·7±7×3NÑ3NÈwÓ3WÐXˆHؘR˜a= HÒ,Ð ,Ð,à!TˆC Ñ Ø*ˆC‰JÜ × (Ñ (¨¯©Ô 1Ø—7‘7×(Ñ(¨¨1Ð-°)¸YÐ1GÒGÐ GÐGØ—7‘7×)Ñ)¨!¨AÐ.°9¸iÐ2HÒHÐ HÐHØ G‰GL‰L˜˜r 7¸ˆLÔ >Ø"×,Ñ,¨QÑ/°Ñ2ˆIÚXˆHؘR˜a= HÒ,Ð ,Ð,à G‰G× #Ñ # B¨¸UÐ #Ô CØ"×,Ñ,¨QÑ/°Ñ2ˆIàØØØ—‘×+Ñ+¨GÓ4ð    ˆHð ˜R˜a= HÒ,Ð ,Ñ,÷S)    -÷)    -÷)    -÷)    -÷)    -ñ)    -ú÷)    -ð)    -ú÷)    -ð)    -ú÷)    -ð)    -úsUÁ-LÂ-K8Â4 K,Â?G?K     Ê?K,ËK8ËLË K) Ë%K,Ë,K5 Ë1K8Ë8L    Ë=LÌL Údisable_macos_customizationc
ó:—d„}tjdœd„}|t_|t_tjj |j dd¬«5}tjj |j dd¬«5tjj |j d    d¬«5t«5}d
|d <d |d <|d=tj|j «|j jddddgk(sJ‚|j jdgdd¬«|jdd}gd¢}|dd|k(sJ‚    ddd«ddd«ddd«ddd«y#1swYŒ"xYw#1swYŒ&xYw#1swYŒ*xYw#1swYyxYw)z
        Ensure that setting CC env variable also changes default linker
        correctly when building C++ extensions.
 
        pypa/distutils#126
        có4—|dk(ry|dk(ry|dk(ry|dk(ryy    )
Nrerfr|z*g++-4.2 -bundle -undefined dynamic_lookup r}r…rTrgrJr!rLs rr8zKTestUnixCCompiler.test_cc_overrides_ldshared_for_cxx_correctly.<locals>.gcv@s.€ØJŠØCؐmÒ#ØCؐe’ؠؐd’Ø ØrricóZ—|r#tttj|««S|«Srlrmrps  rrrzLTestUnixCCompiler.test_cc_overrides_ldshared_for_cxx_correctly.<locals>.gcvsKrsrrNr€r‚Trƒz ccache my_ccrTÚmy_cxxr}rerr    r„rtr†r‡rˆ)r¡rŠr‹rŒrŽ) rrrrr‘r’r%rrvrwr•r–r™s       rÚ,test_cc_overrides_ldshared_for_cxx_correctlyz>TestUnixCCompiler.test_cc_overrides_ldshared_for_cxx_correctly6s{€ò        ô(×7Ñ7ô    ð
$'Œ    Ô Ø$(Œ    Ô!ä J‰J× Ñ ˜dŸg™g w¸TÐ Ó Bð    -ØFPÜ J‰J× Ñ ˜dŸg™g |À$Ð Ó Gñ    -ô J‰J× Ñ ˜dŸg™g x¸dÐ Ó Cñ    -ô  Ó !ð        -ð&)à&ˆC‰IØ!ˆC‰JؐJÜ × (Ñ (¨¯©Ô 1Ø—7‘7×$Ñ$ Q qÐ)¨h¸Ð-@Ò@Ð @Ð@Ø G‰GL‰L˜˜r 7¸ˆLÔ >Ø"×,Ñ,¨QÑ/°Ñ2ˆIÚLˆHؘR˜a= HÒ,Ð ,Ñ,÷    -÷    -÷    -÷    -÷    -ñ    -ú÷    -ð    -ú÷    -ð    -ú÷    -ð    -úsUÁ-FÂ-FÂ4 E9Â?B E-    Å E9ÅFÅFÅ-E6 Å2E9Å9F Å>FÆF    Æ
FÆFcó*—d„}tjdœd„}|t_|t_t«5}d|d<d|d<tj|j
«ddd«|j
j dd    k(sJ‚y#1swYŒ(xYw)
Ncó—|dk(ryyrdr!rLs rr8z5TestUnixCCompiler.test_explicit_ldshared.<locals>.gcvgrhrricóZ—|r#tttj|««S|«Srlrmrps  rrrz6TestUnixCCompiler.test_explicit_ldshared.<locals>.gcvslrsrrtrTzmy_ld -bundle -dynamicrerÚmy_ldrurxs    rÚtest_explicit_ldsharedz(TestUnixCCompiler.test_explicit_ldsharedbs‰€ò
    ô
(×7Ñ7ô    ð
$'Œ    Ô Ø$(Œ    Ô!Ü  Ó "ð    2 c؈C‰IØ6ˆC
‰OÜ × (Ñ (¨¯©Ô 1÷    2ðw‰w× Ñ  Ñ# wÒ.Ð.Ñ.÷        2ð    2ús ¸*B        Bcó¢—d|j_tj|j    ««|jj d«y)NÚscratchÚabort)r%Ú
output_dirr=ÚchdirÚmkdtempÚ has_functionrs rÚtest_has_functionz#TestUnixCCompiler.test_has_functionys4€ð'ˆ‰ÔÜ
‰—‘“Ô Ø ‰×јWÕ%rcó^—tj«}d„|_|jtj
dd„«t jdk7rdnd}d}|j|d«jd    d
«d |›k(sJ‚|jt|«d«jd    d
«d |›k(sJ‚|jtj
dd „«|j|d«jd    d
«d k(sJ‚|jt|«d«jd    d
«d k(sJ‚y)Ncó—|Srlr!)Údirs rú<lambda>z:TestUnixCCompiler.test_find_library_file.<locals>.<lambda>ƒs€¨S€rÚexistscó
—d|vS)NÚexistingr!©Úds rr³z:TestUnixCCompiler.test_find_library_file.<locals>.<lambda>„s
€¸Àq¸€rÚcygwinz libabc.dylibz
cygabc.dll)z/foo/bar/missingz/foo/bar/existingÚabcú\ú/z/foo/bar/existing/có"—d|vxr
d|vxrd|vS)Nr¶z.az.dll.ar!r·s rr³z:TestUnixCCompiler.test_find_library_file.<locals>.<lambda>”s€j AoÒI¨$°!¨)ÒI¸ÈÐ8I€rz/foo/bar/existing/libabc.a) r
r#Ú _library_rootrr=Úpathrr Úfind_library_fileÚreplaceÚreversed)rrÚcompilerÚlibnameÚdirss     rÚtest_find_library_filez(TestUnixCCompiler.test_find_library_files8€Ü—=‘=“?ˆÙ!0ˆÔØ×ÑœBŸG™G XÑ/HÔIä$'§L¡L°HÒ$<‘.À,ˆØ8ˆà × &Ñ & t¨UÓ 3× ;Ñ ;¸DÀ#Ó FØ# G 9Ð-ò .ð    
ð .ð × &Ñ &¤x°£~°uÓ =× EÑ EÀdÈCÓ PØ# G 9Ð-ò .ð    
ð .ð    ×ÑÜ G‰GØ Ù Iô    
ð × &Ñ & t¨UÓ 3× ;Ñ ;¸DÀ#Ó FØ+ò ,ð    
ð ,ð × &Ñ &¤x°£~°uÓ =× EÑ EÀdÈCÓ PØ+ò ,ð    
ñ ,rN)rrr rAÚmarkÚskipifraryrœÚ usefixturesr¢r§r¯rÆr!rrr)r)"sۄØ ‡[[×ÑÐ6Ó7ñ{3ó8ð{3ðz ‡[[×ÑÐ6Ó7ñ/ó8ð/ð* ‡[[×ÑÐ6Ó7ñ<-ó8ð<-ð| ‡[[×ÑÐ6Ó7Ø ‡[[×ÑÐ:Ó;ñ(-ó<ó8ð(-ðT ‡[[×ÑÐ6Ó7ñ/ó8ð/ò,&ó
rr))Ú__doc__r=rÚ unittest.mockrÚ    distutilsrÚdistutils.compatrÚdistutils.errorsrÚdistutils.testsrÚdistutils.tests.compat.py39rÚdistutils.utilrrArJr
Úfixturerr'ÚTempdirManagerr)r!rrú<module>rÔs}ðÙ(ã    Û
ÝÝÝ4Ý3Ý#Ý;Ý3ã åð€‡˜ÔñQóðQ𠀇˜Ôñ,óð,ô{
˜×.Ñ.õ{
r