ó
ØÆ÷Xc           @` s4  d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z d  d l m	 Z	 d  d l
 m Z d g Z e j d k s e j d  d	 k rŸ e j d
 ƒ n  d e f d „  ƒ  YZ d
 e f d „  ƒ  YZ e d k r0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_functionN(   t	   FCompiler(   t   get_exception(   t   DistutilsPlatformErrort   CompaqFCompilert   posixi   t   cygwint   CompaqVisualFCompilerc           B` sÐ   e  Z d  Z d Z d Z e j d  d k r4 d Z n d Z i d d g d	 6e d
 d g d 6e d g d 6e g d 6d g d 6d d g d 6d g d 6Z d Z	 d Z
 d „  Z d „  Z d „  Z d „  Z d „  Z RS(   t   compaqs   Compaq Fortran Compilers$   Compaq Fortran (?P<version>[^\s]*).*i   t   linuxt   fortt   f90s   <F90>s   -versiont   version_cmds   -f77rtls   -fixedt   compiler_f77t   compiler_fixt   compiler_f90t	   linker_sot   ars   -crt   archivert   ranlibs   -module s   -Ic         C` s
   d d g S(   Ns   -assume no2underscores   -nomixed_str_len_arg(    (   t   self(    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt	   get_flags+   s    c         C` s
   d d g S(   Ns   -gs   -check bounds(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt   get_flags_debug-   s    c         C` s   d d d d d g S(   Ns   -O4s   -align dcommonss   -assume bigarrayss   -assume nozsizes   -math_library fast(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt   get_flags_opt/   s    	c         C` s
   d d g S(   Ns
   -arch hosts
   -tune host(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt   get_flags_arch2   s    c         C` s$   t  j d  d k r d g Sd d g S(   Ni   R   s   -shareds   -Wl,-expect_unresolved,*(   t   syst   platform(   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt   get_flags_linker_so4   s    (   t   __name__t
   __module__t   compiler_typet   descriptiont   version_patternR   R   t   fc_exet   executablest   module_dir_switcht   module_include_switchR   R   R   R   R   (    (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR      s*   	

				c           B` sã  e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 d Z
 d	 Z d
 Z d Z e j d k red d l m Z y  e ƒ  Z e j ƒ  e j Z Wqee k
 r  qee k
 rß e ƒ  Z d e e ƒ k rÙ e d e ƒ qb‚  qee k
 r e ƒ  Z d e e ƒ k rbe d e ƒ e ‚ qbqee k
 rae ƒ  Z d e e ƒ k rbe d e ƒ e ‚ qbqeXn  i d d g d 6e d d g d 6e d g d 6e g d 6d g d 6e d g d 6d$ d 6Z  d  „  Z! d! „  Z" d" „  Z# d# „  Z$ RS(%   t   compaqvs)   DIGITAL or Compaq Visual Fortran CompilersQ   (DIGITAL|Compaq) Visual Fortran Optimizing Compiler Version (?P<version>[^\s]*).*s   /compile_onlys   /object:s   /OUT:s   .libs   %s%ss   /module:s   /Is   lib.exet   DFt   win32i    (   t   MSVCCompilert   _MSVCCompiler__roots1   Ignoring "%s" (I think it is msvccompiler.py bug)s   vcvarsall.bats   Unexpected IOError ins   path']s   Unexpected ValueError ins   <F90>s   /whatR   s   /f77rtls   /fixedR   R   R   R   R   R   c         C` s   d d d d d d g S(   Ns   /nologos   /MDs   /WXs!   /iface=(cref,nomixed_str_len_arg)s   /names:lowercases   /assume:underscore(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR   p   s    c         C` s   d d d d d g S(   Ns   /Oxs   /fasts   /optimize:5s	   /unroll:0s   /math_library:fast(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR   s   s    c         C` s   d g S(   Ns   /threads(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR   u   s    c         C` s   d g S(   Ns   /debug(    (   R   (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR   w   s    N(%   R   R   R    R!   R"   t   compile_switcht   object_switcht   library_switcht   static_lib_extensiont   static_lib_formatR%   R&   t   ar_exeR#   R   R   t   numpy.distutils.msvccompilerR*   t   mt
   initializet   libR   t   AttributeErrorR   t   msgt   strt   printt   IOErrort   et   __file__t
   ValueErrort   NoneR$   R   R   R   R   (    (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyR	   9   s^   	
			


			t   __main__(   t   logi   (   t   new_fcompilert   compilerR
   (   t
   __future__R    R   R   t   osR   t   numpy.distutils.fcompilerR   t   numpy.distutils.compatR   t   distutils.errorsR   t	   compilerst   nameR   t   appendR   R	   R   t	   distutilsR@   t   set_verbosityRA   RB   t	   customizeR9   t   get_version(    (    (    s?   /tmp/pip-build-X4mzal/numpy/numpy/distutils/fcompiler/compaq.pyt   <module>   s"   	"&A
