3
ßL]Å  ã               @   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jdƒ d d	lmZ eed
d�jƒ ƒ dS )é    )ÚdivisionÚabsolute_importÚprint_functionN)ÚGnuFCompilerÚVastFCompilerc               @   sh   e Zd ZdZf 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   Úvastz+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>Úarz-crÚranlib)Zversion_cmdZcompiler_f77Zcompiler_fixÚcompiler_f90Ú	linker_soÚarchiverr   Nc             C   s   d S )N© )Úselfr   r   úA/tmp/pip-install-q_7g0qgj/Numpy/numpy/distutils/fcompiler/vast.pyÚfind_executables    s    zVastFCompiler.find_executablesc             C   s0   | j d }tjj|ƒ\}}tj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   | j ƒ }tƒ }|jd ƒ |j ƒ | _tj| ƒ}|| _|S )N)Úget_versionr   Z	customizeÚversionÚget_flags_arch)r   Zvast_versionZgnuÚoptr   r   r   r   )   s    


zVastFCompiler.get_flags_arch)Ú__name__Ú
__module__Ú__qualname__Úcompiler_typeZcompiler_aliasesÚdescriptionZversion_patternZobject_switchZexecutablesZmodule_dir_switchZmodule_include_switchr   r   r   r   r   r   r   r   	   s"   
Ú__main__)Úlogé   )Úcustomized_fcompilerr   )Úcompiler)Ú
__future__r   r   r   r   Znumpy.distutils.fcompiler.gnur   Z	compilersr   r   Ú	distutilsr%   Úset_verbosityZnumpy.distutilsr'   Úprintr   r   r   r   r   Ú<module>   s   )
