관리-도구
편집 파일: gnu.cpython-37.pyc
B ��Fd�: � @ s\ d dl mZmZmZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl mZmZm Z d dlmZ d dlmZ d dlmZ d dlmZ dd gZe�d �Zdd� Ze� r�g Zng ZG d d� de�ZG dd � d e�Zdd� Zedk�rXd dlm Z e �!d� e� Z"e"�#� e$e"�%� � ye� Z"e"�#� e$e"�%� � W n$ e&k �rV e� Z'e$e'� Y nX dS )� )�division�absolute_import�print_functionN)�Popen�PIPE�STDOUT)� FCompiler)�exec_command)�msvc_runtime_library)� get_exception�GnuFCompiler�Gnu95FCompilerzTarget: ([a-zA-Z0-9_\-]*)c C s t jdkot�� d dkS )N�win32r �64bit)�sys�platform�architecture� r r �P/opt/alt/python37/lib64/python3.7/site-packages/numpy/distutils/fcompiler/gnu.py�is_win64 s r c @ s� e Zd ZdZdZdZdd� Zdd� Zdd gZd dgd dd dgd d d dd gddgdgd dd gd�Z d Z d Zej dkr�ejdkr�dgZejdkr�xdD ]Ze e �d� q�W dZdZdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd S )-r �gnu)�g77zGNU Fortran 77 compilerc C s� x$|� d�r$||�d�d d� }qW t|�dkrvt�d|�}|r�|� d�rZd|�d�fS |�� d kr�d |�d�fS nft�d|�}|r�d |�d�fS t�d|�}|r�|�d�}|� d �s�|� d�s�|� d�r�d|fS d |fS d}t|| ��dS )z6Handle the different versions of GNU fortran compilerszgfortran: warning� � N� z ([0-9.]+)zGNU Fortranr r �gfortranzGNU Fortran\s+95.*?([0-9-.]+)z%GNU Fortran.*?\-?([0-9-.]+\.[0-9-.]+)�0�2�3z6A valid Fortran version was not found in this string: )� startswith�find�len�re�search�group�start� ValueError)�self�version_string�m�v�errr r r �gnu_version_match# s* zGnuFCompiler.gnu_version_matchc C s&