ó
ÿ¼÷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 j d ƒ 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   simple_version_match(   t	   FCompilert   SunFCompilerc           B` sÀ   e  Z d  Z d Z e d d ƒ Z i d d g d 6d g d 6d d	 g d
 6d g d 6d d d g d 6d d g d 6d g d 6Z d Z d Z d g Z	 d „  Z
 d „  Z d „  Z d „  Z d „  Z RS(   t   suns    Sun or Forte Fortran 95 Compilert   starts(   f9[05]: (Sun|Forte|WorkShop).*Fortran 95s   <F90>s   -Vt   version_cmdt   f90t   compiler_f77s   -fixedt   compiler_fixt   compiler_f90s	   -Bdynamics   -Gt	   linker_sot   ars   -crt   archivert   ranlibs   -moddir=s   -Ms   -xcode=pic32c         C` sB   d g } |  j  ƒ  p d d k r1 | j d ƒ n | j d ƒ | S(   Ns   -ftrap=%nonet    t   7s   -f77s   -fixed(   t   get_versiont   append(   t   selft   ret(    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   get_flags_f77   s
    	c         C` s
   d d g S(   Ns   -fasts   -dalign(    (   R   (    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   get_opt%   s    c         C` s   d g S(   Ns   -xtarget=generic(    (   R   (    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   get_arch'   s    c         C` s    g  } | j  d d d g ƒ | S(   Nt   fsut   sunmatht   mvec(   t   extend(   R   t   opt(    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   get_libraries)   s    c         C` s   d | S(   Ns   -R"%s"(    (   R   t   dir(    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   runtime_library_dir_option.   s    (   t   __name__t
   __module__t   compiler_typet   descriptionR   t   version_matcht   executablest   module_dir_switcht   module_include_switcht	   pic_flagsR   R   R   R   R!   (    (    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyR      s(   	

					t   __main__(   t   logi   (   t   new_fcompilert   compilerR   N(   t
   __future__R    R   R   t   numpy.distutils.ccompilerR   t   numpy.distutils.fcompilerR   t	   compilersR   R"   t	   distutilsR,   t   set_verbosityR-   R.   t	   customizet   printR   (    (    (    s<   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/sun.pyt   <module>   s   	)
