a ;jg)@snddlmZddlmZdgZGdddeZedkrjddlmZe dddl m Z e e d d  d S) )simple_version_match) FCompiler SunFCompilerc@s~eZdZdZdZeddZddgdgddgdggd d d gd gd ZdZdZ dgZ ddZ ddZ ddZ ddZddZdS)rsunz Sun or Forte Fortran 95 Compilerz(f9[05]: (Sun|Forte|WorkShop).*Fortran 95)startz-Vf90-fixed)rz -Bdynamicz-Garz-crranlib)Z version_cmdZ compiler_f77Z compiler_fixZ compiler_f90 linker_soarchiverr z-moddir=z-Mz -xcode=pic32cCs0dg}|pddkr"|dn |d|S)Nz -ftrap=%none7z-f77r ) get_versionappend)selfretrG/usr/local/lib/python3.9/site-packages/numpy/distutils/fcompiler/sun.py get_flags_f77s   zSunFCompiler.get_flags_f77cCsddgS)Nz-fastz-dalignrrrrrget_opt#szSunFCompiler.get_optcCsdgS)Nz-xtarget=genericrrrrrget_arch%szSunFCompiler.get_archcCsg}|gd|S)N)ZfsuZsunmathZmvec)extend)roptrrr get_libraries'szSunFCompiler.get_librariescCsd|S)Nz-R%sr)rdirrrrruntime_library_dir_option,sz'SunFCompiler.runtime_library_dir_optionN)__name__ __module__ __qualname__ compiler_type descriptionrZ version_matchZ executablesZmodule_dir_switchZmodule_include_switchZ pic_flagsrrrrrrrrrrs* __main__)log)customized_fcompilerr)compilerN)Znumpy.distutils.ccompilerrZnumpy.distutils.fcompilerrZ compilersrr distutilsr% set_verbosityZnumpy.distutilsr'printrrrrrs  )