B { ` @sddlZddlZddlmZddgZGdddeZGdddeZGdddeZed krdd l m Z e d dd l m Z e d dZeeeedS)N) FCompiler NAGFCompilerNAGFORCompilerc@s0eZdZdZddZddZddZdd Zd S) BaseNAGFCompilerz"NAG.* Release (?P[^(\s]*)cCs$t|j|}|r|dSdSdS)Nversion)researchversion_patterngroup)selfversion_stringmrA/tmp/pip-unpacked-wheel-4iou4664/numpy/distutils/fcompiler/nag.py version_match s zBaseNAGFCompiler.version_matchcCsdgS)Nz -Wl,-sharedr)r rrrget_flags_linker_sosz$BaseNAGFCompiler.get_flags_linker_socCsdgS)Nz-O4r)r rrr get_flags_optszBaseNAGFCompiler.get_flags_optcCsdgS)Nr)r rrrget_flags_archszBaseNAGFCompiler.get_flags_archN)__name__ __module__ __qualname__r rrrrrrrrrs rc@sVeZdZdZdZddgddgddgdgdgddgd gd Zd d Zd dZddZdS)rZnagzNAGWare Fortran 95 Compilerzz-VZf95z-fixedarz-crranlib) version_cmd compiler_f77 compiler_fix compiler_f90 linker_soarchiverrcCstjdkrddgSt|S)Ndarwinz -unsharedf95z/-Wl,-bundle,-flat_namespace,-undefined,suppress)sysplatformrr)r rrrr's z NAGFCompiler.get_flags_linker_socCs(|}|r|dkrdgSt|SdS)Nz5.1z-target=native) get_versionrr)r rrrrr+s zNAGFCompiler.get_flags_archcCsdddddgS)Nz-gz-glinez-g90z-nanz-Cr)r rrrget_flags_debug1szNAGFCompiler.get_flags_debugN) rrr compiler_type description executablesrrr$rrrrrs c@sFeZdZdZdZddgddgddgdgdgddgdgdZd d Zd S) rnagforzNAG Fortran Compilerz-Vz-fixedrz-crr)rrrrrrrcCs:|}|r(|dkr(dddddddd gSdddddgSdS) Nz6.1z-gz-uz-nanz-C=allz -thread_safez -kind=uniquez-Warn=allocationz-Warn=subnormal)r#)r rrrrr$Cs    zNAGFORCompiler.get_flags_debugN)rrrr%r&r'r$rrrrr4s __main__)log)customized_fcompilerr()compiler)r!rZnumpy.distutils.fcompilerrZ compilersrrrr distutilsr* set_verbosityZnumpy.distutilsr,r-printr#r$rrrrs