관리-도구
편집 파일: unixccompiler.cpython-37.pyc
B ��Fd$ � @ s� d Z ddlmZmZmZ ddlZddlmZmZ ddl T ddl mZ ddlm Z ddlmZ ejd d k rxd dlmZ nddlmZ dd � Zeede� ddd�Zeede� dS )z> unixccompiler - can handle very long argument lists for ar. � )�division�absolute_import�print_functionN)�DistutilsExecError�CompileError)�*)�replace_method)� get_exception)�_commandline_dep_string� � )�logc C s� | j }|d dkrFd|kr$|�d� d|kr6|�d� |dg7 }|| _ dtjkr�ddlm} d�tjd �� �} d�|d�d �� �} d�| j �}| |kr�|�| | �}|�� | _ d�| j �}| |kr�|�� | �� | _ d tj �| j d �|f } t| d d��rdd |d g}ng }y*| j | j | |d|g | | | d� W n( tk �rd tt� �}t|��Y nX t|d d��}|�t|||�� W dQ R X dS )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)�display�aN)�compiler_so�remove�os�environ�distutils.sysconfigr �join�split�replace� linker_so�path�basename�getattr�spawnr �strr r �open�writer )�self�obj�src�ext�cc_args�extra_postargs�pp_opts�ccompr �opt�gcv_opt�ccomp_s�llink_sr �deps�msg�f� r4 �P/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/unixccompiler.py�UnixCCompiler__compile s>