Hacked By AnonymousFox
�
�܋f2 � � � 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)�CompileError�DistutilsExecError�LibError)�
UnixCCompiler)�replace_method)�_commandline_dep_string)�logc � � | j }|d dk r?d|v r|� d� � d|v r|� d� � |dgz
}|| _ dt j v r�ddlm} 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# |� � d�d}~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-AA�OPT)�get_config_varsz: �
_auto_dependsFz-MMDz-MFz.dz-o��displayN�zos�chtagz-tc�IBM1047�a)�compiler_so�remove�os�environ� sysconfigr
�shlex�join�split�replace� linker_so�path�basename�getattr�spawnr �strr �sys�platform�
subprocess�check_output�open�writer )�self�obj�src�ext�cc_args�extra_postargs�pp_opts�ccompr
�opt�gcv_opt�ccomp_s�llink_sr �deps�e�msg�fs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/distutils/unixccompiler.py�UnixCCompiler__compiler; s � �
��E��Q�x�5����E�>�>��L�L������E�>�>��L�L�����
�%���� �����
���-�-�-�-�-�-��j���R�Z��%6�7�7�8�8���*�U�[����)?�)?��)B�C�C�D�D���*�T�-�.�.���g����o�o�g�s�3�3�G�$�{�7�3�3�D���*�T�^�,�,���g���!�^�e�k�#�.>�.>�>�D�N��'�*�*�4�+;�A�+>�?�?�?�?���E�G� �t�_�e�,�,� ���s�T�z�*�����*��
�
�4�#�g�-��d�C�0@�@�4�G�!�"�-4� � 6� 6� 6� 6��� *� *� *��!�f�f���3���T�)�����*����
� O� �<�5� � ��#�W�e�Y��d�
�$K�L�L�L�
�#��*�c�
"�
"� O�a�
�G�G�+�G�^�W�M�M�N�N�N� O� O� O� O� O� O� O� O� O� O� O� O���� O� O� O� O� O� O�
O� Os* �(+G �
H�G=�=H�%I7�7I;�>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 r�t j �
| j d � � �d|��} | �
| j |gz |�� � nG# t $ r$} t! | � � }
t# |
� � d�d} ~ 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_dirN�2 z %s: adding %d object files to %sr r z:@ zskipping %s (up-to-date))�_fix_object_args�library_filename�
_need_linkr �unlink�OSError�mkpathr �dirname�objectsr �archiver�lenr"