ó
ú$]c           @` s  d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z d d g Z d e f d „  ƒ  YZ	 d e	 f d „  ƒ  YZ
 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 e j ƒ  ƒ e e j ƒ  ƒ n  d S(   i    (   t   divisiont   absolute_importt   print_functionN(   t	   FCompilert   NAGFCompilert   NAGFORCompilert   BaseNAGFCompilerc           B` s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   s"   NAG.* Release (?P<version>[^(\s]*)c         C` s0   t  j |  j | ƒ } | r( | j d ƒ Sd  Sd  S(   Nt   version(   t   ret   searcht   version_patternt   groupt   None(   t   selft   version_stringt   m(    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   version_match   s    c         C` s   d g S(   Ns   -Wl,-shared(    (   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   get_flags_linker_so   s    c         C` s   d g S(   Ns   -O4(    (   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   get_flags_opt   s    c         C` s   d g S(   Nt    (    (   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   get_flags_arch   s    (   t   __name__t
   __module__R
   R   R   R   R   (    (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR   	   s
   			c           B` s‡   e  Z d  Z d Z i d d g d 6d d g d 6d d g d 6d g d	 6d g d
 6d d g d 6d g d 6Z d „  Z d „  Z d „  Z RS(   t   nags   NAGWare Fortran 95 Compilers   <F90>s   -Vt   version_cmdt   f95s   -fixedt   compiler_f77t   compiler_fixt   compiler_f90t	   linker_sot   ars   -crt   archivert   ranlibc         C` s&   t  j d k r d d g St j |  ƒ S(   Nt   darwins   -unsharedf95s/   -Wl,-bundle,-flat_namespace,-undefined,suppress(   t   syst   platformR   R   (   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR   )   s    
c         C` s6   |  j  ƒ  } | r% | d k  r% d g St j |  ƒ Sd  S(   Ns   5.1s   -target=native(   t   get_versionR   R   (   R   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR   -   s    c         C` s   d d d d d g S(   Ns   -gs   -glines   -g90s   -nans   -C(    (   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   get_flags_debug3   s    (   R   R   t   compiler_typet   descriptiont   executablesR   R   R%   (    (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR      s   

		c           B` su   e  Z d  Z d Z i d  d g d 6d  d g d 6d  d g d 6d  g d 6d  g d 6d	 d
 g d 6d g d 6Z d „  Z RS(   t   nagfors   NAG Fortran Compilers   -VR   s   -fixedR   R   R   R   R   s   -crR   R    c         C` sQ   |  j  ƒ  } | r: | d k r: d d d d d d d d	 g Sd d d d d g Sd  S(
   Ns   6.1s   -gs   -us   -nans   -C=alls   -thread_safes   -kind=uniques   -Warn=allocations   -Warn=subnormal(   R$   (   R   R   (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR%   E   s
    (   R   R   R&   R'   R(   R%   (    (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyR   6   s   

t   __main__(   t   logi   (   t   customized_fcompilert   compilerR)   (   t
   __future__R    R   R   R"   R   t   numpy.distutils.fcompilerR   t	   compilersR   R   R   R   t	   distutilsR+   t   set_verbosityt   numpy.distutilsR,   R-   t   printR$   R%   (    (    (    s<   lib/python2.7/site-packages/numpy/distutils/fcompiler/nag.pyt   <module>   s   