a
    p=ic?                     @   s   d dl Z d dlZd dlmZ d dlmZ dgZe jdksJejdd dkrTe	d G d	d deZ
G d
d deZedkrd dlmZ ed d dlmZ eedd  dS )    N)	FCompiler)DistutilsPlatformErrorCompaqFCompilerposix   cygwinCompaqVisualFCompilerc                   @   s   e Zd ZdZdZdZejdd dkr,dZndZd	d
geddgedgegd	gddgdgdZ	dZ
dZdd Zdd Zdd Zdd Zdd ZdS )r   compaqzCompaq Fortran Compilerz$Compaq Fortran (?P<version>[^\s]*).*N   linuxZfortf90<F90>z-versionz-f77rtlz-fixedarz-crranlibZversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90	linker_soarchiverr   z-module z-Ic                 C   s   ddgS )Nz-assume no2underscorez-nomixed_str_len_arg selfr   r   q/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/numpy/distutils/fcompiler/compaq.py	get_flags(   s    zCompaqFCompiler.get_flagsc                 C   s   ddgS )Nz-gz-check boundsr   r   r   r   r   get_flags_debug*   s    zCompaqFCompiler.get_flags_debugc                 C   s   g dS )N)z-O4z-align dcommonsz-assume bigarraysz-assume nozsizez-math_library fastr   r   r   r   r   get_flags_opt,   s    zCompaqFCompiler.get_flags_optc                 C   s   ddgS )Nz
-arch hostz
-tune hostr   r   r   r   r   get_flags_arch/   s    zCompaqFCompiler.get_flags_archc                 C   s    t jd d dkrdgS ddgS )Nr
   r   z-sharedz-Wl,-expect_unresolved,*)sysplatformr   r   r   r   get_flags_linker_so1   s    z#CompaqFCompiler.get_flags_linker_so)__name__
__module____qualname__compiler_typedescriptionversion_patternr   r   fc_exeexecutablesmodule_dir_switchmodule_include_switchr   r   r   r   r   r   r   r   r   r      s*   
c                
   @   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dZejdkr2ddlmZ ze Ze  ejZW n eyz   Y n ey Z z(deev rede  n W Y dZ[ndZ[0  ey Z z$deevrede  W Y dZ[nHdZ[0  ey0 Z z&deevrede  W Y dZ[n
dZ[0 0 ddgeddgedgegdgedgddZdd Zdd Z d d! Z!d"d# Z"dS )$r   Zcompaqvz)DIGITAL or Compaq Visual Fortran CompilerzQ(DIGITAL|Compaq) Visual Fortran Optimizing Compiler Version (?P<version>[^\s]*).*z/compile_onlyz/object:z/OUT:z.libz%s%sz/module:z/Izlib.exeZDFwin32r   )MSVCCompilerZ_MSVCCompiler__rootz1Ignoring "%s" (I think it is msvccompiler.py bug)Nzvcvarsall.batzUnexpected OSError inz'path'zUnexpected ValueError inr   z/whatz/f77rtlz/fixedr   c                 C   s   g dS )N)z/nologoz/MDz/WXz!/iface=(cref,nomixed_str_len_arg)z/names:lowercasez/assume:underscorer   r   r   r   r   r   j   s    zCompaqVisualFCompiler.get_flagsc                 C   s   g dS )N)z/Oxz/fastz/optimize:5z	/unroll:0z/math_library:fastr   r   r   r   r   r   m   s    z#CompaqVisualFCompiler.get_flags_optc                 C   s   dgS )Nz/threadsr   r   r   r   r   r   o   s    z$CompaqVisualFCompiler.get_flags_archc                 C   s   dgS )Nz/debugr   r   r   r   r   r   q   s    z%CompaqVisualFCompiler.get_flags_debug)#r   r   r    r!   r"   r#   Zcompile_switchZobject_switchZlibrary_switchZstatic_lib_extensionZstatic_lib_formatr&   r'   Zar_exer$   r   r   Znumpy.distutils.msvccompilerr)   mZ
initializelibr   AttributeErrorestrprintOSError__file__
ValueErrorr%   r   r   r   r   r   r   r   r   r   6   sX   



__main__)log   )customized_fcompilerr	   )compiler)osr   Znumpy.distutils.fcompilerr   distutils.errorsr   Z	compilersnamer   appendr   r   r   	distutilsr4   set_verbosityZnumpy.distutilsr6   r/   get_versionr   r   r   r   <module>   s   
&>
