B
    n\                 @   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	  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-sharedZarz-crN)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90Z	linker_soZarchiverZranlibz-KPICc             C   s   | j dg S )Nz-n32)	pic_flags)self r   =lib/python3.7/site-packages/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  D ]$}ttd|  r|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
   Zoptar   r   r   get_flags_arch   s    zMIPSFCompiler.get_flags_archc             C   s^   d }t  rd}n6t  r d}n(t  r.d}nt  r<d}nt  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    |   }|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__Zcompiler_typeZdescriptionZversion_patternZexecutablesZmodule_dir_switchZmodule_include_switchr	   r   r   r   r   r   r   r   r   r   r      s$   
__main__)customized_fcompilerr   )ZcompilerN)Z
__future__r   r   r   Znumpy.distutils.cpuinfor   Znumpy.distutils.fcompilerr   Z	compilersr   r   Znumpy.distutilsr   printZget_versionr   r   r   r   <module>   s   .