3
ßL]ô  ã               @   sl   d dl mZmZmZ d dlmZ d dlmZ dgZG dd„ deƒZ	e
dkrhd dlmZ eedd	�jƒ ƒ d
S )é    )ÚdivisionÚabsolute_importÚprint_function)Úcpu)Ú	FCompilerÚMIPSFCompilerc               @   sx   e Zd ZdZdZdZddgddgdd	gdgdd
gddgddœZdZdZdgZ	dd„ Z
dd„ Zdd„ Zdd„ Zdd„ ZdS )r   ÚmipszMIPSpro Fortran Compilerz0MIPSpro Compilers: Version (?P<version>[^\s*,]*)z<F90>z-versionZf77z-f77Zf90z
-fixedformz-sharedÚarz-crN)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Ú	linker_soÚarchiverZranlibz-KPICc             C   s   | j dg S )Nz-n32)Ú	pic_flags)Úself© r   úA/tmp/pip-install-q_7g0qgj/Numpy/numpy/distutils/fcompiler/mips.pyÚ	get_flags   s    zMIPSFCompiler.get_flagsc             C   s   dgS )Nz-O3r   )r   r   r   r   Úget_flags_opt   s    zMIPSFCompiler.get_flags_optc             C   s:   g }x0dj ƒ D ]$}ttd| ƒƒ r|jd| ƒ P qW |S )Nz319 20 21 22_4k 22_5k 24 25 26 27 28 30 32_5k 32_10kzis_IP%sz-TARG:platform=IP%s)ÚsplitÚgetattrr   Úappend)r   ÚoptÚar   r   r   Úget_flags_arch   s    zMIPSFCompiler.get_flags_archc             C   s^   d }t jƒ rd}n6t jƒ r d}n(t jƒ r.d}nt jƒ r<d}nt jƒ rHd}|d k	rZd| gS g S )Ni'  ià.  i@  iˆ  i   zr%s)r   Z	is_r10000Z	is_r12000Zis_r8000Zis_r5000Zis_r4000)r   Úrr   r   r   Úget_flags_arch_f77&   s         
z MIPSFCompiler.get_flags_arch_f77c             C   s    | j ƒ }|rd|d  |d< |S )Nú-r   )r   )r   r   r   r   r   Úget_flags_arch_f900   s    z MIPSFCompiler.get_flags_arch_f90)Ú__name__Ú
__module__Ú__qualname__Úcompiler_typeÚdescriptionZversion_patternZexecutablesZmodule_dir_switchZmodule_include_switchr   r   r   r   r   r   r   r   r   r   r      s$   
Ú__main__)Úcustomized_fcompilerr   )ÚcompilerN)Ú
__future__r   r   r   Znumpy.distutils.cpuinfor   Znumpy.distutils.fcompilerr   Z	compilersr   r   Znumpy.distutilsr"   ÚprintÚget_versionr   r   r   r   Ú<module>   s   .