관리-도구
편집 파일: build_src.cpython-37.pyc
B ��Fd�x � @ sf d Z ddlmZmZmZ ddlZddlZddlZddlZddl Z ddl mZ ddlm Z mZ ddlmZ ddlmZmZ ddlmZ dd lmZmZmZmZmZ dd lmZ dd lmZ dd� Z!G d d� dej�Z"e�#dej$�j%Z&e�#dej$�j%Z'e�#dej$�j%Z(e�#dej$�j)Z*e�#dej$�j)Z+dd� Z,dd� Z-dd� Z.e�#dej$�j%Z/e�#dej$�j%Z0dd� Z1dS )z Build swig and f2py sources. � )�division�absolute_import�print_functionN)� build_ext)�newer_group�newer)�get_platform)�DistutilsError�DistutilsSetupError)�log)�fortran_ext_match� appendpath� is_string�is_sequence�get_cmd)�process_filec C s� t �d�}t|d�}zlt| d�}zRxL|D ]D}|�|�}|rb|�|�d|�d� ||�d� �� q(|�|� q(W W d|�� X W d|�� X dS )zPSubstitute any occurrence of @foo@ by d['foo'] from source file into target.z@([a-zA-Z_]+)@�r�wz@%s@� N)�re�compile�open�search�write�replace�group�close)�target�source�d�var�fs�ft�l�m� r% �T/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/command/build_src.py� subst_vars s (r'