o 6a@s\ddlmZddlmZdgZGdddeZedkr,ddlmZe edd d Sd S) )cpu) FCompiler MIPSFCompilerc@sxeZdZdZdZdZddgddgdd gdgdd gd d gd dZd Zd ZdgZ ddZ ddZ ddZ ddZ ddZd S)rmipszMIPSpro Fortran Compilerz0MIPSpro Compilers: Version (?P[^\s*,]*)zz-versionf77z-f77f90z -fixedformz-sharedarz-crN) version_cmd compiler_f77 compiler_fix compiler_f90 linker_soarchiverranlibz-KPICcCs |jdgS)Nz-n32) pic_flagsselfr@/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/mips.py get_flagss zMIPSFCompiler.get_flagscCsdgS)Nz-O3rrrrr get_flags_optszMIPSFCompiler.get_flags_optcCs:g}dD]}ttd|r|d||Sq|S)Nz319 20 21 22_4k 22_5k 24 25 26 27 28 30 32_5k 32_10kzis_IP%sz-TARG:platform=IP%s)splitgetattrrappend)roptarrrget_flags_archs zMIPSFCompiler.get_flags_archcCs^d}tr d}ntrd}ntrd}n trd}ntr$d}|dur-d|gSgS)Ni'i.i@iizr%s)r is_r10000 is_r12000is_r8000is_r5000is_r4000rrrrrget_flags_arch_f77$s  z MIPSFCompiler.get_flags_arch_f77cCs |}|rd|d|d<|S)N-r)r$r"rrrget_flags_arch_f90.sz MIPSFCompiler.get_flags_arch_f90)__name__ __module__ __qualname__ compiler_type descriptionversion_pattern executablesmodule_dir_switchmodule_include_switchrrrrr$r&rrrrrs(  __main__)customized_fcompilerr)compilerN) numpy.distutils.cpuinfornumpy.distutils.fcompilerr compilersrr'numpy.distutilsr1print get_versionrrrrs .