ó
ÿ¼÷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	   FCompiler(   t   platformt   PGroupFCompilerc           B` s<  e  Z d  Z d Z d Z e d k rŽ i d d g d 6d d g d	 6d d
 d g d 6d d g d 6d g d 6d d g d 6d g d 6Z d g Z nd 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 g Z d Z d Z	 d „  Z
 d „  Z d „  Z e d k r1d „  Z n  d „  Z RS(   t   pgs   Portland Group Fortran Compilers1   \s*pg(f77|f90|hpf|fortran) (?P<version>[\d.-]+).*t   darwins   <F77>s   -Vt   version_cmdt	   pgfortrans   -dynamiclibt   compiler_f77s   -Mfixedt   compiler_fixt   compiler_f90t   libtoolt	   linker_sot   ars   -crt   archivert   ranlibt    s   -shareds   -fpics   -module s   -Ic         C` s   d d g } |  j  | S(   Ns   -Minform=informs   -Mnosecond_underscore(   t	   pic_flags(   t   selft   opt(    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt	   get_flags*   s    c         C` s   d g S(   Ns   -fast(    (   R   (    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt   get_flags_opt-   s    c         C` s   d g S(   Ns   -g(    (   R   (    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt   get_flags_debug/   s    c         C` s   d d d g S(   Ns   -dynamics
   -undefinedt   dynamic_lookup(    (   R   (    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt   get_flags_linker_so3   s    c         C` s   d | S(   Ns   -R"%s"(    (   R   t   dir(    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt   runtime_library_dir_option6   s    (   t   __name__t
   __module__t   compiler_typet   descriptiont   version_patternR   t   executablesR   t   module_dir_switcht   module_include_switchR   R   R   R   R   (    (    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyR   	   s<   


				t   __main__(   t   logi   (   t   new_fcompilert   compilerR   N(   t
   __future__R    R   R   t   numpy.distutils.fcompilerR   t   sysR   t	   compilersR   R   t	   distutilsR&   t   set_verbosityR'   R(   t	   customizet   printt   get_version(    (    (    s;   /tmp/pip-build-2Vcwy8/numpy/numpy/distutils/fcompiler/pg.pyt   <module>   s   	0
