+
    VBi                        R t Rt^ RIt^ RIt]P                  R#8  d   ^ RIHt  ! R R4      tM^ RItR$R lt]P                  ! R4      t
]! R	4      t]! R
4      t]! R4      t]! R4      t]]8X  d   RtM)]P                  P!                  ]R,          4      ^ ,          t]! R]P"                  P%                  RR4      4      t]! R4      R,           ]P"                  P%                  RR4      ,           t]! R]P"                  P%                  R]4      4      t]! R4      t]! R4      t]! R4      t]P                  ! R4      tR tR tR tR%R ltR tR tR&R lt R&R lt!R'R lt"R t#R  t$]%R!8X  d   ]$! ]PL                  R",          4       R# R# )(z
Compile a Python script into an executable that embeds CPython.
Requires CPython to be built as a shared library ('libpythonX.Y').

Basic usage:

    python -m Cython.Build.BuildExecutable [ARGS] somefile.py
TN)	sysconfigc                   T   a  ] tR t^t o ]R 4       t]! ]P                  4      tRtV t	R# )r   c                >    V R 8X  g   Q h\         P                  ! 4       # )include)
_sysconfigget_python_inc)names   &A/usr/lib/python3.14/site-packages/Cython/Build/BuildExecutable.pyget_pathsysconfig.get_path   s    9$$$,,..     N)
__name__
__module____qualname____firstlineno__staticmethodr
   r   get_config_var__static_attributes____classdictcell__)__classdict__s   @r	   r   r      s)     		/ 
	/ &j&?&?@r   r    c                 B    \         P                  ! V 4      ;'       g    T# N)r   r   )r   defaults   &&r	   r   r      s    ##D)44W4r   r   LIBDIRLIBPLLIBRARY	LDLIBRARY:   NNCCCFLAGS LINKCCLINKFORSHAREDLIBSSYSLIBSEXEc                     \         '       d9   V'       d	   W,          p \        P                  P                  V R ,           4       R# R# )
N)DEBUGsysstderrwrite)msgargss   &*r	   _debugr0   6   s,    u*C

t$ r   c                     \        R \        4       \        R\        4       \        R\        4       \        R\        4       \        R\
        4       \        R\        4       \        R\        4       \        R\        4       \        R\        4       \        R	\        4       \        R
\        4       \        R\        4       R# )z
INCDIR: %szLIBDIR1: %szLIBDIR2: %sz	PYLIB: %szPYLIB_DYN: %szCC: %sz
CFLAGS: %sz
LINKCC: %szLINKFORSHARED: %szLIBS: %szSYSLIBS: %szEXE_EXT: %sN)r0   INCDIRLIBDIR1LIBDIR2PYLIB	PYLIB_DYNr    r!   r#   r$   r%   r&   EXE_EXTr   r   r	   dump_configr8   =   s{    
< 
='"
='"
;
?I&
8R
< 
< 
.
:t
='"
='"r   c                     . pR p\        V 4       FX  w  r4VP                  R4      '       d   VP                  V4       M(VR9   d   VP                  V4       MTpW^,           R  p  MTpKZ  	  \        R4      hWQV 3# )N-zno input file provided)z-Xz--directive)	enumerate
startswithappend
ValueError)r/   cy_argslast_argiarg
input_files   &     r	   _parse_argsrD   L   s    GHD/>>#NN3..NN3J!:D " 122$$r   c                     V'       d   R P                  V 4      p \        V 4       M\        R P                  V 4      4       ^ RIpVP                  WR7      pV'       d   \        P
                  ! V4       R# R# )r"   Nshell)joinr0   
subprocesscallr+   exit)cmdrG   rI   
returncodes   &&  r	   runcmdrN   _   sP    hhsmssxx}2J r   c           	         \        \        R V \        ,           V R,           R\        ,           R\        ,           .\
        ;'       d    R\
        ,           ;'       g)    \        P                  P                  \        \        4      .,           \        P                  4       ,           \        P                  4       ,           \        P                  4       ,           4       R# )-o.oz-Lz-lN)rN   r#   r7   r3   r4   r6   ospathrH   r5   r%   splitr&   r$   basenames   &r	   clinkrW   m   s    
FD(W,htmT'\4PW<X,,T)^LLWe0LMNZZ\#MMO,.;.A.A.CD Er   c           	          \        \        R RV R,           V R,           R\        ,           .\        P	                  4       ,           4       R# )z-crP   rQ   z.cz-IN)rN   r    r2   r!   rT   rU   s   &r	   ccompilerY   s   s.    
BdHTM8D=$-H6<<>YZr   c                    ^RI HpHpHp TP	                  \        T;'       g    R4      RV .,           4      w  r\        RVP                  V 4       VP                  WQ4      pVP                  ^ 8  d   \        P                  ! ^4       R# R# )   )VersionCmdLineMainz--embedzUsing Cython %s to compile %sNr   )Compilerr\   r]   r^   parse_command_linelistr0   versioncompile
num_errorsr+   rK   )rC   optionsr\   r]   r^   sourcesresults   &&     r	   	cycompilerh   w   sn    1111$w}}"2ET^H_2_`G
*GOOZH\\'+F1 r   c                 |    \        \        P                  P                  V 4      .\	        V4      ,           R R7       R# )FrF   N)rN   rR   rS   abspathra   )program_namer/   s   &&r	   	exec_filerl      s%    
BGGOOL)*T$Z7uEr   c                   \         P                  P                  V 4      ^ ,          pV\        ,           pV'       gM   \         P                  P	                  V4      \         P                  P	                  V 4      8X  d   \        R4      hV'       g   \         P                  P                  V4      '       du   \         P                  P                  V 4      '       dP   \         P                  P                  V 4      \         P                  P                  V4      8:  d   \        RV4       V# \        W4       \        V4       \        V4       V# )z]
Build an executable program from a Cython module.

Returns the name of the executable file.
z?Input and output file names are the same, refusing to overwritez'File is up to date, not regenerating %s)rR   rS   splitextr7   rj   r>   existsgetmtimer0   rh   rY   rW   )rC   compiler_argsforcerV   exe_files   &&&  r	   buildrt      s     ww
+A.H'!HRWW__X."''//*2MMZ[[bggnnX..277>>*3M3M  ,0@0@0JJ8(Cj(X	(OOr   c                6    \        V 4      w  r\        W4       R# )z
Build an executable program from a Cython module and run it.

Arguments after the module name will be passed verbatimly to the program.
N)_buildrl   )r/   rk   s   & r	   build_and_runrw      s      Ll!r   c                 :    \        V 4      w  rp \        W4      pW03# r   )rD   rt   )r/   rC   r?   rk   s   &   r	   rv   rv      s$     +D 1J-Lr   __main__:   NN)r   	   )r   )T)r   )r   F)'__doc__r*   r+   rR   version_info	distutilsr   r   r   r
   r2   r3   r4   r5   r6   rS   rn   environgetr    r!   r#   r$   r%   r&   r7   r0   r8   rD   rN   rW   rY   rh   rl   rt   rw   rv   r   argvr   r   r	   <module>r      s   	 
 	f1A A 5 
		I	&

"

!y!;'	I  2/2ID"**..r23		!C	'"**..2*F	F	"**..2">	?/f

#

"
"5
)%#%&E[F(" z
388B< r   