%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib64/python3.9/site-packages/numpy/distutils/__pycache__/
Upload File :
Create Path :
Current File : //lib64/python3.9/site-packages/numpy/distutils/__pycache__/unixccompiler.cpython-39.pyc

a

z[yc2�@s�dZddlZddlZddlZddlZddlmZmZmZddl	m
Z
ddlmZddl
mZddlmZdd	�Zee
d
e�ddd�Zee
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}|ddkrFd|vr$|�d�d|vr6|�d�|dg7}||_dtjvr�ddlm}t�t�tjd��}	t�t�|d�d��}
t�|j�}|	|vr�|�	|
|	�}t�|�|_t�|j
�}|	|vr�|j
t�|	�|_
dtj�|jd�|f}
t
|d	d
��rdd|d
g}ng}z*|j|j||d|g|||
d�Wn8t�yz}zt|�}t|�d�WYd}~n
d}~00|�r�tjdk�r�t�ddd|d
g�t|d
d��"}|�t|||��Wd�n1�s�0YdS)z9Compile a single source files with a Unix-style compiler.rZaCCz-Aez-Aaz-AAZOPT)�get_config_varsz%s: %sZ
_auto_dependsFz-MMDz-MFz.dz-o��displayNZzosZchtagz-tcZIBM1047�a)Zcompiler_so�remove�os�environZ	sysconfigr	�shlex�join�split�replaceZ	linker_so�path�basename�getattr�spawnr�strr�sys�platform�
subprocessZcheck_output�open�writer)�self�obj�src�extZcc_argsZextra_postargsZpp_optsZccompr	�optZgcv_optZccomp_sZllink_srZdeps�e�msg�f�r&�C/usr/lib64/python3.9/site-packages/numpy/distutils/unixccompiler.py�UnixCCompiler__compilesJ



��
 r(�_compilec
CsJ|�||�\}}|j||d�}|�||��r:zt�|�WntyLYn0|�tj�|��||j	}|r�|dd�}|dd�}dtj�
|jd�t|�|f}|j
|j|g||d�qj|j�rFdtj�
|jd�|f}z|j
|j|g|d�Wn8t�y6}	zt|	�}
t|
�d�WYd}	~	n
d}	~	00nt�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 %srr
z%s:@ %szskipping %s (up-to-date))Z_fix_object_argsZlibrary_filenameZ
_need_linkr�unlink�OSErrorZmkpathr�dirname�objectsrZarchiver�lenrZranlibrrrr�debug)rr/Zoutput_libnamer*r1Ztarget_langZoutput_filenameZtmp_objectsrr#r$r&r&r'�UnixCCompiler_create_static_libIsB�
����
"r2Zcreate_static_lib)NrN)�__doc__rrrrZdistutils.errorsrrrZdistutils.unixccompilerrZnumpy.distutils.ccompilerrZnumpy.distutils.misc_utilrZnumpy.distutilsrr(r2r&r&r&r'�<module>s 5�
C�

Zerion Mini Shell 1.0