a
    p=ic)                     @   sn   d dl mZ d dlmZ dgZG dd deZedkrjd dlmZ e	d d dl
mZ eed	d
  dS )    )simple_version_match)	FCompilerSunFCompilerc                   @   s~   e Zd ZdZdZeddZddgdgddgdgg d	d
dgdgdZdZdZ	dgZ
dd Zdd Zdd Zdd Zdd ZdS )r   sunz Sun or Forte Fortran 95 Compilerz(f9[05]: (Sun|Forte|WorkShop).*Fortran 95)start<F90>z-Vf90-fixed)r   z	-Bdynamicz-Garz-crranlib)Zversion_cmdZcompiler_f77Zcompiler_fixZcompiler_f90	linker_soarchiverr   z-moddir=z-Mz-xcode=pic32c                 C   s0   dg}|   pddkr"|d n
|d |S )Nz-ftrap=%none 7z-f77r	   )get_versionappend)selfret r   n/home/droni/.local/share/virtualenvs/DPS-5Je3_V2c/lib/python3.9/site-packages/numpy/distutils/fcompiler/sun.pyget_flags_f77   s
    
zSunFCompiler.get_flags_f77c                 C   s   ddgS )Nz-fastz-dalignr   r   r   r   r   get_opt#   s    zSunFCompiler.get_optc                 C   s   dgS )Nz-xtarget=genericr   r   r   r   r   get_arch%   s    zSunFCompiler.get_archc                 C   s   g }| g d |S )N)ZfsuZsunmathZmvec)extend)r   optr   r   r   get_libraries'   s    zSunFCompiler.get_librariesc                 C   s   d| S )Nz-R%sr   )r   dirr   r   r   runtime_library_dir_option,   s    z'SunFCompiler.runtime_library_dir_optionN)__name__
__module____qualname__compiler_typedescriptionr   Zversion_matchZexecutablesZmodule_dir_switchZmodule_include_switchZ	pic_flagsr   r   r   r   r   r   r   r   r   r      s*   	__main__)log   )customized_fcompilerr   )compilerN)Znumpy.distutils.ccompilerr   Znumpy.distutils.fcompilerr   Z	compilersr   r   	distutilsr%   set_verbosityZnumpy.distutilsr'   printr   r   r   r   r   <module>   s   )
