Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/numpy/distutils/__pycache__/unixccompiler.cpython-39.pyc
Ðазад
a e�h2 � @ s� d Z ddlZddlZddlZddlZddlmZmZmZ ddl m Z ddlmZ ddl mZ ddlmZ dd � 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 C s� | j }|d dkrFd|v r$|�d� d|v r6|�d� |dg7 }|| _ dtjv r�ddlm} t�t�tjd ��} t�t�|d�d ��} t�| j �}| |vr�|� | | �}t�|�| _ t�| j �}| |vr�| j t�| � | _ dtj�| j d �|f } t | d d ��rdd|d g}ng }z*| j| j | |d|g | | | d� W n8 t�yz } zt|�}t|�d�W Y d}~n d}~0 0 |�r�tjdk�r�t�ddd|d g� t|d d��"}|�t|||�� W d � n1 �s�0 Y dS )z9Compile a single source files with a Unix-style compiler.r ZaCCz-Aez-Aaz-AA�OPT)�get_config_varsz%s: %sZ _auto_dependsFz-MMDz-MFz.dz-o��displayNZzosZchtagz-tcZIBM1047�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�extZcc_argsZextra_postargsZpp_optsZccompr �optZgcv_optZccomp_sZllink_sr �deps�e�msg�f� r, ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/numpy/distutils/unixccompiler.py�UnixCCompiler__compile sJ �� r. �_compilec C sJ | � ||�\}}| j||d�}| �||��r:zt�|� W n tyL Y n0 | �tj�|�� || j }|r�|dd� }|dd� }dtj� | jd �t|�|f }| j | j|g | |d� qj| j�rFdtj� | jd �|f }z| j | j|g |d� W n8 t�y6 } zt| �} t| �d�W Y d} ~ n d} ~ 0 0 nt�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%s:@ %szskipping %s (up-to-date))Z_fix_object_argsZlibrary_filenameZ _need_linkr �unlink�OSError�mkpathr �dirname�objectsr �archiver�lenr Zranlibr r r r �debug)r# r6 Zoutput_libnamer0 r9 Ztarget_langZoutput_filenameZtmp_objectsr r) r* r, r, r- �UnixCCompiler_create_static_libI sB � ���� "r: Zcreate_static_lib)Nr N)�__doc__r r r r �distutils.errorsr r r Zdistutils.unixccompilerr Znumpy.distutils.ccompilerr Znumpy.distutils.misc_utilr Znumpy.distutilsr r. r: r, r, r, r- �<module> s 5 � C�
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка