+
     hG  c                  sF   ^ RI Ht ^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHt ^ RIHt ^ RIHt ^ RIHtHt ]'       d   ^ RIHt  M ^ RI!Ht  ]"! R4       ]! R4       ^ RIH$t% R t&Rt'Rt(Rt)]PT                  R8X  d   Rt(M!]PV                  R8w  d    ^ RI,t,]-! ],R4      ;t(t'R t.R t/ ! R R] 4      t]('       g   ]PV                  R8X  d   R"R R llt0R# Rt)R"R  R! llt0R#   ]# d
    ^ RIHt   Li ; i  ]# d     L\i ; i)#    )annotationsN)IteratorEXTENSION_SUFFIXES)cache_from_source)Path)TYPE_CHECKING)Distribution)	BaseError)	ExtensionLibrary)log)new_compiler)customize_compilerget_config_var)	build_extzCython.Compiler.MainLDSHARED)_config_varsc                sx   \         P                  R 8X  dj   \        P                  ! 4       p R\        R&   R\        R&   R\        R&   \	        V 4       \        P
                  ! 4        \        P                  ! V4       R# \	        V 4       R#   \        P
                  ! 4        \        P                  ! T4       i ; i)darwinz0gcc -Wl,-x -dynamiclib -undefined dynamic_lookupr   z -dynamiclibZCCSHAREDz.dylibZSON)sysplatform_CONFIG_VARSZcopyr   ZclearZupdate)compilerZtmp   & A/usr/lib/python3.14/site-packages/setuptools/command/build_ext.py_customize_compiler_for_shlibr   )   s    
||x !
	% C $ (6L$!)Lx( $8$  $s   &B -B9FZsharedr   TZntZRTLD_NOWc                s"    \         '       d   V # R # ) )	have_rtld)Zs   &r   if_dlr   M   s    	1!r!    c                 sL    \          F  p RV 9   d   V u # V R8X  g   K  V u # 	  R# )z;Return the file extension for an abi3-compliant Extension()z.abi3z.pydNr   )Zsuffixs    r   get_abi3_suffixr    Q   s+    $fMvM	 %
 r   c                  s   ] tR t^[t$ R]R&   RtRtR tR R ltR R lt	R	 R
 lt
R R ltR R ltR tR R ltR tR tR R ltR tR R ltR R ltR R ltR R ltR tR  tR)R! R" lltR)R# R$ lltR% R& ltR'tR(# )*r   r   distributionFc                s    V P                   Ruqn         \        P                  ! V 4       Wn         V'       d   V P                  4        R# R# )z;Build extensions in build directory, then copy if --inplaceFN)inplace
_build_extruncopy_extensions_to_source)selfZold_inplacer   r   r$   Zbuild_ext.run`   s7    $(LL%!\t"**, r   c                    V ^8  d   QhRRRR/# )   extr
   returnztuple[str, str] Zformat   "r   __annotate__build_ext.__annotate__h   s     , ,Y ,? ,r   c                	s   V P                  VP                  4      pV P                  V4      pVP                  R 4      pR P	                  VRR 4      pVP                  V4      p\        P                  P	                  V\        P                  P                  V4      4      p\        P                  P	                  V P                  V4      p	W3# ).N)
get_ext_fullnamenameget_ext_filenamesplitjoinZget_package_dirospathbasename	build_lib)
r&   build_pyr)   fullnamefilenameZmodpathZpackageZpackage_dirinplace_fileregular_files
   &&&       r   _get_inplace_equivalentZ!build_ext._get_inplace_equivalenth   s    ((2((2..%((73B<(..w7ww||K1A1A(1KLww||DNNH=++r   c                   V ^8  d   QhRR/# r(   r*   Noner+   r,   r-   r   r.   r/   r   s     G G4 Gr   c                	s   V P                  R 4      pV P                   F  pV P                  W4      w  r4\        P                  P                  V4      '       g   VP                  '       g   V P                  WCV P                  R7       VP                  '       g   K~  V P                  W#4      pV P                  WRRR7       K  	  R# )r;   )ZlevelT)compileN)get_finalized_command
extensionsr@   r7   r8   existsZoptionalZ	copy_fileZverbose_needs_stub_get_equivalent_stub_write_stub_file)r&   r;   r)   r>   r?   inplace_stubs   &     r   r%   Z#build_ext.copy_extensions_to_sourcer   s    --j9??C)-)E)Eh)T&L
 ww~~l++3<<<|N#88K%%l%F #r   c               s$    V ^8  d   QhRRRRRR/# )r(   r)   r
   output_filestrr*   r+   r,   r-   r   r.   r/      s!     0 0	 0 0 0r   c                	s    \         P                  P                  V4      pVP                  P	                  R 4      w   rE\         P                  P                  W54       R2# )r0   .py)r7   r8   dirnamer3   Z
rpartitionr6   )r&   r)   rL   Zdir_Z_r3   s   &&&   r   rI   Zbuild_ext._get_equivalent_stub   sG    ww{+XX((-
1'',,t*+3//r   c               rA   )r(   r*   zIterator[tuple[str, str]]r+   r,   r-   r   r.   r/      s     4 4%> 4r   c              #  	s  "   V P                   '       g   R # V P                  R4      pV P                  R4      P                  ;'       g    RpV P                   Fn  pV P	                  W4      w  rEWT3x  VP
                  '       g   K/  V P                  W44      pV P                  W54      p\        WbR7      p\        WrR7      p	W3x  Kp  	  R # 5i)Nr;   install_libr   )Zoptimization)r"   rE   optimizerF   r@   rH   rI   _compiled_file_name)
r&   r;   Zoptr)   r>   r?   rK   Zregular_stubZinplace_cacheZoutput_caches
   &         r   _get_output_mappingZbuild_ext._get_output_mapping   s     |||--j9((7@@FFB??C)-)E)Eh)T&L..  $88K#88K 3L S2<R#33! #s   AC
9CACc               s     V ^8  d   QhRRRR/# )r(   r<   rM   r*   r+   r,   r-   r   r.   r/      s        r   c                	sj   \         P                  ! R 4      pV'       d6   \         P                  P                  ! VP	                  R4      !  V,           pMD\
        P                  ! W4      p\        R4      p\        V\        4      '       g   \        R4      hTpWP                  9   Ed   V P                  V,          p\        4       pVP                  '       d   V'       d   VR\        V4      )  V,           p\        V\        4      '       dB   \         P                  P!                  V4      w  ruV P"                  P%                  V\&        4      # \(        '       d[   VP*                  '       dI   \         P                  P	                  V4      w  r\         P                  P                  VRV,           4      # V# )ZSETUPTOOLS_EXT_SUFFIXr0   Z
EXT_SUFFIXzwConfiguration variable EXT_SUFFIX not found for this platform and environment variable SETUPTOOLS_EXT_SUFFIX is missingNzdl-)r7   Zgetenvr8   r6   r5   r#   r4   r   
isinstancerM   OSErrorext_mapr    Zpy_limited_apiZlenr   splitextshlib_compilerlibrary_filenamelibtype	use_stubs_links_to_dynamic)	r&   r<   Zso_extr=   Z
ext_suffixr)   Zabi3_suffixZfnZds	   &&       r   r4   Zbuild_ext.get_ext_filename   s8   23ww||X^^C%89FBH!224BH'5Jj#..P   F||#,,x(C)+K!!!k#Ns6{l3kA#w''''**84**;;BHHs444h/ww||Aurz22r   c                	sj    \         P                  ! V 4       R V n        . V n        / V n        RV n        R # )NF)r#   initialize_optionsrX   shlibsrV   editable_moder&   r   r   r]   Zbuild_ext.initialize_options   s.    %%d+""r   c               rA   rB   r+   r,   r-   r   r.   r/      s        $  r   c                	s\   \         P                  ! V 4       V P                  ;'       g    . V n        V P                  V P                  4       V P                   Uu. uF  p\	        V\
        4      '       g   K  VNK  	  upV n        V P                  '       d   V P                  4        V P                   F#  pV P                  VP                  4      Vn
        K%  	  V P                   EF  pVP                  pWP                  V&   WP                  VP                  R 4      R,          &   V P                  ;'       d    V P                  V4      ;'       g    RpT;'       d$    \        ;'       d    \	        V\
        4      '       * pW1n        WAn        V P#                  V4      ;qQn        \&        P(                  P+                  \&        P(                  P-                  V P.                  V4      4      pV'       d,   WaP0                  9  d   VP0                  P3                  V4       V'       g   EKF  \        '       g   EKU  \&        P4                  VP6                  9  g   EKw  VP6                  P3                  \&        P4                  4       EK  	  V P8                  '       d
   RV n        R# R# u upi )r0   FTNr1   )r#   finalize_optionsrF   Zcheck_extensions_listrT   r   r^   setup_shlib_compilerr2   r3   
_full_namerV   r5   links_to_dynamicr[   r\   rH   r4   
_file_namer7   r8   rO   r6   r:   library_dirsZappendcurdirruntime_library_dirsr_   r"   )r&   r)   r<   ZltdZnsr=   Zlibdir   &      r   ra   Zbuild_ext.finalize_options   s   ##D)////R""4??3&*ooRosC9QssoR;;;%%'??C!22388<CN #??C~~H%(LL" 58LL,R01++<<$"7"7"<EECCCCC:c7+C'CB$'! O(,(=(=h(GGH~WW__RWW\\$..(%KLFv%5%55  ''/syyRYYc6N6N%N((//		:# #& DL 1 Ss   J)8J)c                	s   \        V P                  V P                  V P                  R 7      ;qn        \        V4       V P                  e   VP                  V P                  4       V P                  e'   V P                   F  w  r#VP                  W#4       K  	  V P                  e%   V P                   F  pVP                  V4       K  	  V P                  e   VP                  V P                  4       V P                  e   VP                  V P                  4       V P                   e   VP#                  V P                   4       V P$                  e   VP'                  V P$                  4       \(        P+                  V4      Vn        R# ))r   dry_runforceN)r   r   rj   rk   rX   r   Zinclude_dirsZset_include_dirsZdefineZdefine_macroZundefZundefine_macro	librariesZset_librariesrf   Zset_library_dirsZrpathZset_runtime_library_dirsZlink_objectsZset_link_objectslink_shared_objectZ__get__)r&   r   r3   ZvalueZmacros   &    r   rb   Zbuild_ext.setup_shlib_compiler   s,   )5]]DLL

*
 	
& 	&h/(%%d&7&78;;"#{{%%d2  +::!''. $>>%""4>>2(%%d&7&78::!--djj9(%%d&7&78 '9&@&@&J#r   c                	sr    \        V\        4      '       d   VP                  # \        P                  ! W4      # N)rT   r   export_symbolsr#   get_export_symbols)r&   r)      &&r   rp   Zbuild_ext.get_export_symbols   s,    c7##%%%,,T77r   c               rA   rB   r+   r,   r-   r   r.   r/     s     & &d &r   c                	sX   VP                  4        V P                  p \        V\        4      '       d   V P                  V n        \
        P                  ! W4       VP                  '       d-   V P                  R 4      P                  pV P                  W14       W n        R#   Y n        i ; i)r;   N)Z_convert_pyx_sources_to_langr   rT   r   rX   r#   build_extensionrH   rE   r:   
write_stub)r&   r)   Z	_compilerr:      &&  r   rr   Zbuild_ext.build_extension  sz    ((*MM		&#w'' $ 3 3&&t1 66zBLL		/%MIMs   A;B! !B)c                s  aa \         P                  V P                   Uu. uF  q"P                  NK  	  up4      oRP	                  VP                  P                  R4      RR R.,           4      o\        ;QJ d*    VV3R lVP                   4       F  '       g   K   R# 	  R# ! VV3R lVP                   4       4      # u upi )z?Return true if 'ext' links to a dynamic lib in the same packager0   Nr   c              3  s<   <"   T F  pSV,           S9   x  K  	  R # 5irn   r+   ).0Zlibnamelibnamespkgs   & r   	<genexpr>Z-build_ext.links_to_dynamic.<locals>.<genexpr>  s     JM3=H,Ms   TFr1   )dictZfromkeysr^   rc   r6   r5   Zanyrl   )r&   r)   librv   rw   s   && @@r   rd   Zbuild_ext.links_to_dynamic  s    
 ==DKK!HKS..K!HIhhs~~++C0"5<=sJCMMJssJsJsJCMMJJJ "Is   C c               rA   r(   r*   z	list[str]r+   r,   r-   r   r.   r/     s     S S) Sr   c                	sR    . \         P                  ! V 4      OV P                  4       O# rn   )r#   get_source_files_get_internal_dependsr`   r   r   r|   Zbuild_ext.get_source_files  s&    R,,T2RT5O5O5QRRr   c               rA   )r(   r*   zIterator[str]r+   r,   r-   r   r.   r/     s     $" $"} $"r   c              #  sR  "   \        V P                  P                  ;'       g    \        P                  4      P                  4       pR V P                   4       pR R lpV F  p\        V4      pVP                  4       '       d   V! VR4       K/  RVP                  9   d   V! VR4       KK   W,          P                  RR7      p TP                  T4       TP                  4       x  K  	  R#   \         d    T! TR	4        K  i ; i  \         d    T! TR
4        K  i ; i5i)zAYield ``ext.depends`` that are contained by the project directoryc              3  sH   "   T F  qP                    F  q"x  K  	  K  	  R # 5irn   )depends)ru   r)   dep   &  r   rx   Z2build_ext._get_internal_depends.<locals>.<genexpr>  s     I/3[[c3[3/s    "c               s$    V ^8  d   QhRRRRRR/# )r(   	orig_pathrM   reasonr*   rC   r+   r,   r-   r   r.   Z5build_ext._get_internal_depends.<locals>.__annotate__   s!     	 	C 	 	 	r   c                s6    \         P                  ! R V V4       R# )zJdependency %s won't be automatically included in the manifest: the path %sN)r   info)r   r   rq   r   skipZ-build_ext._get_internal_depends.<locals>.skip   s    HH8	r   zmust be relativez..zcan't have `..` segmentsT)Zstrictzdoesn't existzmust be inside the project rootN)r   r!   Zsrc_rootr7   rg   ZresolverF   Zis_absoluteZpartsrU   Zrelative_toZ
ValueErrorZas_posix)r&   Zproject_rootr~   r   r   r8   Zresolvedri   r   r}   Zbuild_ext._get_internal_depends  s    D--66CC"))DLLNI$//I	 C9D!!S,-tzz!S45(/888E
$$\2
 --/!/   S/*  S;<sH   B,D'/C1DD'1D	D'D		D'D$ D'#D$$D'c               rA   r{   r+   r,   r-   r   r.   r/   A  s     Q QY Qr   c                	s    V P                   '       d(   \        V P                  4       P                  4       4      # \	        \
        P                  ! V 4      V P                  4       ,           4      # rn   )r"   listget_output_mappingZkeyssortedr#   get_outputs_build_ext__get_stubs_outputsr`   r   r   r   Zbuild_ext.get_outputsA  sL    <<<//166899j,,T2T5M5M5OOPPr   c               rA   )r(   r*   zdict[str, str]r+   r,   r-   r   r.   r/   F  s     9 9N 9r   c                sP    V P                  4       p\        \        VR R7      4      # )z1See :class:`setuptools.commands.build.SubCommand`c                s    V ^ ,          # )r    r+   )xr   r   Z<lambda>Z.build_ext.get_output_mapping.<locals>.<lambda>I  s    !A$r   )Zkey)rS   ry   r   )r&   Zmappingr   r   r   Zbuild_ext.get_output_mappingF  s"    **,F7788r   c                	s   a  V 3R  lS P                    4       p\        P                  ! VS P                  4       4      p\	        R V 4       4      # )c              3  s   <"   T F^  pVP                   '       g   K  \        P                  P                  ! SP                  .VP
                  P                  R 4      O5!  x  K`  	  R# 5i)r0   N)rH   r7   r8   r6   r:   rc   r5   )ru   r)   r&   s   & r   rx   0build_ext.__get_stubs_outputs.<locals>.<genexpr>M  sJ      
& EBGGLLD#..*>*>s*CDD&s   A)AA)c              3  s6   "   T F  w  rW,           x  K  	  R # 5irn   r+   )ru   ZbaseZfnextr   r   rx   r   T  s     :E[TDLLEs   )rF   	itertoolsZproduct!_build_ext__get_output_extensionsr   )r&   Zns_ext_basesZpairss   f  r   Z__get_stubs_outputsZbuild_ext.__get_stubs_outputsK  sD    

 !!,0L0L0NO:E:::r   c              #  	sl   "   R x  Rx  V P                  R4      P                  '       d   Rx  R# R# 5i)rN   z.pycr;   z.pyoN)rE   rQ   r`   r   r   Z__get_output_extensionsZ!build_ext.__get_output_extensionsV  s0     %%j1:::L ;s   24c               rA   rB   r+   r,   r-   r   r.   r/   \  s     7 7D 7r   c                	s    \         P                  P                  ! V.VP                  P	                  R 4      O5!  R,           pV P                  WBV4       R# )r0   rN   N)r7   r8   r6   rc   r5   rJ   )r&   
output_dirr)   rD   	stub_files   &&&& r   rs   Zbuild_ext.write_stub\  s=    GGLLHcnn.B.B3.GH5P	ig6r   c               r'   )r(   r   rM   r)   r
   r+   r,   r-   r   r.   r/   `  s      5  5#  5I  5r   c                	s   \         P                  ! R VP                  V4       V'       d8   \        P                  P                  V4      '       d   \        VR,           4      hV P                  '       g   \        VRRR7      ;_uu_ 4       pRP                  RRR\        R	4      ,           R
\        P                  P                  VP                  4      : R2RRR\        R4      RRR\        R4      RRRRR\        R4      RRR.4      pVP                  V4       RRR4       V'       d   V P                  V4       R# R#   + '       g   i     L-; i)z writing stub loader for %s to %sz already exists! Please delete.Zwzutf-8)ZencodingZ
zdef __bootstrap__():z-   global __bootstrap__, __file__, __loader__z0   import sys, os, pkg_resources, importlib.utilz, dlz7   __file__ = pkg_resources.resource_filename(__name__,Z)z   del __bootstrap__z    if '__loader__' in globals():z       del __loader__z#   old_flags = sys.getdlopenflags()z   old_dir = os.getcwd()z   try:z(     os.chdir(os.path.dirname(__file__))z$     sys.setdlopenflags(dl.RTLD_NOW)z3     spec = importlib.util.spec_from_file_location(z#                __name__, __file__)z0     mod = importlib.util.module_from_spec(spec)z!     spec.loader.exec_module(mod)z   finally:z"     sys.setdlopenflags(old_flags)z     os.chdir(old_dir)z__bootstrap__()r   N)r   r   rc   r7   r8   rG   r	   rj   Zopenr6   r   r9   re   Zwrite_compile_and_remove_stub)r&   r   r)   rD   ZfZcontents   &&&&  r   rJ   Zbuild_ext._write_stub_file`  s   3S^^YOrww~~i00I(IIJJ|||iw771))*CFvV!!#!1!1#..!A DAG*6+?@.>@AI9F7!>?,%-% 0  3 84 )))4 5 87s   
BD>>E	c               rA   )r(   r   rM   r+   r,   r-   r   r.   r/     s     ! !# !r   c                	sT   ^ RI Hp V! V.^ RV P                  R7       V P                  R4      P                  pV^ 8  d   V! V.VRV P                  R7       \
        P                  P                  V4      '       d-   V P                  '       g   \
        P                  ! V4       R# R# R# )r    )byte_compileT)rQ   rk   rj   rP   N)	Zdistutils.utilr   rj   rE   rQ   r7   r8   rG   Zunlink)r&   r   r   rQ   rt   r   r   Z"build_ext._compile_and_remove_stub  s    /i[1D$,,O--m<EEa<!	 77>>)$$T\\\IIi  .:$r   )r   r_   rV   rF   r"   rX   r^   N)F)Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__annotations__r_   r"   r$   r@   r%   rI   rS   r4   r]   ra   rb   rp   rr   rd   r|   r}   r   r   r   r   rs   rJ   r   Z__static_attributes__r+   r   r   r   r   [   s    MG-,G"0
426# >K68
&KS$"LQ
9
	;7 5D! !r   r   c               r'   r(   debugZboolr*   rC   r+   r,   r-   r   r.   r.     s      
 
 
 

r   c                sT    V P                  V P                  VVVVVVVVV	V
VV4       R # rn   )ZlinkZSHARED_LIBRARY)r&   objectsoutput_libnamer   rl   rf   rh   ro   r   extra_preargsextra_postargs
build_temptarget_langs   &&&&&&&&&&&&&r   rm   rm     s=     			 	
r   Zstaticc               r'   r   r+   r,   r-   r   r.   r.     s$     R R R 
Rr   c                s   Ve   Q h\         P                  P                  V4      w  r=\         P                  P                  V4      w  rV P	                  R4      P                  R4      '       d
   VR,          pV P                  WW8V4       R # )Nr   rz   :i   NN)r7   r8   r5   rW   rY   Z
startswithZcreate_static_lib)r&   r   r   r   rl   rf   rh   ro   r   r   r   r   r   r=   r9   Z_exts   &&&&&&&&&&&&&   r   rm   rm     st    * !!!!ww}}^<
))(3  %0077  |Hw*[Qr   )
NNNNNFNNNN)1Z
__future__r   r   r7   r   Zcollections.abcr   Zimportlib.machineryr   Zimportlib.utilr   rR   Zpathlibr   Ztypingr   Zsetuptools.distr   Zsetuptools.errorsr	   Zsetuptools.extensionr
   r   Z	distutilsr   Zdistutils.ccompilerr   Zdistutils.sysconfigr   r   Zdistutils.command.build_extr   r#   ZCython.Distutils.build_extZ
__import__ZImportErrorr   r   r   r   r[   rZ   r   r3   ZdlZhasattrr   r    rm   r+   r   r   <module>r      s   "  	 
 $ 2 C    ( ' 3  , BCHF 	)*
 z  =%* 		
<<8IWW_ 'J 77	I
"t!
 t!n	 4
 
B GR Rs  HGHT  s$   )D 4D DDD D 