B
    n\                 @   s~   d dl mZmZmZ d dlZd dlmZ dgZG dd deZe	dkrzd dl
mZ ed d d	lmZ eed
d  dS )    )divisionabsolute_importprint_functionN)GnuFCompilerVastFCompilerc               @   sh   e Zd ZdZdZdZdZdZddgdgd	d
gd	gdgddgdgdZdZ	dZ
dd Zdd Zdd ZdS )r   vast z+Pacific-Sierra Research Fortran 90 CompilerzM\s*Pacific-Sierra Research vf90 (Personal|Professional)\s+(?P<version>[^\s]*)z= && function _mvfile { mv -v `basename $1` $1 ; } && _mvfile vf90z-vZg77f90z-Wv,-yaz<F90>Zarz-crranlib)Zversion_cmdZcompiler_f77Zcompiler_fixcompiler_f90Z	linker_soZarchiverr   Nc             C   s   d S )Nr   )selfr   r   =lib/python3.7/site-packages/numpy/distutils/fcompiler/vast.pyfind_executables    s    zVastFCompiler.find_executablesc             C   s0   | j d }tj|\}}tj|d| }|S )Nr   v)r   ospathsplitjoin)r   r
   dbr	   r   r   r   get_version_cmd#   s    
zVastFCompiler.get_version_cmdc             C   s6   |   }t }|d  |  | _t| }|| _|S )N)get_versionr   Z	customizeversionget_flags_arch)r   Zvast_versionZgnuZoptr   r   r   r   )   s    


zVastFCompiler.get_flags_arch)__name__
__module____qualname__Zcompiler_typeZcompiler_aliasesZdescriptionZversion_patternZobject_switchZexecutablesZmodule_dir_switchZmodule_include_switchr   r   r   r   r   r   r   r   	   s"   
__main__)log   )customized_fcompilerr   )Zcompiler)Z
__future__r   r   r   r   Znumpy.distutils.fcompiler.gnur   Z	compilersr   r   Z	distutilsr   Zset_verbosityZnumpy.distutilsr!   printr   r   r   r   r   <module>   s   )
