ó
ÿ¼÷Xc           @` s§   d  d l  m Z m Z m Z d  d l m Z d  d l m Z d g Z d e f d „  ƒ  YZ	 e
 d k r£ d  d l m Z e d d	 ƒ Z e j ƒ  e e j ƒ  ƒ n  d
 S(   i    (   t   divisiont   absolute_importt   print_function(   t   cpu(   t	   FCompilert   MIPSFCompilerc           B` s´   e  Z d  Z d Z d Z i d d g d 6d d g d 6d	 d
 g d 6d	 g d 6d	 d g d 6d d g d 6d d 6Z d Z d Z d g Z	 d „  Z
 d „  Z d „  Z d „  Z d „  Z RS(   t   mipss   MIPSpro Fortran Compilers0   MIPSpro Compilers: Version (?P<version>[^\s*,]*)s   <F90>s   -versiont   version_cmdt   f77s   -f77t   compiler_f77t   f90s
   -fixedformt   compiler_fixt   compiler_f90s   -sharedt	   linker_sot   ars   -crt   archivert   ranlibs   -KPICc         C` s   |  j  d g S(   Ns   -n32(   t	   pic_flags(   t   self(    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt	   get_flags   s    c         C` s   d g S(   Ns   -O3(    (   R   (    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt   get_flags_opt   s    c         C` sL   g  } x? d j  ƒ  D]1 } t t d | ƒ ƒ  r | j d | ƒ Pq q W| S(   Ns3   19 20 21 22_4k 22_5k 24 25 26 27 28 30 32_5k 32_10ks   is_IP%ss   -TARG:platform=IP%s(   t   splitt   getattrR   t   append(   R   t   optt   a(    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt   get_flags_arch   s    c         C` sŠ   d  } t j ƒ  r d } nT t j ƒ  r0 d } n? t j ƒ  rE d } n* t j ƒ  rZ d } n t j ƒ  ro d } n  | d  k	 r† d | g Sg  S(   Ni'  ià.  i@  iˆ  i   s   r%s(   t   NoneR   t	   is_r10000t	   is_r12000t   is_r8000t   is_r5000t   is_r4000(   R   t   r(    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt   get_flags_arch_f77&   s     	 	 	 	 	c         C` s+   |  j  ƒ  } | r' d | d | d <n  | S(   Nt   -i    (   R"   (   R   R!   (    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt   get_flags_arch_f900   s    N(   t   __name__t
   __module__t   compiler_typet   descriptiont   version_patternR   t   executablest   module_dir_switcht   module_include_switchR   R   R   R   R"   R$   (    (    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyR      s&   

					
t   __main__(   t   new_fcompilert   compilerR   N(   t
   __future__R    R   R   t   numpy.distutils.cpuinfoR   t   numpy.distutils.fcompilerR   t	   compilersR   R%   R.   R/   t	   customizet   printt   get_version(    (    (    s=   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/mips.pyt   <module>   s   	.
