o 6a @sddlZddlZddlmZddgZGdddeZGdddeZGdddeZed krRdd l m Z e d dd l m Z e d dZeeeedSdS)N) FCompiler NAGFCompilerNAGFORCompilerc@s0eZdZdZddZddZddZdd Zd S) BaseNAGFCompilerz"NAG.* Release (?P[^(\s]*)cCs t|j|}|r|dSdS)Nversion)researchversion_patterngroup)selfversion_stringmr?/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/nag.py version_match s zBaseNAGFCompiler.version_matchcCdgS)Nz -Wl,-sharedrr rrrget_flags_linker_soz$BaseNAGFCompiler.get_flags_linker_socCr)Nz-O4rrrrr get_flags_optrzBaseNAGFCompiler.get_flags_optcCsgS)Nrrrrrget_flags_archszBaseNAGFCompiler.get_flags_archN)__name__ __module__ __qualname__r rrrrrrrrrs  rc@sVeZdZdZdZddgddgddgdgdgddgd gd Zd d Zd dZddZdS)rnagzNAGWare Fortran 95 Compilerz-Vf95-fixedar-crranlib version_cmd compiler_f77 compiler_fix compiler_f90 linker_soarchiverr cCstjdkr ddgSt|S)Ndarwinz -unsharedf95z/-Wl,-bundle,-flat_namespace,-undefined,suppress)sysplatformrrrrrrr's  z NAGFCompiler.get_flags_linker_socCs$|}|r |dkr dgSt|S)Nz5.1z-target=native) get_versionrrr rrrrr+s  zNAGFCompiler.get_flags_archcCsgdS)N)-gz-glinez-g90-nanz-Crrrrrget_flags_debug1szNAGFCompiler.get_flags_debugN) rrr compiler_type description executablesrrr/rrrrrs  c@sFeZdZdZdZddgddgddgdgdgddgdgdZd d Zd S) rnagforzNAG Fortran Compilerrrrrr r!cCs$|}|r|dkrgdSgdS)Nz6.1)r--ur.-C=all -thread_safez -kind=uniquez-Warn=allocationz-Warn=subnormal)r-r.r5r4r6)r+r,rrrr/Cs zNAGFORCompiler.get_flags_debugN)rrrr0r1r2r/rrrrr4s __main__)log)customized_fcompilerr3)compiler)r)rnumpy.distutils.fcompilerr compilersrrrr distutilsr8 set_verbositynumpy.distutilsr:r;printr+r/rrrrs