+
    i^G                    P   ^ RI Ht ^ RIt^ RI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+]PX                  R8X  d   Rt*M!]PZ                  R8w  d    ^ RI.t.]/! ].R4      ;t*t)R t0 ! R R]"4      t!]*'       g   ]PZ                  R8X  d   R!R R llt1R# Rt+R!R R  llt1R#   ]% d
    ^ RI H!t"  Li ; i  ]% d     LYi ; 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                x   \         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 -dynamiclibCCSHAREDz.dylibSON)sysplatform_CONFIG_VARScopyr   clearupdate)compilertmps   & h/home/piyush/.cache/uv/builds-v0/.tmpglzPEw/lib/python3.14/site-packages/setuptools/command/build_ext.py_customize_compiler_for_shlibr"   +   s    
||x !
	% C $ (6L$!)Lx( $8$  $s   &B -B9Fsharedr   TntRTLD_NOWc                 L    \          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   )suffixs    r!   get_abi3_suffixr(   O   s+    $fMvM	 %
     c                     ] tR t^Yt$ R]R&   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 R ltR tR R ltR R l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                   V ^8  d   QhRR/#    returnNone )formats   "r!   __annotate__build_ext.__annotate__^   s     - -T -r)   c                    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)selfold_inplaces   & r!   r8   build_ext.run^   s7    $(LL%!\t"**, r)   c                    V ^8  d   QhRRRR/# )r.   extr   r/   ztuple[str, str]r1   )r2   s   "r!   r3   r4   f   s     , ,Y ,? ,r)   c                	   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joinget_package_dirospathbasename	build_lib)
r:   build_pyr>   fullnamefilenamemodpathpackagepackage_dirinplace_fileregular_files
   &&&       r!   _get_inplace_equivalent!build_ext._get_inplace_equivalentf   s    ((2((2..%((73B<(..w7ww||K1A1A(1KLww||DNNH=++r)   c                   V ^8  d   QhRR/# r-   r1   )r2   s   "r!   r3   r4   p   s     G G4 Gr)   c                	   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# )rL   )levelT)compileN)get_finalized_command
extensionsrT   rH   rI   existsoptional	copy_fileverbose_needs_stub_get_equivalent_stub_write_stub_file)r:   rL   r>   rR   rS   inplace_stubs   &     r!   r9   #build_ext.copy_extensions_to_sourcep   s    --j9??C)-)E)Eh)T&L
 ww~~l++3<<<|N#88K%%l%F #r)   c               $    V ^8  d   QhRRRRRR/# )r.   r>   r   output_filestrr/   r1   )r2   s   "r!   r3   r4      s!     0 0	 0 0 0r)   c                	    \         P                  P                  V4      pVP                  P	                  R 4      w   rE\         P                  P                  W54       R2# )r@   .py)rH   rI   dirnamerC   
rpartitionrF   )r:   r>   rf   dir__rC   s   &&&   r!   ra   build_ext._get_equivalent_stub   sG    ww{+XX((-
1'',,t*+3//r)   c                   V ^8  d   QhRR/# )r.   r/   zIterator[tuple[str, str]]r1   )r2   s   "r!   r3   r4      s     4 4%> 4r)   c              #  	  "   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)NrL   install_lib )optimization)r6   rZ   optimizer[   rT   r`   ra   _compiled_file_name)
r:   rL   optr>   rR   rS   rc   regular_stubinplace_cacheoutput_caches
   &         r!   _get_output_mapping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                    V ^8  d   QhRRRR/# )r.   rM   rg   r/   r1   )r2   s   "r!   r3   r4      s        r)   c                	j   \         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# )SETUPTOOLS_EXT_SUFFIXr@   
EXT_SUFFIXzwConfiguration variable EXT_SUFFIX not found for this platform and environment variable SETUPTOOLS_EXT_SUFFIX is missingNzdl-)rH   getenvrI   rF   rE   r7   rD   r   
isinstancerg   OSErrorext_mapr(   py_limited_apilenr   splitextshlib_compilerlibrary_filenamelibtype	use_stubs_links_to_dynamic)	r:   rM   so_extrN   
ext_suffixr>   abi3_suffixfnds	   &&       r!   rD   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                	j    \         P                  ! V 4       R V n        . V n        / V n        RV n        R # )NF)r7   initialize_optionsr   shlibsr   editable_moder:   s   &r!   r   build_ext.initialize_options   s.    %%d+""r)   c                   V ^8  d   QhRR/# r-   r1   )r2   s   "r!   r3   r4      s        $  r)   c                	\   \         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 )r@   FTNrA   )r7   finalize_optionsr[   check_extensions_listr   r   r   setup_shlib_compilerrB   rC   
_full_namer   rE   links_to_dynamicr   r   r`   rD   
_file_namerH   rI   rj   rF   rK   library_dirsappendcurdirruntime_library_dirsr   r6   )r:   r>   rM   ltdnsrN   libdirs   &      r!   r   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                   V ^8  d   QhRR/# r-   r1   )r2   s   "r!   r3   r4      s     K Kd Kr)   c                	   \        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   forceN)r   r   r   r   r"   include_dirsset_include_dirsdefinedefine_macroundefundefine_macro	librariesset_librariesr   set_library_dirsrpathset_runtime_library_dirslink_objectsset_link_objectslink_shared_object__get__)r:   r   rC   valuemacros   &    r!   r   build_ext.setup_shlib_compiler   s&   )5]]$***
 	
& 	&h/(%%d&7&78;;"#{{%%d2  +::!''. $>>%""4>>2(%%d&7&78::!--djj9(%%d&7&78 '9&@&@&J#r)   c                	r    \        V\        4      '       d   VP                  # \        P                  ! W4      # N)r   r   export_symbolsr7   get_export_symbols)r:   r>   s   &&r!   r   build_ext.get_export_symbols   s,    c7##%%%,,T77r)   c                   V ^8  d   QhRR/# r-   r1   )r2   s   "r!   r3   r4      s     & &d &r)   c                	X   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)rL   N)_convert_pyx_sources_to_langr   r   r   r   r7   build_extensionr`   rZ   rK   
write_stub)r:   r>   	_compilerrK   s   &&  r!   r   build_ext.build_extension   sz    ((*MM		&#w'' $ 3 3&&t1 66zBLL		/%MIMs   A;B! !B)c                  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 packager@   Nrr   c              3  <   <"   T F  pSV,           S9   x  K  	  R # 5ir   r1   ).0libnamelibnamespkgs   & r!   	<genexpr>-build_ext.links_to_dynamic.<locals>.<genexpr>  s     JM3=H,Ms   TFrA   )dictfromkeysr   r   rF   rE   anyr   )r:   r>   libr   r   s   && @@r!   r   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                   V ^8  d   QhRR/# r.   r/   z	list[str]r1   )r2   s   "r!   r3   r4     s     S S) Sr)   c                	R    . \         P                  ! V 4      OV P                  4       O# r   )r7   get_source_files_get_internal_dependsr   s   &r!   r   build_ext.get_source_files  s&    R,,T2RT5O5O5QRRr)   c                   V ^8  d   QhRR/# )r.   r/   zIterator[str]r1   )r2   s   "r!   r3   r4     s     $" $"} $"r)   c              #  R  "   \        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  H   "   T F  qP                    F  q"x  K  	  K  	  R # 5ir   )depends)r   r>   deps   &  r!   r   2build_ext._get_internal_depends.<locals>.<genexpr>  s     I/3[[c3[3/s    "c               $    V ^8  d   QhRRRRRR/# )r.   	orig_pathrg   reasonr/   r0   r1   )r2   s   "r!   r3   5build_ext._get_internal_depends.<locals>.__annotate__  s!     	 	C 	 	 	r)   c                6    \         P                  ! R V V4       R# )zJdependency %s won't be automatically included in the manifest: the path %sN)r   info)r   r   s   &&r!   skip-build_ext._get_internal_depends.<locals>.skip  s    HH8	r)   zmust be relativez..zcan't have `..` segmentsT)strictzdoesn't existzmust be inside the project rootN)r   r+   src_rootrH   r   resolver[   is_absolutepartsr   relative_to
ValueErroras_posix)r:   project_rootr   r   r   rI   resolveds   &      r!   r   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                   V ^8  d   QhRR/# r   r1   )r2   s   "r!   r3   r4   ?  s     Q QY Qr)   c                	    V P                   '       d(   \        V P                  4       P                  4       4      # \	        \
        P                  ! V 4      V P                  4       ,           4      # r   )r6   listget_output_mappingkeyssortedr7   get_outputs_build_ext__get_stubs_outputsr   s   &r!   r   build_ext.get_outputs?  sL    <<<//166899j,,T2T5M5M5OOPPr)   c                   V ^8  d   QhRR/# )r.   r/   zdict[str, str]r1   )r2   s   "r!   r3   r4   D  s     A AN Ar)   c                v    V P                  4       p\        \        V\        P                  ! ^ 4      R7      4      # )z1See :class:`setuptools.commands.build.SubCommand`)key)rz   r   r   operator
itemgetter)r:   mappings   & r!   r   build_ext.get_output_mappingD  s-    **,F7(;(;A(>?@@r)   c                	   a  V 3R  lS P                    4       p\        P                  ! VS P                  4       4      p\	        R V 4       4      # )c              3     <"   T F^  pVP                   '       g   K  \        P                  P                  ! SP                  .VP
                  P                  R 4      O5!  x  K`  	  R# 5i)r@   N)r`   rH   rI   rF   rK   r   rE   )r   r>   r:   s   & r!   r   0build_ext.__get_stubs_outputs.<locals>.<genexpr>K  sJ      
& EBGGLLD#..*>*>s*CDD&s   A)AA)c              3  6   "   T F  w  rW,           x  K  	  R # 5ir   r1   )r   basefnexts   &  r!   r   r  R  s     :E[TDLLEs   )r[   	itertoolsproduct!_build_ext__get_output_extensionsr   )r:   ns_ext_basespairss   f  r!   __get_stubs_outputsbuild_ext.__get_stubs_outputsI  sD    

 !!,0L0L0NO:E:::r)   c              #  	l   "   R x  Rx  V P                  R4      P                  '       d   Rx  R# R# 5i)ri   z.pycrL   z.pyoN)rZ   rt   r   s   &r!   __get_output_extensions!build_ext.__get_output_extensionsT  s0     %%j1:::L ;s   24c                   V ^8  d   QhRR/# r-   r1   )r2   s   "r!   r3   r4   Z  s     7 7D 7r)   c                	    \         P                  P                  ! V.VP                  P	                  R 4      O5!  R,           pV P                  WBV4       R# )r@   ri   N)rH   rI   rF   r   rE   rb   )r:   
output_dirr>   rY   	stub_files   &&&& r!   r   build_ext.write_stubZ  s=    GGLLHcnn.B.B3.GH5P	ig6r)   c                    V ^8  d   QhRRRR/# )r.   r  rg   r>   r   r1   )r2   s   "r!   r3   r4   ^  s     $5 $5# $5I $5r)   c                	d   \         P                  ! R VP                  V4       V'       d8   \        P                  P                  V4      '       d   \        VR,           4      h\        VRRR7      ;_uu_ 4       p\        P                  ! R\        P                  P                  VP                  4      : R24      P                  4       P                  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.wzutf-8)encodinga  
                def __bootstrap__():
                   global __bootstrap__, __file__, __loader__
                   import sys, os, importlib.resources as irs, importlib.util
                #rtld   import dl
                   with irs.files(__name__).joinpath(
                     a;  ) as __file__:
                      del __bootstrap__
                      if '__loader__' in globals():
                          del __loader__
                #rtld      old_flags = sys.getdlopenflags()
                      old_dir = os.getcwd()
                      try:
                        os.chdir(os.path.dirname(__file__))
                #rtld        sys.setdlopenflags(dl.RTLD_NOW)
                        spec = importlib.util.spec_from_file_location(
                                   __name__, __file__)
                        mod = importlib.util.module_from_spec(spec)
                        spec.loader.exec_module(mod)
                      finally:
                #rtld        sys.setdlopenflags(old_flags)
                        os.chdir(old_dir)
                __bootstrap__()
                z#rtldN)r   r   r   rH   rI   r\   r   opentextwrapdedentrJ   r   lstripreplace	have_rtldwrite_compile_and_remove_stub)r:   r  r>   rY   fcontents   &&&&  r!   rb   build_ext._write_stub_file^  s    3S^^YOrww~~i00I(IIJJ)S733q gg&&s~~69 :2 ']";<7 : GGG= 4> )))4 ? 43s   8BDD/	c                   V ^8  d   QhRR/# )r.   r  rg   r1   )r2   s   "r!   r3   r4     s     ! !# !r)   c                	    ^ RI Hp V! V.^ RR7       V P                  R4      P                  pV^ 8  d   V! V.VRR7       \        P
                  P                  V4      '       d   \        P                  ! V4       R# R# )r   )byte_compileT)rt   r   rq   N)distutils.utilr+  rZ   rt   rH   rI   r\   unlink)r:   r  r+  rt   s   &&  r!   r%  "build_ext._compile_and_remove_stub  si    /i[1D9--m<EEa<!
 77>>)$$IIi  %r)   )r   r   r   r[   r6   r   r   N)F)__name__
__module____qualname____firstlineno____annotations__r   r6   r8   rT   r9   ra   rz   rD   r   r   r   r   r   r   r   r   r   r   r   r  r   rb   r%  __static_attributes__r1   r)   r!   r   r   Y   s    MG-,G"0
426# >K68
&KS$"LQ
A
	;7$5L! !r)   r   c                    V ^8  d   QhRRRR/# r.   debugboolr/   r0   r1   )r2   s   "r!   r3   r3     s      
 
 
 

r)   c                T    V P                  V P                  VVVVVVVVV	V
VV4       R # r   )linkSHARED_LIBRARY)r:   objectsoutput_libnamer  r   r   r   r   r7  extra_preargsextra_postargs
build_temptarget_langs   &&&&&&&&&&&&&r!   r   r     s=     			 	
r)   staticc                    V ^8  d   QhRRRR/# r6  r1   )r2   s   "r!   r3   r3     s$     R R R 
Rr)   c                   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 # )Nxr   :   NN)rH   rI   rE   r   r   
startswithcreate_static_lib)r:   r<  r=  r  r   r   r   r   r7  r>  r?  r@  rA  rN   rJ   _exts   &&&&&&&&&&&&&   r!   r   r     st    * !!!!ww}}^<
))(3  %0077  |Hw*[Qr)   )
NNNNNFNNNN)2
__future__r   r  r  rH   r   r  collections.abcr   importlib.machineryr   importlib.utilr   ru   pathlibr   typingr	   setuptools.distr
   setuptools.errorsr   setuptools.extensionr   r   	distutilsr   distutils.ccompilerr   distutils.sysconfigr   r   distutils.command.build_extr   r7   Cython.Distutils.build_ext
__import__ImportErrorr   r   r"   r#  r   r   r   rC   dlhasattrr(   r   r1   r)   r!   <module>r\     s   "   	 
  $ 2 C    ( ' 3  , BCHF 	)*
 z  =%* 		
<<8IWW_ 'J 77	I
w!
 w!t	 4
 
B GR Rq  HGHT  s$   1D <D DDD%$D%