o 6a)@srddlmZddlmZdgZGdddeZedkr7ddlmZe dddl m Z e e d d  d Sd 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) version_cmd compiler_f77 compiler_fix compiler_f90 linker_soarchiverr z-moddir=z-Mz -xcode=pic32cCs2dg}|pddkr|d|S|d|S)Nz -ftrap=%none7z-f77r ) get_versionappend)selfretr?/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/sun.py get_flags_f77s   zSunFCompiler.get_flags_f77cCsddgS)Nz-fastz-dalignrrrrrget_opt#zSunFCompiler.get_optcCsdgS)Nz-xtarget=genericrrrrrget_arch%szSunFCompiler.get_archcCsg}|gd|S)N)fsusunmathmvec)extend)roptrrr get_libraries'szSunFCompiler.get_librariescCsd|S)Nz-R%sr)rdirrrrruntime_library_dir_option,rz'SunFCompiler.runtime_library_dir_optionN)__name__ __module__ __qualname__ compiler_type descriptionr version_match executablesmodule_dir_switchmodule_include_switch pic_flagsrrrr$r&rrrrrs,  __main__)log)customized_fcompilerr)compilerN)numpy.distutils.ccompilerrnumpy.distutils.fcompilerr compilersrr' distutilsr2 set_verbositynumpy.distutilsr4printrrrrrs )