
    nj&                        S r SSKJr  SSKrSSKJr  SSKJrJr  SSK	J
r
  \
" 5        " S S	5      5       r\" S
 \" \5       5       5      r S rg)zmdistutils.extension

Provides the Extension class, used to describe C/C++ extension
modules in setup scripts.    )annotationsN)Iterable)fieldfields   )lenient_dataclassc                  x   \ rS rSr% SrS\S'    S\S'    \" \S9rS\S	'    \" \S9r	S
\S'    \" \S9r
S\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    \" \S9rS\S'    SrS\S'    SrS\S'    S rSrg)	Extension   zJust a collection of attributes that describes an extension
module and everything needed to build it (hopefully in a portable
way, but there are hooks that let you be as unportable as you need).
strnamez Iterable[str | os.PathLike[str]]sources)default_factoryz	list[str]include_dirszlist[tuple[str, str | None]]define_macrosundef_macroslibrary_dirs	librariesruntime_library_dirsextra_objectsextra_compile_argsextra_link_argsexport_symbols	swig_optsdependsNz
str | NonelanguageFbooloptionalc                D   [        U R                  [        5      (       d  [        S5      e[        U R                  [        5      (       a  [        S5      e [        [        [        R                  U R                  5      5      U l        g ! [         a    [        S5      ef = f)Nz'name' must be a stringzJ'sources' must be an iterable of strings or PathLike objects, not a stringz<'sources' must be an iterable of strings or PathLike objects)	
isinstancer   r   	TypeErrorr   listmaposfspath)selfs    [/var/www/html/pdf-tiff/venv/lib/python3.13/site-packages/setuptools/_distutils/extension.py__post_init__Extension.__post_init__   s    $))S))566 dllC((\ 
	BIIt|| <=DL 	N 	s   2B	 	B)r   )__name__
__module____qualname____firstlineno____doc____annotations__r   r"   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r(   __static_attributes__     r'   r
   r
      sB   
 I
 .- $D9L)9
 382MM/M $D9L)9/#D9L)9H 6Iy6H&+D&A)A
  %T:M9: %*$$?	? "'t!<OY< !&d ;NI; !6Iy6
 t4GY45Hj
 Hd
r2   r
   c              #  8   #    U  H  oR                   v   M     g 7f)N)r   ).0fs     r'   	<genexpr>r6      s     0/ff/s   c           	        SSK JnJnJn  SSKJn  SSKJn  U" U 5      nU" U SSSSSS9n / n UR                  5       n	U	c  GOUR                  U	5      (       a  M.  U	S   U	S   s=:X  a  S	:X  a  O  OUR                  S
U	 S35        M[  U" X5      n	U" U	5      n
U
S   n[        U/ 5      nSnU
SS  GHX  nUb  UR                  U5        SnM  [        R                  R                  U5      S   nUSS nUSS nUS;   a  UR                   R                  U5        Mk  US:X  a  UR"                  R                  U5        M  US:X  a^  UR%                  S5      nUS:X  a  UR&                  R                  US45        M  UR&                  R                  USU UUS-   S 45        M  US:X  a  UR(                  R                  U5        GM  US:X  a  UR*                  R                  U5        GM:  US:X  a  UR,                  R                  U5        GM^  US:X  a  UR.                  R                  U5        GM  US:X  a  UR0                  R                  U5        GM  US:X  a  UR0                  nGM  US:X  a  UR2                  nGM  US:X  a  UR*                  nGM  US:X  a4  UR2                  R                  U5        U(       d  UR2                  nGM  GM  US;   a  UR4                  R                  U5        GMC  UR                  SU S
35        GM[     UR                  U5        GM  UR7                  5         U$ ! UR7                  5         f = f)z3Reads a Setup file and returns Extension instances.r   )_variable_rxexpand_makefile_varsparse_makefile)TextFile)split_quotedT)strip_commentsskip_blanks
join_lines	lstrip_ws	rstrip_wsN*'z' lines not handled yetr      )z.cz.ccz.cppz.cxxz.c++z.mz.mmz-Iz-D=z-Uz-Cz-lz-Lz-Rz-rpathz-Xlinkerz
-Xcompilerz-u)z.az.soz.slz.oz.dylibzunrecognized argument ')distutils.sysconfigr8   r9   r:   distutils.text_filer;   distutils.utilr<   readlinematchwarnr
   appendr$   pathsplitextr   r   findr   r   r   r   r   r   r   r   close)filenamer8   r9   r:   r;   r<   varsfile
extensionslinewordsmoduleextappend_next_wordwordsuffixswitchvalueequalss                      r'   read_setup_filer`      s   VV,+ (#D DQ
==?D|!!$''Aw$r()c)		AdV#:;<'3D &E 1XFFB'C#ab	#/$++D1'+$))$/2aQROO KK&&t,t^$$++E2t^"ZZ_F|))00%?))00%&/5RSCV1WXt^$$++E2t^**11$7t^MM((/t^$$++E2t^,,33E:X%'*'?'?$Z''*':':$\)'*'='=$t^''..t4 +.+>+>( !CC
 %%,,T2II 7vQ?@e "h c"Y \ 	

 	

s   K6L3 3M)r.   
__future__r   r$   collections.abcr   dataclassesr   r   
_dataclassr   r
   tuple_safer`   r1   r2   r'   <module>rg      s[   
 # 	 $ % ) y y yx 	0fY/00 <fr2   