https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/numpy/distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/numpy/distutils/__pycache__/unixccompiler.cpython-310.pyc
o

6��a�@s�dZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	�Zee	d
e�	ddd�Zee	d
e�dS)z>
unixccompiler - can handle very long argument lists for ar.

�N)�CompileError�DistutilsExecError�LibError)�
UnixCCompiler)�replace_method)�_commandline_dep_string)�logc
Cs�|j}|ddkr#d|vr|�d�d|vr|�d�|dg7}||_dtjvrkddlm}d�tjd���}	d�|d�d���}
d�|j�}|	|vrX|�|
|	�}|��|_d�|j	�}|	|vrk|��|	��|_	d	tj
�|jd�|f}
t|d
d�r�dd
|dg}ng}z|j
|j||d|g|||
d�Wnty�}z	t|�}t|�d�d}~ww|r�tjdkr�t�ddd|dg�t|dd��}|�t|||��Wd�dS1s�wYdSdS)z9Compile a single source files with a Unix-style compiler.r�aCCz-Aez-Aaz-AA�OPT)�get_config_vars� z%s: %s�
_auto_dependsFz-MMDz-MFz.dz-o��displayN�zos�chtagz-tc�IBM1047�a)�compiler_so�remove�os�environ�	sysconfigr�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�f�r8�?/usr/lib/python3/dist-packages/numpy/distutils/unixccompiler.py�UnixCCompiler__compilesR




�
�
��
"��r:�_compilec
CsB|�||�\}}|j||d�}|�||�r�zt�|�Wnttfy'Ynw|�tj�	|��||j
}|rc|dd�}|dd�}dtj�|jd�t
|�|f}|j|j|g||d�|s8|jr�dtj�|jd�|f}z|j|j|g|d�WdSty�}	z	t|	�}
t|
�d�d}	~	wwdSt�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�2z %s: adding %d object files to %srrz%s:@ %szskipping %s (up-to-date))�_fix_object_args�library_filename�
_need_linkr�unlink�IOError�OSError�mkpathr�dirname�objectsr�archiver�lenr �ranlibrr!rr�debug)r(rF�output_libnamer<rJ�target_lang�output_filename�tmp_objectsrr5r6r8r8r9�UnixCCompiler_create_static_libHsN��
������
���rO�create_static_lib)NrN)�__doc__rr"r$�distutils.errorsrrr�distutils.unixccompilerr�numpy.distutils.ccompilerr�numpy.distutils.misc_utilr�numpy.distutilsrr:rOr8r8r8r9�<module>s 5
�C�

https://t.me/RX1948 - 2025