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
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
Ë
@ñúh“@ãó—dZddlmZddlZddlZddlZddlZddlZddlm    Z    ddl
m Z ddl m Z ddlmZdd    lmZdd
lmZdd lmZd d l
mZd dlmZmZmZd dlmZmZmZd„Zd„Zd„ZGd„dej@«Z y)a9distutils.unixccompiler
 
Contains the UnixCCompiler class, a subclass of CCompiler that handles
the "typical" Unix-style command-line C compiler:
  * macros defined with -Dname[=value]
  * macros undefined with -Uname
  * include search directories specified with -Idir
  * libraries specified with -lllib
  * library search directories specified with -Ldir
  * compile handled by 'cc' (or similar) executable with -c option:
    compiles .c to .o
  * link static library handled by 'ar' command (possibly with 'ranlib')
  * link shared library handled by 'cc -shared'
é)Ú annotationsN)ÚIterableé)Ú    sysconfig)Úlog)Úcompiler_fixup)Únewer)Úconsolidate_linker_args)ÚDistutilsExecErroré)Úbase)Ú_MacroÚgen_lib_optionsÚgen_preprocess_options)Ú CompileErrorÚLibErrorÚ    LinkErrorcó—d}tjj|d«dk(rd}d||vr |dz }d||vrŒ |d|||dfS)zÿ
    For macOS, split command into 'env' portion (if any)
    and the rest of the linker command.
 
    >>> _split_env(['a', 'b', 'c'])
    ([], ['a', 'b', 'c'])
    >>> _split_env(['/usr/bin/env', 'A=3', 'gcc'])
    (['/usr/bin/env', 'A=3'], ['gcc'])
    rÚenvr ú=N©ÚosÚpathÚbasename©ÚcmdÚpivots  úYH:\Change_password\venv_build\Lib\site-packages\setuptools/_distutils/compilers/C/unix.pyÚ
_split_envr7sc€ð €EÜ    ‡ww×ј˜A™Ó 5Ò(؈ؐS˜‘ZÑØ Q‰JˆEðS˜‘ZÒà ˆvˆ;˜˜E˜F˜ Ð #Ð#ócó`—tjj|d«dk(}|d|||dfS)a
    AIX platforms prefix the compiler with the ld_so_aix
    script, so split that from the linker command.
 
    >>> _split_aix(['a', 'b', 'c'])
    ([], ['a', 'b', 'c'])
    >>> _split_aix(['/bin/foo/ld_so_aix', 'gcc'])
    (['/bin/foo/ld_so_aix'], ['gcc'])
    rÚ    ld_so_aixNrrs  rÚ
_split_aixr#Is8€ô G‰G× Ñ ˜S ™VÓ $¨ Ñ 3€EØ ˆvˆ;˜˜E˜F˜ Ð #Ð#r có:—t|«}|d||k(r|nd}||dS)a
    The linker command usually begins with the compiler
    command (possibly multiple elements), followed by zero or more
    params for shared library building.
 
    If the LDSHARED env variable overrides the linker command,
    however, the commands may not match.
 
    Return the best guess of the linker parameters by stripping
    the linker command. If the compiler command does not
    match the linker command, assume the linker command is
    just the first element.
 
    >>> _linker_params('gcc foo bar'.split(), ['gcc'])
    ['foo', 'bar']
    >>> _linker_params('gcc foo bar'.split(), ['other'])
    ['foo', 'bar']
    >>> _linker_params('ccache gcc foo bar'.split(), 'ccache gcc'.split())
    ['foo', 'bar']
    >>> _linker_params(['gcc'], ['gcc'])
    []
    Nr )Úlen)Ú
linker_cmdÚ compiler_cmdÚc_lenrs    rÚ_linker_paramsr)Ws0€ô.  Ó €EØ  Ð'¨<Ò7‰E¸Q€EØ efÐ Ðr c ó~‡—eZdZdZddgdgdgdgddgddgdgddgddgddœ Zej dd    d
k(rd ged <gd ¢Zd ZdZ    dZ
dZ dZ dxZ xZZeZej dk(rdZdZ
dZ dZˆfd„Z                    d#                                            d$d„Zd„Z    d%d„Z                                        d&                                    d'd„Zd„Zd„Zd(d„Zd „Zed!„«Zd)d"„ZˆxZS)*ÚCompilerÚunixNÚccúc++z-sharedÚarz-cr) Ú preprocessorÚcompilerÚ compiler_soÚ compiler_cxxÚcompiler_so_cxxÚ    linker_soÚ linker_so_cxxÚ
linker_exeÚlinker_exe_cxxÚarchiverÚranlibéÚdarwinr:)z.cz.Cz.ccz.cxxz.cppz.mz.oz.az.soz.dylibz.tbdzlib%s%sÚcygwinz.exez.dll.az.dllzcyg%s%sc󲕗t‰||||«\}}}tjd«}|r&|j    d«r||vr|j |«|||fS)z'Remove standard library path from rpathÚLIBDIRz/usr/lib)ÚsuperÚ _fix_lib_argsrÚget_config_varÚ
startswithÚremove)ÚselfÚ    librariesÚ library_dirsÚruntime_library_dirsÚlibdirÚ    __class__s     €rrAzCompiler._fix_lib_args¡sjø€ä8=¹Ñ8MØ |Ð%9ó9
Ñ5ˆ    <Ð!5ô×)Ñ)¨(Ó3ˆá  Ø×!Ñ! *Ô-ØÐ/Ñ/à  × 'Ñ '¨Ô /ؘ,Ð(<Ð<Ð<r cóî—|jd||«}|\}}}t||«}    |j|    z}
|r|
jd|g«|r||
dd|r|
j|«|
j    |«|j
xs|duxs t ||«} | sy|r.|jtjj|««    |j|
«y#t$r} t| «‚d} ~ wwxYw)Nú-or)Ú_fix_compile_argsrr0ÚextendÚappendÚforcer    ÚmkpathrrÚdirnameÚspawnr r) rEÚsourceÚ output_fileÚmacrosÚ include_dirsÚ extra_preargsÚextra_postargsÚ
fixed_argsÚignoreÚpp_optsÚpp_argsÚ
preprocessÚmsgs              rr^zCompiler.preprocess¯sì€ð×+Ñ+¨D°&¸,ÓGˆ
Ø'1Ñ$ˆ˜ Ü(¨°Ó>ˆØ×#Ñ# gÑ-ˆÙ Ø N‰N˜D +Ð.Ô /Ù Ø'ˆGBQˆKÙ Ø N‰N˜>Ô *؏‰vÔð —Z‘ZÒT ;°$Ð#6ÒT¼%ÀÈ Ó:Tˆ
ÙØ á Ø K‰KœŸ™Ÿ™¨ Ó4Ô 5ð    $Ø J‰JwÕ øÜ!ò    $ܘsÓ#Ð #ûð    $úsà   Cà   C4Ã$ C/Ã/C4có@—t|j||z«}t|j||z«}    |j|«dk(r|j    ||z|d|gz|z«y|j    ||z|d|gz|z«y#t
$r}    t |    «‚d}    ~    wwxYw)Nr.rL)rr2r4Údetect_languagerSr r)
rEÚobjÚsrcÚextÚcc_argsrYr\r2r4r_s
          rÚ_compilezCompiler._compileÔs¬€Ü$ T×%5Ñ%5°wÀÑ7OÓPˆ Ü(¨×)=Ñ)=¸wÈÑ?WÓXˆð    $Ø×#Ñ# CÓ(¨EÒ1Ø—
‘
Ø# gÑ-°°d¸CÐ0@Ñ@À>ÑQõð—
‘
˜;¨Ñ0°C¸¸sÐ3CÑCÀnÑTÕUøÜ!ò    $ܘsÓ#Ð #ûð    $ús´1BÁ&B    B BÂBcóò—|j||«\}}|j||¬«}|j||«r‹|jtj
j |««|j|j|gz|z|jz«|jr!    |j|j|gz«yytjd|«y#t$r}t|«‚d}~wwxYw)N)Ú
output_dirúskipping %s (up-to-date))Ú_fix_object_argsÚlibrary_filenameÚ
_need_linkrQrrrRrSr9Úobjectsr:r rrÚdebug)rErmÚoutput_libnamerhrnÚ target_langÚoutput_filenamer_s        rÚcreate_static_libzCompiler.create_static_libásՀð#×3Ñ3°G¸ZÓHшà×/Ñ/°È:Ð/ÓVˆà ?‰?˜7 OÔ 4Ø K‰KœŸ™Ÿ™¨Ó8Ô 9Ø J‰Jt—}‘}¨Ð'8Ñ8¸7ÑBÀTÇ\Á\ÑQÔ Rð{Š{ð(Ø—J‘J˜tŸ{™{¨oÐ->Ñ>Õ?ðô I‰IÐ0°/Õ Bøô*ò(Ü" 3›-Ð'ûð(úsÂ%Cà   C6Ã& C1Ã1C6có@—|j||«\}}|j|||«}|\}}}t||||«}t|tt d«f«s t d«‚| tjj||«}|j||«rU||jz|zd|gz}|    rdg|dd|
r|
|dd| r|j| «|jtjj|««    |tj j"k(}| dk(}|r|r |j$n%|j&n|r |j(n |j*dd}|ro|j,rct/|«\}}t1|«\}}t/|j,«\}}t/|j$«\}}t3||«}||z|z|z}t5||«}|j7||z«yt=j>d|«y#t8$r}t;|«‚d}~wwxYw)Nz%'output_dir' must be a string or NonerLz-grr.ri) rjrArÚ
isinstanceÚstrÚtypeÚ    TypeErrorrrÚjoinrlrmrNrQrRr r+Ú
EXECUTABLEr8r7r6r5r3rr#r)rrSr rrrn)rEÚ target_descrmrqrhrFrGrHÚexport_symbolsrnrXrYÚ
build_temprprZÚlib_optsÚld_argsÚ building_exeÚ
target_cxxÚlinkerrÚ    linker_neÚaixÚ    linker_naÚ_Úcompiler_cxx_neÚ linker_exe_neÚparamsr_s                             rÚlinkz Compiler.linkùs €ð #×3Ñ3°G¸ZÓHшØ×'Ñ'¨    °<ÐAUÓVˆ
Ø8BÑ5ˆ    <Ð!5ä" 4¨Ð7KÈYÓWˆÜ˜*¤s¬D°«JÐ&7Ô8ÜÐCÓDÐ DØ Ð !Ü Ÿg™gŸl™l¨:°ÓGˆOà ?‰?˜7 OÕ 4Ø § ¡ Ñ,¨xÑ7¸4ÀÐ:QÑQˆGÙØ#˜f˜˜ ÙØ+˜˜ ÙØ—‘˜~Ô.Ø K‰KœŸ™Ÿ™¨Ó8Ô 9ð %ð +¬d¯m©m×.FÑ.FÑF Ø(¨EÑ1
ñ$ñ-7T×(Ò(¸D¿OºOá0:˜$×,Ò,ÀÇÁÙð    ñ  $×"3Ò"3Ü%/°Ó%7‘NC˜Ü%/°    Ó%:‘NC˜Ü)3°D×4EÑ4EÓ)FÑ&AÜ'1°$×2EÑ2EÓ'FÑ$A}ä+¨I°}ÓEFØ  3™Y¨Ñ8¸6ÑAFä'¨°Ó8à—
‘
˜6 GÑ+Õ,ô I‰IÐ0°/Õ Bøô&ò %Ü “nÐ$ûð %úsÄC,HÈ    HÈ HÈHcó —d|zS)Nú-L©)rEÚdirs  rÚlibrary_dir_optionzCompiler.library_dir_option=ó €Øc‰zÐr cóª—tjd«}tjj    t j |«d«}d|vxsd|vS)NÚCCrÚgcczg++)rrBrrrÚshlexÚsplit)rEÚcc_varr1s   rÚ_is_gcczCompiler._is_gcc@sI€Ü×)Ñ)¨$Ó/ˆÜ—7‘7×#Ñ#¤E§K¡K°Ó$7¸Ñ$:Ó;ˆØ˜Ð Ò5 E¨XÐ$5Ð5r cól—tjdddk(r(ddlm}m}|«}|r||«ddgk\rd|zSd|zStjdd    d
k(rd |zStjddd k(r|j «rd ndd|zgSt jd«dk(rtdd|zg«Sd|zS)Nr;r<r)Úget_macosx_target_verÚ split_versioné
éz -Wl,-rpath,r‹éÚfreebsdz -Wl,-rpath=zhp-uxz-Wl,+sz+sÚGNULDÚyesz-Wl,--enable-new-dtagsz-Wl,-R)    ÚsysÚplatformÚdistutils.utilr˜r™r–rrBr
)rErr˜r™Úmacosx_target_vers     rÚruntime_library_dir_optionz#Compiler.runtime_library_dir_optionEsـô <‰<˜˜Ð ˜xÒ 'ß Ká 5Ó 7Ð Ù ¡]Ð3DÓ%EÈ"ÈaÈÒ%PØ$ sÑ*Ð*à˜c‘zÐ!Ü \‰\˜"˜1Ð  Ò *Ø  3Ñ&Ð &Ü \‰\˜"˜1Ð  Ò (à ŸL™LœN‘°Øs‘
ðð ô × #Ñ # GÓ ,°Ò 5Ü*à(Ø Ñ#ð,óð ð ˜c‘>Ð !r có —d|zS)Nz-lrŒ)rEÚlibs  rÚlibrary_optionzCompiler.library_optionmrr cóf—tjd«}tjd|«}tj
dk(xr<|xr8|j d«xs%|j d«xr|j d« }|r2tjj|jd«|dd«S|S)    a°
        macOS users can specify an alternate SDK using'-isysroot'.
        Calculate the SDK root if it is specified.
 
        Note that, as of Xcode 7, Apple SDKs may contain textual stub
        libraries with .tbd extensions rather than the normal .dylib
        shared libraries installed in /.  The Apple compiler tool
        chain handles this transparently but it can cause problems
        for programs that are being built with an SDK and searching
        for specific libraries.  Callers of find_library_file need to
        keep in mind that the base filename of the returned SDK library
        file might have a different extension from that of the library
        file installed on the running system, for example:
          /Applications/Xcode.app/Contents/Developer/Platforms/
              MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/
              usr/lib/libedit.tbd
        vs
          /usr/lib/libedit.dylib
        ÚCFLAGSz-isysroot\s*(\S+)r<z/System/z/usr/z /usr/local/r N) rrBÚreÚsearchr r¡rCrrrxÚgroup)rÚcflagsÚmatchÚ
apply_roots    rÚ _library_rootzCompiler._library_rootps£€ô*×)Ñ)¨(Ó3ˆÜ—    ‘    Ð.°Ó7ˆô L‰L˜HÑ $ò Øò 𗑘zÓ*òSØ—N‘N 7Ó+ÒQ°C·N±NÀ=Ó4QÐ0Qð     ñ9CŒrw‰w|‰|˜EŸK™K¨›N¨C°°¨GÓ4ÐKÈÐKr cóJ‡‡—ˆˆfd„dj«D«}t‰j|«}tjt
j jtj||««}tt
j j|«}t|d«S)zÛ
        Second-guess the linker with not much hard
        data to go on: GCC seems to prefer the shared library, so
        assume that *all* Unix C compilers do,
        ignoring even GCC's "-static" option.
        c3óD•K—|]}‰j‰|¬«–—Œy­w))Úlib_typeN)rk)Ú.0rvr¦rEs  €€rú    <genexpr>z-Compiler.find_library_file.<locals>.<genexpr>šs)øèø€ò
àð × !Ñ ! #°Ð !× 5ñ
ùsƒ zdylib xcode_stub shared staticN) r”Úmapr°Ú    itertoolsÚstarmaprrrxÚproductÚfilterÚexistsÚnext)rEÚdirsr¦rnÚ    lib_namesÚrootsÚsearchedÚfounds` `     rÚfind_library_filezCompiler.find_library_file“syù€ô
à8×>Ñ>Ó@ô
ˆ    ô
D×&Ñ&¨Ó-ˆä×$Ñ$¤R§W¡W§\¡\´9×3DÑ3DÀUÈIÓ3VÓWˆä”r—w‘w—~‘~ xÓ0ˆôE˜4ӠРr )NNNNN) rTzstr | os.PathLike[str]rUzstr | os.PathLike[str] | NonerVzlist[_Macro] | NonerWú"list[str] | tuple[str, ...] | NonerXzlist[str] | NonerYzIterable[str] | None)NFN)
NNNNNFNNNN)
rmzlist[str] | tuple[str, ...]rhz
str | NonerFrÃrGrÃrHrÃ)rruÚreturnzstr | list[str])F)Ú__name__Ú
__module__Ú __qualname__Ú compiler_typeÚ executablesr r¡Úsrc_extensionsÚ obj_extensionÚstatic_lib_extensionÚshared_lib_extensionÚdylib_lib_extensionÚxcode_stub_lib_extensionÚstatic_lib_formatÚshared_lib_formatÚdylib_lib_formatÚxcode_stub_lib_formatÚ exe_extensionrAr^rfrrr‰rŽr–r¤r§Ú staticmethodr°rÂÚ __classcell__)rJs@rr+r+ssÇø„Ø€MðؐFؐvؘØ!˜7ؘIÐ&Ø Ð+ؐfØ  )Ð,ؘ5MØñ €Kð ‡||BQИ8Ò#Ø!) 
ˆ HÑò?€NØ€MØÐØ ÐØ"ÐØ%ÐØ?HÐHÐÐHÐ)Ð,<Ø,ÐØ
‡||xÒØˆ Ø'ÐØ$ÐØ$Ðô =ð"6:Ø&*Ø;?Ø*.Ø/3ð#$à&ð#$ð3ð#$ð$ð    #$ð
9ð #$ð (ð #$ð-ó#$òJ $ðRVóCð:"&Ø8<Ø;?ØCGØØØØØØð>Cð-ð>Cð
ð >Cð 6ð >Cð9ð>CðAó>CòHò6ó
&"òPðñ Lóð L÷D!r r+)!Ú__doc__Ú
__future__rr·rrªr“r Úcollections.abcrÚrÚ_logrÚ _macos_compatrÚ    _modifiedr    Úcompatr
Úerrorsr r rrrrrrrr#r)r+rŒr rú<module>ràsgðñ õ#ãÛ    Û    Û Û
Ý$åÝÝ+ÝÝ-Ý(ÝßAÑA÷ñò,$ò$ $òô8s!ˆt}‰}õs!r