jI d Z ddlZddlZddlZddlZddlmZmZmZ ddl m Z ddlmZ ddl mZ ddlmZ d Z ee d e dd Z ee de dS ) z> unixccompiler - can handle very long argument lists for ar. N)CompileErrorDistutilsExecErrorLibError) UnixCCompiler)replace_method)_commandline_dep_string)logc | j }|d dk r?d|v r| d d|v r| d |dgz }|| _ dt j v rddlm} t j t j t j d } t j t j |d d } t j | j }| |vr/| | | }t j | | _ t j | j }| |vr!| j t j | z | _ t j | j d d|} t | d d r dd|d z g}ng } | | j |z |d|gz |z |z | n1# t $ r$}t! | }t# | dd}~ww xY w|r}t$ j dk rt) j ddd|d z g t- |d z d 5 }| t1 ||| ddd dS # 1 swxY w Y dS dS )z9Compile a single source files with a Unix-style compiler.r aCCz-Aez-Aaz-AAOPT)get_config_varsz: _auto_dependsFz-MMDz-MFz.dz-odisplayNzoschtagz-tcIBM1047a)compiler_soremoveosenviron sysconfigr shlexjoinsplitreplace linker_sopathbasenamegetattrspawnr strr sysplatform subprocesscheck_outputopenwriter )selfobjsrcextcc_argsextra_postargspp_optsccompr optgcv_optccomp_sllink_sr depsemsgfs q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/distutils/unixccompiler.pyUnixCCompiler__compiler; s EQx5E>>LLE>>LL % ------jRZ%67788*U[)?)?)BCCDD*T-..googs33G${733D*T^,,g!^ek#.>.>>DN'**4+;A+>????EG t_e,, sTz** 4#g-dC0@@4G!"-4 6 6 6 6 * * *!ff3T)* O <5 #WeYd $KLLL #*c " " Oa GG+G^WMMNNN O O O O O O O O O O O O O O O O O O O Os* (+G HG==H%I77I;>I;_compilec | || \ }}| || }| || rd t j | n# t $ r Y nw xY w| t j | || j z }|rv|dd }|dd }dt j | j d t | |fz }| | j |gz |z | |v| j rt j | j d d|} | | j |gz | nG# t $ r$} t! | } t# | dd} ~ ww xY wnt% j d| dS ) a Build a static library in a separate sub-process. Parameters ---------- objects : list or tuple of str List of paths to object files used to build the static library. output_libname : str The library name as an absolute or relative (if `output_dir` is used) path. output_dir : str, optional The path to the output directory. Default is None, in which case the ``output_dir`` attribute of the UnixCCompiler instance. debug : bool, optional This parameter is not used. target_lang : str, optional This parameter is not used. Returns ------- None ) output_dirN2 z %s: adding %d object files to %sr r z:@ zskipping %s (up-to-date))_fix_object_argslibrary_filename _need_linkr unlinkOSErrormkpathr dirnameobjectsr archiverlenr" ranlibr r# r r debug)r* rG output_libnamer> rK target_langoutput_filenametmp_objectsr r7 r8 s r: UnixCCompiler_create_static_librP I s 2 //DDGZ )).Z)PP w00 "? Io&&&& D BGOOO44555, *!#2#&G%bcc*K87++DM!,<==w<<<: :G JJt}'887B!( * * * * ; .#%7#3#3DKN#C#C#C#C#2?4G . 4;/)::%, . . . .% . . .!ffsmm- . . ,o>>> Fs* A A+*A+ E: : F(F##F(create_static_lib)Nr N)__doc__r r$ r&