U C^0 @sddlmZmZmZddlZddlZddlmZddgZGdddeZ Gddde Z Gd dde Z e d krdd l mZed dd lmZeddZeeeedS))divisionabsolute_importprint_functionN) FCompiler NAGFCompilerNAGFORCompilerc@s0eZdZdZddZddZddZdd Zd S) BaseNAGFCompilerz"NAG.* Release (?P[^(\s]*)cCs$t|j|}|r|dSdSdS)Nversion)researchversion_patterngroup)selfZversion_stringmr@/tmp/pip-install-6_kvzl1k/numpy/numpy/distutils/fcompiler/nag.py version_match s zBaseNAGFCompiler.version_matchcCsdgS)Nz -Wl,-sharedrrrrrget_flags_linker_sosz$BaseNAGFCompiler.get_flags_linker_socCsdgS)Nz-O4rrrrr get_flags_optszBaseNAGFCompiler.get_flags_optcCsdgS)Nrrrrrget_flags_archszBaseNAGFCompiler.get_flags_archN)__name__ __module__ __qualname__r rrrrrrrrr s rc@sVeZdZdZdZddgddgddgdgdgddgd gd Zd d Zd dZddZdS)rZnagzNAGWare Fortran 95 Compilerz-VZf95-fixedar-crranlibZ version_cmdZ compiler_f77Z compiler_fixZ compiler_f90 linker_soarchiverrcCstjdkrddgSt|S)Ndarwinz -unsharedf95z/-Wl,-bundle,-flat_namespace,-undefined,suppress)sysplatformrrrrrrr)s z NAGFCompiler.get_flags_linker_socCs(|}|r|dkrdgSt|SdS)Nz5.1z-target=native) get_versionrrrr rrrr-s zNAGFCompiler.get_flags_archcCsdddddgS)N-gz-glinez-g90-nanz-Crrrrrget_flags_debug3szNAGFCompiler.get_flags_debugN) rrr compiler_type description executablesrrr*rrrrrs c@sFeZdZdZdZddgddgddgdgdgddgdgdZd d Zd S) rnagforzNAG Fortran Compilerrrrrrr cCs:|}|r(|dkr(dddddddd gSdddddgSdS) Nz6.1r(z-ur)z-C=allz -thread_safez -kind=uniquez-Warn=allocationz-Warn=subnormal)r&r'rrrr*Es  zNAGFORCompiler.get_flags_debugN)rrrr+r,r-r*rrrrr6s __main__)log)customized_fcompilerr.)compiler) __future__rrrr$r Znumpy.distutils.fcompilerrZ compilersrrrr distutilsr0 set_verbosityZnumpy.distutilsr2r3printr&r*rrrrs