o 6a?@sddlZddlZddlmZddlmZdgZejdks%ejdddkr*e dGd ddeZ Gd ddeZ e d krZdd l mZed ddlmZeedddSdS)N) FCompiler)DistutilsPlatformErrorCompaqFCompilerposixcygwinCompaqVisualFCompilerc@seZdZdZdZdZejdddkrdZndZd d ged d ged gegd gd dgdgdZ dZ dZ ddZ ddZ ddZddZddZdS)rcompaqzCompaq Fortran Compilerz$Compaq Fortran (?P[^\s]*).*Nlinuxfortf90z-versionz-f77rtlz-fixedarz-crranlib version_cmd compiler_f77 compiler_fix compiler_f90 linker_soarchiverrz-module z-IcCddgS)Nz-assume no2underscorez-nomixed_str_len_argselfrrB/usr/lib/python3/dist-packages/numpy/distutils/fcompiler/compaq.py get_flags(zCompaqFCompiler.get_flagscCr)Nz-gz -check boundsrrrrrget_flags_debug*rzCompaqFCompiler.get_flags_debugcCgdS)N)z-O4z-align dcommonsz-assume bigarraysz-assume nozsizez-math_library fastrrrrr get_flags_opt,rzCompaqFCompiler.get_flags_optcCr)Nz -arch hostz -tune hostrrrrrget_flags_arch/rzCompaqFCompiler.get_flags_archcCs tjdddkr dgSddgS)Nr r z-sharedz-Wl,-expect_unresolved,*)sysplatformrrrrget_flags_linker_so1sz#CompaqFCompiler.get_flags_linker_so)__name__ __module__ __qualname__ compiler_type descriptionversion_patternr#r$fc_exe executablesmodule_dir_switchmodule_include_switchrrr!r"r%rrrrrs,  c @szeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zejd krddlmZz eZeejZ Wnbey<YnZey[ZzdeevrPedenWYdZ[n?dZ[weyxZzdeevrnedeWYdZ[n"dZ[weyZzdeevredeWYdZ[ndZ[wwddgeddgedgegdge dgddZddZddZ d d!Z!d"d#Z"dS)$rcompaqvz)DIGITAL or Compaq Visual Fortran CompilerzQ(DIGITAL|Compaq) Visual Fortran Optimizing Compiler Version (?P[^\s]*).*z /compile_onlyz/object:z/OUT:z.libz%s%sz/module:z/Izlib.exeDFwin32r) MSVCCompiler_MSVCCompiler__rootz1Ignoring "%s" (I think it is msvccompiler.py bug)Nz vcvarsall.batzUnexpected IOError inz'path'zUnexpected ValueError inrz/whatz/f77rtlz/fixedrcCr )N)z/nologoz/MDz/WXz!/iface=(cref,nomixed_str_len_arg)z/names:lowercasez/assume:underscorerrrrrrjrzCompaqVisualFCompiler.get_flagscCr )N)z/Oxz/fastz /optimize:5z /unroll:0z/math_library:fastrrrrrr!mrz#CompaqVisualFCompiler.get_flags_optcCdgS)Nz/threadsrrrrrr"oz$CompaqVisualFCompiler.get_flags_archcCr5)Nz/debugrrrrrrqr6z%CompaqVisualFCompiler.get_flags_debug)#r&r'r(r)r*r+compile_switch object_switchlibrary_switchstatic_lib_extensionstatic_lib_formatr.r/ar_exer,r#r$numpy.distutils.msvccompilerr3m initializelibrAttributeErrorestrprintIOError__file__ ValueErrorr-rr!r"rrrrrr6sh              __main__)log)customized_fcompilerr )compiler)osr#numpy.distutils.fcompilerrdistutils.errorsr compilersnamer$appendrrr& distutilsrI set_verbositynumpy.distutilsrKrD get_versionrrrrs   &>