
    ǆi                         S SK Js  Jr  S SKJr  S SKJr   S SKJ	r	   " S S\R                  5      rg! \
 a	    SSKJ	r	   N$f = f)    N)DistutilsSetupError)log)newer_pairwise_group   c                       \ rS rSrSrS rSrg)
build_clib   aF  
Override the default build_clib behaviour to do the following:

1. Implement a rudimentary timestamp-based dependency system
   so 'compile()' doesn't run every time.
2. Add more keys to the 'build_info' dictionary:
    * obj_deps - specify dependencies for each object compiled.
                 this should be a dictionary mapping a key
                 with the source filename to a list of
                 dependencies. Use an empty string for global
                 dependencies.
    * cflags   - specify a list of additional flags to pass to
                 the compiler.
c           
         U GH;  u  p#UR                  S5      nUb  [        U[        [        45      (       d  [	        SU-  5      e[        [        U5      5      n[        R                  " SU5        UR                  S[        5       5      n[        U[        5      (       d  [	        SU-  5      e/ nUR                  S[        5       5      n[        U[        [        45      (       d  [	        SU-  5      eU H|  nU/n	U	R                  U5        UR                  U[        5       5      n
[        U
[        [        45      (       d  [	        SU-  5      eU	R                  U
5        UR                  U	5        M~     U R                  R                  UU R                  S9n[        Xk5      / / 4:w  ae  UR                  S5      nUR                  S	5      nUR                  S
5      nU R                  R                  UU R                  UUUU R                   S9  U R                  R#                  XU R$                  U R                   S9  GM>     g )Nsourceszfin 'libraries' option (library '%s'), 'sources' must be present and must be a list of source filenameszbuilding '%s' libraryobj_depsz\in 'libraries' option (library '%s'), 'obj_deps' must be a dictionary of type 'source: list' )
output_dirmacrosinclude_dirscflags)r   r   r   extra_postargsdebug)r   r   )get
isinstancelisttupler   sortedr   infodictextendappendcompilerobject_filenames
build_tempr   compiler   create_static_libr   )self	librarieslib_name
build_infor   r   dependenciesglobal_depssourcesrc_deps
extra_depsexpected_objectsr   r   r   s                  m/home/dmtnaga/Documents/work/airagagent/rag_env/lib/python3.13/site-packages/setuptools/command/build_clib.pybuild_librariesbuild_clib.build_libraries   s#   $- H nnY/Gj4-&H&H)13;< 
 T']+GHH,h7
 "~~j$&9Hh--)*,45 
 L #,,r462KkD%=99)*,45  ""8,%\\&$&9
!*tUm<<-.089 
 
+##H- "  $}}==??  >  
 $LCBxO $1)~~n=#1%%#!!-#)** &  MM++ tdjj , S %.     N)__name__
__module____qualname____firstlineno____doc__r-   __static_attributes__r0   r/   r,   r   r      s    Lr/   r   )distutils.command.build_clibcommandr   origdistutils.errorsr   	distutilsr   distutils._modifiedr   ImportError_distutils._modifiedr0   r/   r,   <module>r?      s?    + + 0 <8\ \  <;<s   3 AA